diff --git a/js/article.js b/js/article.js index 39b2f79..320c2ba 100644 --- a/js/article.js +++ b/js/article.js @@ -7276,7 +7276,50 @@ function article_con() { success: function (result) { } }) - + if(Jour_num == 1||Jour_num == 11||Jour_num == 25){ + var CiteScoreStr = '' + var marginLeft = 20 + if (Jour_num == 1) { + CiteScoreStr = '1.8'; + marginLeft=10 + } else + if (Jour_num == 11) { + CiteScoreStr = '0.1'; + } + else if (Jour_num == 25) { + CiteScoreStr = '1.3'; + } + if(Jour_num == 1){ + // $('#top_bar .nav_ban h2 img').css('zoom','0.75') + $('#top_bar .nav_ban h1').append(`
+ + Impact Factor + 0.9 + +
`) + } + $('#top_bar .nav_ban h1').append(`
+ + Cite Score + ${CiteScoreStr} + +
`) + + } if (isPre) { $('#top_bar .top').css('display', 'none') @@ -7526,12 +7569,16 @@ function article_con() { } else { + $.ajax({ type: 'post', url: apiUrl + 'api/Article/getArticleDetail', data: { "article_id": a_ID }, success: function (result) { + + + $('.wenzhang .wen_rong .left').css({ 'background-color': '#f4fafd' }) @@ -8547,36 +8594,36 @@ function addRowIdToData(content) { const rowIdMap = {}; const usedRows = new Set(); let idCounter = 0; - + for (let i = 0; i < data.length; i++) { - if (usedRows.has(i)) continue; - - const rowId = `row-${idCounter++}`; - rowIdMap[i] = rowId; - usedRows.add(i); - - const row = data[i]; - for (let j = 0; j < row.length; j++) { - const cell = row[j]; - if (cell?.rowspan && cell.rowspan > 1) { - for (let k = 1; k < cell.rowspan; k++) { - const nextRowIndex = i + k; - if (nextRowIndex < data.length && !rowIdMap[nextRowIndex]) { - rowIdMap[nextRowIndex] = rowId; - usedRows.add(nextRowIndex); + if (usedRows.has(i)) continue; + + const rowId = `row-${idCounter++}`; + rowIdMap[i] = rowId; + usedRows.add(i); + + const row = data[i]; + for (let j = 0; j < row.length; j++) { + const cell = row[j]; + if (cell?.rowspan && cell.rowspan > 1) { + for (let k = 1; k < cell.rowspan; k++) { + const nextRowIndex = i + k; + if (nextRowIndex < data.length && !rowIdMap[nextRowIndex]) { + rowIdMap[nextRowIndex] = rowId; + usedRows.add(nextRowIndex); + } + } } - } } - } } - + // 把 rowId 实际写进每个单元格 for (let i = 0; i < data.length; i++) { - const rowId = rowIdMap[i]; - for (let j = 0; j < data[i].length; j++) { - if (!data[i][j]) data[i][j] = {}; - data[i][j].rowId = rowId; - } + const rowId = rowIdMap[i]; + for (let j = 0; j < data[i].length; j++) { + if (!data[i][j]) data[i][j] = {}; + data[i][j].rowId = rowId; + } } console.log('每行data数据111:', JSON.parse(JSON.stringify(data))) const seenIds = []; diff --git a/js/side.js b/js/side.js index fadccdc..68c45ae 100644 --- a/js/side.js +++ b/js/side.js @@ -138,7 +138,7 @@ function side_list() { $('.ncon_SCom > div > div:nth-child(4) > p> b').html(arr_jour.title) if (arr_jour.title == 'Traditional Medicine Research') { - $('.nav_ban h2').html(''); + $('.nav_ban h2').html(''); $('.sharethis_tmr').css('display', 'none'); $('.art_top_topic').css('padding-top', '0'); $('.line_sbil').css('display', 'block'); diff --git a/jstmr/side.js b/jstmr/side.js index 3fcd345..e4ea027 100644 --- a/jstmr/side.js +++ b/jstmr/side.js @@ -107,6 +107,10 @@ function side_list() { // tmr单独 $('.nav_ban h2').html(''); + const pathname = window.location.pathname.split("/").pop(); + + // 2. 判断是否为 for_author.html + $('.sharethis_tmr').css('display', 'none'); $('.art_top_topic').css('padding-top', '0'); $('.line_sbil').css('display', 'block');