首页显示8本刊
This commit is contained in:
@@ -180,10 +180,11 @@ function side_list() {
|
||||
|
||||
|
||||
// 相关期刊
|
||||
var corr = result.data.relats;
|
||||
|
||||
$('.jour_correlate>a').attr('href', '/' + corr[0].usx);
|
||||
$('.jour_correlate>a>img').attr('src', imgjourUrl + corr[0].icon)
|
||||
if (result.data.relats.length > 0) {
|
||||
var corr = result.data.relats;
|
||||
$('.jour_correlate>a').attr('href', '/' + corr[0].usx);
|
||||
$('.jour_correlate>a>img').attr('src', imgjourUrl + corr[0].icon)
|
||||
}
|
||||
|
||||
// 感谢图片
|
||||
$('.jour_awaite').before('<div class="thank_img" style="text-align: center">' +
|
||||
|
||||
515
js/article_v2.js
515
js/article_v2.js
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
var commonSupColor = 'rgb(0,112,192)'//上角标颜色
|
||||
var commonTableTitleColor = 'rgb(210,90,90)'//上角标颜色
|
||||
var commonSupFontColor = 'color:rgb(0,112,192);'//上角标字体颜色
|
||||
@@ -229,9 +227,7 @@ function fetchCitationsData(doi, a_ID, callback) {
|
||||
});
|
||||
}
|
||||
function renderCitations(citations, doi) {
|
||||
console.log('doi at line 479:', citations)
|
||||
|
||||
|
||||
|
||||
|
||||
let wosHtml = '';
|
||||
citations.wos.forEach((item, i) => {
|
||||
@@ -335,18 +331,14 @@ function renderCitations(citations, doi) {
|
||||
`;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$('.article-quote').css('display', 'block'); // 设置显示样式
|
||||
$('#ArticleCitations').css('display', 'block'); // 设置显示样式
|
||||
$('.article-quote').html(str); // 设置 HTML 内容
|
||||
|
||||
|
||||
|
||||
if (citations.wos && citations.wos.length > 0) {
|
||||
var journalCiteStr1 = ""
|
||||
|
||||
|
||||
for (let i in citations.wos) {
|
||||
journalCiteStr1 += ` <div style="margin:10px 0;display:flex;"><p style="margin-right:10px;">${Number(i) + 1}.</p>
|
||||
<div>
|
||||
@@ -447,200 +439,6 @@ function renderCitations(citations, doi) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 相关引用次数 */
|
||||
// function getCitations(doi, a_ID) {
|
||||
|
||||
|
||||
// // var doi = '10.53388/IMD202408001';
|
||||
// $('.article-quote-box').css({
|
||||
// width: '25%',
|
||||
// 'margin-right': '0px',
|
||||
// 'border-right': '1px solid ' + localStorage.Journals_color,
|
||||
// })
|
||||
// $('.DimensionsBadge .quote-source').html('Dimensions Badge')
|
||||
// $('.SciteBadge .quote-source').html('Scite Badge (Wiley)')
|
||||
// $('.Crossref .quote-source').html('Crossref')
|
||||
// $('.Crossref').css({ 'border-right': 'none' })
|
||||
// $('.Wos .quote-source').html('Wos')
|
||||
// var list = [doi];
|
||||
// $.ajax({
|
||||
// type: 'post', url: apiUrl + 'api/Article/getArticleCites',
|
||||
// data: {
|
||||
// "article_id": a_ID
|
||||
// },
|
||||
// success: function (result) {
|
||||
// if (result.code == 0) {
|
||||
// var str1 = `<div style="text-align:center;" class="WosNumber quoteNumber"> ${result.data.list && result.data.list.length > 0 ? result.data.list.length : 0}</div>`
|
||||
// var journalCiteStr = ""
|
||||
// $('.Wos .quote-content1').html(str1)
|
||||
// var arr = result.data.list
|
||||
// for (let i in arr) {
|
||||
// journalCiteStr += ` <div style="margin:10px 0;display:flex;"><p style="margin-right:10px;">${Number(i) + 1}.</p>
|
||||
// <div>
|
||||
// <p style="display: block;
|
||||
// font-size: 13px;
|
||||
// margin-bottom: 3px;">${arr[i].article_name}</p>
|
||||
|
||||
// <p>
|
||||
// <span style="color: #a2b1b6;
|
||||
// font-size: 13px;"> ${arr[i].journal_name},
|
||||
// <span style="color: #a2b1b6;
|
||||
// font-size: 13px;">${arr[i].author ? `${arr[i].author},` : ''} ${arr[i].journal_name}${arr[i].vol ? `${arr[i].vol},` : ''}
|
||||
// </span></span>
|
||||
|
||||
// <span style="margin-left:5px;color:#205493;">
|
||||
// <a
|
||||
// target="_blank"
|
||||
// href="https://doi.org/${arr[i].doi}">https://doi.org/${arr[i].doi}</a> </span></p></div>
|
||||
|
||||
// </div>`
|
||||
// }
|
||||
|
||||
// if (result.data.list && result.data.list.length > 0) {
|
||||
// $('.WosNumber').click(function () {
|
||||
// var infoStr = `Citations registered in Wos`
|
||||
// $('#framed_div .info-box').html(infoStr);
|
||||
// $('#framed_div .quote-content').html(journalCiteStr);
|
||||
// $('#framed_div').addClass('isWos');
|
||||
|
||||
// if ($('#framed_div').hasClass('openCrossref')) {
|
||||
|
||||
// if ($('#framed_div').hasClass('isCrossref')) {
|
||||
|
||||
// $('#framed_div').removeClass('isCrossref');
|
||||
// $('#framed_div').removeClass('openCrossref');
|
||||
// setTimeout(() => {
|
||||
// $('#framed_div').addClass('openCrossref');
|
||||
// }, 100)
|
||||
|
||||
// } else {
|
||||
// $('#framed_div').removeClass('openCrossref');
|
||||
// $('#framed_div').removeClass('isWos');
|
||||
// }
|
||||
|
||||
// } else {
|
||||
// $('#framed_div').addClass('isWos');
|
||||
// $('#framed_div').addClass('openCrossref');
|
||||
// }
|
||||
|
||||
|
||||
// })
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// //Dimensions Badge
|
||||
// $.ajax({
|
||||
// type: 'get',
|
||||
// url: 'https://metrics-api.dimensions.ai/doi/' + doi,//正式环境
|
||||
// success: function (result) {
|
||||
// console.log('result at line 212:', result)
|
||||
// // var str = `<span class="__dimensions_badge_embed__" data-doi="${doi}" data-legend="always"></span>`
|
||||
// $('.DimensionsBadge a').attr('href', 'https://badge.dimensions.ai/details/doi/' + doi)
|
||||
// var str = `<div style="text-align:center;" class="quoteNumber"> ${result.times_cited}</div>`
|
||||
// $('.DimensionsBadge .quote-content').html(str)
|
||||
// },
|
||||
// error: function (result) {
|
||||
// console.log('result at line 212:', result)
|
||||
// // var str = `<span class="__dimensions_badge_embed__" data-doi="${doi}" data-legend="always"></span>`
|
||||
|
||||
// var str = `<div style="text-align:center;" class="quoteNumber"> 0</div>`
|
||||
// $('.DimensionsBadge .quote-content').html(str)
|
||||
// }
|
||||
// })
|
||||
// //Scite Badge (Wiley)
|
||||
// $.ajax({
|
||||
// type: 'post',
|
||||
// url: 'https://api.scite.ai/tallies',//正式环境
|
||||
// contentType: "application/json",
|
||||
// dataType: "json",
|
||||
// data: JSON.stringify(list),
|
||||
// success: function (result) {
|
||||
// console.log('result at line 212:', result)
|
||||
// for (let i in result.tallies) {
|
||||
// $('.SciteBadge a').attr('href', 'https://scite.ai/reports/' + i)
|
||||
// var str1 = ` <div style="text-align:center;" class="crossrefNumber quoteNumber"> ${result.tallies[i]['citingPublications']}</div>`
|
||||
// }
|
||||
// $('.SciteBadge .quote-content1').html(str1)
|
||||
// },
|
||||
// error: function (result) {
|
||||
// console.log('result at line 212:', result)
|
||||
// var str1 = ` <div style="text-align:center;" class="crossrefNumber quoteNumber"> 0</div>`
|
||||
|
||||
// $('.SciteBadge .quote-content1').html(str1)
|
||||
// }
|
||||
// })
|
||||
// $.ajax({
|
||||
// type: 'post', url: apiUrl + 'api/Article/getArticleDetailCites',
|
||||
// data: {
|
||||
// "article_id": a_ID
|
||||
// },
|
||||
// success: function (result) {
|
||||
// if (result.code == 0) {
|
||||
// var str1 = `<div style="text-align:center;" class="crossrefNumber quoteNumber"> ${result.data && result.data.length > 0 ? result.data.length : 0}</div>`
|
||||
// var journalCiteStr = ""
|
||||
// $('.Crossref .quote-content1').html(str1)
|
||||
// var arr = result.data
|
||||
// for (let i in arr) {
|
||||
// journalCiteStr += ` <div style="margin:10px 0;display:flex;"><p style="margin-right:10px;">${Number(i) + 1}.</p>
|
||||
// <div>
|
||||
// <p style="display: block;
|
||||
// font-size: 13px;
|
||||
// margin-bottom: 3px;">${arr[i].article_title}</p>
|
||||
|
||||
// <p>
|
||||
// <span style="color: #a2b1b6;
|
||||
// font-size: 13px;"> ${arr[i].journal_title},
|
||||
// <span style="margin-left:5px">
|
||||
// ${arr[i].year}</span></span>
|
||||
|
||||
// <span style="margin-left:5px;color:#205493;">
|
||||
// <a
|
||||
// target="_blank"
|
||||
// href="https://doi.org/${arr[i].doi}">https://doi.org/${arr[i].doi}</a> </span></p></div>
|
||||
|
||||
// </div>`
|
||||
// }
|
||||
|
||||
// if (result.data && result.data.length > 0) {
|
||||
|
||||
// $('.crossrefNumber').click(function () {
|
||||
// var infoStr = `Citations registered in CrossRef`
|
||||
// $('#framed_div .info-box').html(infoStr);
|
||||
// $('#framed_div .quote-content').html(journalCiteStr); $('#framed_div').addClass('isCrossref');
|
||||
// if ($('#framed_div').hasClass('openCrossref')) {
|
||||
|
||||
// if ($('#framed_div').hasClass('isWos')) {
|
||||
|
||||
// $('#framed_div').removeClass('isWos');
|
||||
// $('#framed_div').removeClass('openCrossref');
|
||||
// $('#framed_div').addClass('isCrossref');
|
||||
// setTimeout(() => {
|
||||
// $('#framed_div').addClass('openCrossref');
|
||||
// }, 100)
|
||||
// } else {
|
||||
// $('#framed_div').removeClass('openCrossref');
|
||||
// $('#framed_div').removeClass('isCrossref');
|
||||
// }
|
||||
|
||||
// } else {
|
||||
// $('#framed_div').addClass('isCrossref');
|
||||
// $('#framed_div').addClass('openCrossref');
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
|
||||
// }
|
||||
|
||||
|
||||
// 文章内容
|
||||
function article_con() {
|
||||
$('.wen_jian .left .toggle-btn').html('Author Information ▼')
|
||||
@@ -662,8 +460,7 @@ function article_con() {
|
||||
// 将弹窗插入到页面中
|
||||
newBox.insertAdjacentHTML('beforeend', commonPopupStr);
|
||||
|
||||
console.log('js at line 7241:', '是否走了详情js')
|
||||
console.log('详情js', localStorage.Journals_title);
|
||||
|
||||
// 获取地址栏信息
|
||||
function getQueryString(name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
@@ -713,10 +510,8 @@ function article_con() {
|
||||
this.initStyle()
|
||||
|
||||
try {
|
||||
console.log('开始详情接口请求')
|
||||
$(document).ready(function () {
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: 'post', url: apiUrl + 'api/Article/getArticleDetail',
|
||||
data: {
|
||||
@@ -727,9 +522,7 @@ function article_con() {
|
||||
|
||||
success: function (result) {
|
||||
// initArticleNavList(a_ID)
|
||||
console.log('result at line 7575:', result)
|
||||
|
||||
|
||||
|
||||
|
||||
$('.wenzhang .wen_rong .left').css({
|
||||
'background-color': '#f4fafd',
|
||||
@@ -743,8 +536,6 @@ function article_con() {
|
||||
'background-color': '#fff'
|
||||
})
|
||||
if (result.code == 0) {
|
||||
|
||||
|
||||
var html_type = result.data.articleInfo.html_type
|
||||
var has_html = result.data.articleInfo.has_html
|
||||
initMoreButtonTopList(result.data, a_ID)
|
||||
@@ -1029,7 +820,7 @@ function article_con() {
|
||||
} else {
|
||||
var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + arr[i].content;
|
||||
var fun = "picPreview('" + picsrc + "');"
|
||||
// console.log(fun)
|
||||
|
||||
str += `<div class='imgHnkl' id="${sectionId}">` + "<img class='mainPicItem' style='max-width:500px;' onclick=" + fun + " src='https://submission.tmrjournals.com/public/mainimg/"
|
||||
+ arr[i].content + "' width='" + arr[i].width + `"'/><p class='' style='font-size: 14px;font-family: 'Charis SIL';'>` + arr[i].note + "</p></div>"
|
||||
}
|
||||
@@ -1090,37 +881,26 @@ function article_con() {
|
||||
|
||||
})
|
||||
} else if (html_type == 1) {
|
||||
// //外链
|
||||
// $('.wen_rong #tablist .tarhtmn').css('display', 'none');
|
||||
// $('.wen_rong .content-box .conthtmn').css('display', 'none');
|
||||
|
||||
var str = ''
|
||||
if (Jour_num == 1) {
|
||||
j_artc.abstract = j_artc.abstract.replace(new RegExp("0, 102, 204", "g"), "0,102,153")
|
||||
}
|
||||
var arr = [
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
content: "<i><b>Abstract</b></i>",
|
||||
|
||||
is_title: 0,
|
||||
},
|
||||
{
|
||||
|
||||
|
||||
|
||||
content: j_artc.abstract,
|
||||
|
||||
is_title: 0,
|
||||
},
|
||||
{
|
||||
|
||||
|
||||
|
||||
content: '<b> </b>',
|
||||
|
||||
is_title: 0,
|
||||
},
|
||||
{
|
||||
@@ -1133,35 +913,7 @@ function article_con() {
|
||||
},
|
||||
|
||||
]
|
||||
// $('.wen_rong .content-box .contercon .abst').html(j_artc.abstract);
|
||||
// let strongElements = document.querySelectorAll('.wen_rong .content-box .contercon .abst strong');
|
||||
|
||||
// // 遍历每个 <strong> 标签
|
||||
// strongElements.forEach(function (element) {
|
||||
// // 检查 <strong> 标签内的文本内容是否为 "Background:", "Methods:", "Results:", "Conclusion:"
|
||||
|
||||
// if (element.textContent.includes("Background:") ||
|
||||
// element.textContent.includes("Methods:") ||
|
||||
// element.textContent.includes("Method:") ||
|
||||
// element.textContent.includes("Results:") ||
|
||||
// element.textContent.includes("Result:") ||
|
||||
// element.textContent.includes("Conclusion:") ||
|
||||
// element.textContent.includes("Conclusions:") ||
|
||||
// element.textContent.includes("Background") ||
|
||||
// element.textContent.includes("Methods") ||
|
||||
// element.textContent.includes("Method") ||
|
||||
// element.textContent.includes("Results") ||
|
||||
// element.textContent.includes("Result") ||
|
||||
// element.textContent.includes("Conclusion") ||
|
||||
// element.textContent.includes("Conclusions")
|
||||
|
||||
|
||||
|
||||
// ) {
|
||||
// // 修改该 <strong> 标签的样式,改变颜色
|
||||
// element.style.color = commonSupColor; // 设置颜色为黑色(你可以修改为其他颜色)
|
||||
// }
|
||||
// });
|
||||
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
let sectionId = 'section-' + i; // 生成唯一的 ID
|
||||
|
||||
@@ -1209,20 +961,7 @@ function article_con() {
|
||||
}
|
||||
|
||||
|
||||
// 稿件跟踪
|
||||
// 图标------------
|
||||
|
||||
// console.log(j_artc)
|
||||
// Original data 附加文件
|
||||
|
||||
|
||||
// if (j_artc.file_pdf == '') {
|
||||
// $('.wen_rong #tablist .tarfipdf').css('display', 'none');
|
||||
// // $('.wen_rong .rong_box .contfdf').css('display','none');
|
||||
// } else {
|
||||
// $('.wen_rong #tablist .tarfipdf').html('<a href="' + imgFileUrl + 'articlePDF/' + j_artc.file_pdf + '" target="_blank" class="txt_html">PDF</a>');
|
||||
// // $('.wen_rong .rong_box .contfdf ul').html('<img src="img/link_3.jpg" width="14" height="16" style="vertical-align: middle;"><a href="'+imgFileUrl+'articlePDF/'+j_artc.file_pdf+'" target="_blank" class="txt_html"><b> PDF</b></a>');
|
||||
// }
|
||||
|
||||
if (j_artc.file_html == '') {
|
||||
$('.wen_rong #tablist .tarfihml').css('display', 'none');
|
||||
// $('.wen_rong .rong_box .contfhml').css('display','none');
|
||||
@@ -1230,44 +969,17 @@ function article_con() {
|
||||
$('.wen_rong #tablist .tarfihml').html('<a href="' + imgFileUrl + 'articleHTML/' + j_artc.file_html + '" target="_blank" class="txt_html">HTML</a>');
|
||||
$('.wen_rong .rong_box .contfhml ul').html('<img src="img/link_2.png" width="14" height="16" style="vertical-align: middle;"><a href="' + imgFileUrl + 'articleHTML/' + j_artc.file_html + '" target="_blank" class="txt_html"><b> HTML</b></a>');
|
||||
}
|
||||
//if (j_artc.tradition_tag == '' || j_artc.tradition == '') {
|
||||
// $('.wen_rong #tablist .tarad').css('display', 'none');
|
||||
// $('.wen_rong .content-box .conterad').css('display', 'none');
|
||||
//}
|
||||
|
||||
if (j_artc.mhoo == '' || j_artc.mhoo == null) {
|
||||
$('.wen_rong #tablist .tarmho').css('display', 'none');
|
||||
$('.wen_rong .content-box .contemho').css('display', 'none');
|
||||
}
|
||||
|
||||
// $('#tablist .tarfipdf a').click(function () {
|
||||
// $.ajax({
|
||||
// type: 'post', url: apiUrl + 'yuan/Article/addArticleNum', async: false,
|
||||
// data: { "article_id": j_artc.article_id, "type": 'pdf' },
|
||||
// success: function (result) {
|
||||
// }
|
||||
// })
|
||||
// $.ajax({
|
||||
// type: 'post', url: apiUrl + 'super/Publish/addVisitNum',
|
||||
// data: { 'type': Jour_num, 'is_detail': '1' },
|
||||
// success: function (result) {
|
||||
// }
|
||||
// });
|
||||
// })
|
||||
|
||||
|
||||
|
||||
// 首先显示html
|
||||
if (htm_ID != null) {
|
||||
$("#tablist li.tarhtmn").click()
|
||||
}
|
||||
|
||||
// meta添加
|
||||
// j_artc = result.data.articleInfo
|
||||
// j_authior = result.data.author.authors;
|
||||
// j_our = result.data.journalInfo;
|
||||
// j_info = result.data.stageInfo;
|
||||
|
||||
|
||||
$('title').before('<meta name="citation_title" content="' + j_artc.old_title + '">' +
|
||||
'<meta name="citation_publication_date" content="' + j_artc.publication + '">' +
|
||||
'<meta name="citation_journal_title" content="' + j_our.title + '">' +
|
||||
@@ -1385,14 +1097,13 @@ function article_con() {
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
ShowDanger("error!");
|
||||
console.log('文章详情error!')
|
||||
console.log('AJAX error:', jqXHR, textStatus, errorThrown); // 输出详细的错误信息
|
||||
细的错误信息
|
||||
}
|
||||
|
||||
})
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('JavaScript error:', error);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1537,7 +1248,7 @@ function shouldColor(rowIndex, cellIndex, row) {
|
||||
return false;
|
||||
}
|
||||
function addRowIdToData(content) {
|
||||
console.log('每行data数据1', content)
|
||||
|
||||
var data = JSON.parse(JSON.stringify(content))
|
||||
const rowIdMap = {};
|
||||
const usedRows = new Set();
|
||||
@@ -1573,7 +1284,7 @@ function addRowIdToData(content) {
|
||||
data[i][j].rowId = rowId;
|
||||
}
|
||||
}
|
||||
console.log('每行data数据111:', JSON.parse(JSON.stringify(data)))
|
||||
|
||||
const seenIds = [];
|
||||
|
||||
|
||||
@@ -1687,8 +1398,6 @@ function initTopics(a_ID) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
ShowDanger("请求失败!");
|
||||
}
|
||||
@@ -1701,11 +1410,9 @@ function initTopics(a_ID) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function initArticleHtmlFun(arr, result, html_type, ArticleData) {
|
||||
|
||||
console.log('ArticleData at line 1519:', ArticleData)
|
||||
|
||||
var refersContent = '';
|
||||
var htmlContent = ''
|
||||
htmlContent += arr.map((item, index) => {
|
||||
@@ -1748,10 +1455,9 @@ function initArticleHtmlFun(arr, result, html_type, ArticleData) {
|
||||
|
||||
|
||||
const { header, content } = splitTable(tableList);
|
||||
console.log('content at line 8641:', content); // 打印深拷贝的内容
|
||||
|
||||
var { rowData, rowIds } = addRowIdToData(JSON.parse(JSON.stringify(content)))
|
||||
console.log('content at line 8542:', rowIds, rowData)
|
||||
// console.log('contentList at line 8571:', contentList)
|
||||
|
||||
|
||||
contentHtml = `
|
||||
<div contenteditable="false" data-id="${item.amt_id}" main-state="${item.state}" main-id="${item.am_id
|
||||
@@ -1819,11 +1525,8 @@ text-align:left;color:#333;" >${item.table.note ? item.table.note : ''
|
||||
</div>
|
||||
`;
|
||||
} else {
|
||||
|
||||
contentHtml = `<p class="${item.is_h1 ? 'Ptitle pMain' : 'pMain'} " style="font-family: 'Charis SIL';min-height:12px;" main-state="${item.state}" contenteditable="false" data-id="${item.am_id}" main-id="${item.am_id}" id="${sectionId}">${item.content}</p>`;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 判断是否是表格类型
|
||||
@@ -1832,9 +1535,6 @@ text-align:left;color:#333;" >${item.table.note ? item.table.note : ''
|
||||
}).join('');
|
||||
//文章html内容部分
|
||||
htmlContent = `<div class="newHtml2" >${htmlContent}</div>`
|
||||
|
||||
|
||||
|
||||
if (result.data.refers.length > 0) { // 如果有引用数据
|
||||
var refs = '';
|
||||
var xuhao = 0;
|
||||
@@ -1876,18 +1576,12 @@ text-align:left;color:#333;" >${item.table.note ? item.table.note : ''
|
||||
refersContent = `<div id="ArticleRef" style="" class="ArticleRef"><p id="References" class="Ptitle "><b>References</b></p>${refs}</div>`
|
||||
|
||||
}
|
||||
|
||||
initContentHtml({ html: htmlContent, refers: refersContent }, arr, result.data.refers, html_type, { ...ArticleData })
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
console.log('ArticleData at line 2231:', ArticleData)
|
||||
|
||||
var j_artc = ArticleData.data.articleInfo
|
||||
console.log('j_artc at line 2233:', j_artc)
|
||||
|
||||
var pdf_list = ''
|
||||
var pdfStr = ''
|
||||
if (j_artc.file_sub && j_artc.file_sub != '') {
|
||||
@@ -1978,17 +1672,17 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
case (7):
|
||||
ttypeName = 'Proof'
|
||||
break;
|
||||
case (8):
|
||||
case (8):
|
||||
ttypeName = 'Final decision'
|
||||
break;
|
||||
case (9):
|
||||
ttypeName = 'Online'
|
||||
break;
|
||||
|
||||
case (9):
|
||||
ttypeName = 'Online'
|
||||
break;
|
||||
|
||||
}
|
||||
// 二级的时间
|
||||
var reviewers = ""
|
||||
|
||||
|
||||
if (ArticleData.data.track[tt].reviewers && ArticleData.data.track[tt].reviewers.length > 0) {
|
||||
shenCode = []
|
||||
for (var er = 0; er < ArticleData.data.track[tt].reviewers.length; er++) {
|
||||
@@ -1997,9 +1691,6 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
var reviewerItem = ''
|
||||
var time1 = '' // 创建时间
|
||||
var time2 = '' // 回应时间
|
||||
|
||||
// 初审和复审的审核意见
|
||||
// var fushenContent = ''
|
||||
var chushenContent = ''
|
||||
var timess = ''
|
||||
// 进入页面前清空
|
||||
@@ -2008,21 +1699,19 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
timess = ''
|
||||
chushenContent = ArticleData.data.track[tt].reviewers[er].question.comments
|
||||
timess = timestampToTime(ArticleData.data.track[tt].reviewers[er].question.ctime)
|
||||
|
||||
shenCode.push("<div class='shenheComments'><p><span>Comments:</span> <br/>" + chushenContent + "</p><p class='time'><span>Review comments received: </span>" + timess + "</p></div>")
|
||||
|
||||
// detailIcon = '<svg onclick="showComments(' + er + ')" style="vertical-align: middle; cursor: pointer; margin-left: 10px" t="1691720445324" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4032" width="26" height="26"><path d="M512 298.666667c-162.133333 0-285.866667 68.266667-375.466667 213.333333 89.6 145.066667 213.333333 213.333333 375.466667 213.333333s285.866667-68.266667 375.466667-213.333333c-89.6-145.066667-213.333333-213.333333-375.466667-213.333333z m0 469.333333c-183.466667 0-328.533333-85.333333-426.666667-256 98.133333-170.666667 243.2-256 426.666667-256s328.533333 85.333333 426.666667 256c-98.133333 170.666667-243.2 256-426.666667 256z m0-170.666667c46.933333 0 85.333333-38.4 85.333333-85.333333s-38.4-85.333333-85.333333-85.333333-85.333333 38.4-85.333333 85.333333 38.4 85.333333 85.333333 85.333333z m0 42.666667c-72.533333 0-128-55.466667-128-128s55.466667-128 128-128 128 55.466667 128 128-55.466667 128-128 128z" fill="#1296db" p-id="4033"></path></svg>'
|
||||
detailIcon = '<i class="detailsBtn" onclick="showComments(' + er + ')">(Detail)</i>'
|
||||
}
|
||||
switch (ArticleData.data.track[tt].reviewers[er].state) {
|
||||
case (1):
|
||||
reviewerState = 'Accept with major revision'
|
||||
reviewerState = 'Major revision'
|
||||
break;
|
||||
case (2):
|
||||
reviewerState = 'Reject'
|
||||
break;
|
||||
case (3):
|
||||
reviewerState = 'Accept with minor revision'
|
||||
reviewerState = 'Minor revision'
|
||||
break;
|
||||
}
|
||||
time1 = timestampToTime(ArticleData.data.track[tt].reviewers[er].ctime)
|
||||
@@ -2032,31 +1721,20 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
}
|
||||
}
|
||||
var finalStr = ""
|
||||
if (ArticleData.data.track[tt].type == 8&&ArticleData.data.track[tt].response && ArticleData.data.track[tt].response.length > 0) {
|
||||
|
||||
if (ArticleData.data.track[tt].type == 8 && ArticleData.data.track[tt].response && ArticleData.data.track[tt].response.length > 0) {
|
||||
|
||||
for (var er = 0; er < ArticleData.data.track[tt].response.length; er++) {
|
||||
var finalneiTag = ''
|
||||
var finalState = ''
|
||||
var finalItem = ''
|
||||
var finaltime1 = '' // 创建时间
|
||||
var finaltime2 = '' // 回应时间
|
||||
|
||||
// 初审和复审的审核意见
|
||||
// var fushenContent = ''
|
||||
var finalchushenContent = ''
|
||||
var finaltimess = ''
|
||||
// 进入页面前清空
|
||||
|
||||
chushenContent = ''
|
||||
timess = ''
|
||||
chushenContent = ''
|
||||
timess = timestampToTime(ArticleData.data.track[tt].response[er].review_time)
|
||||
|
||||
// shenCode.push("<div class='shenheComments'><p><span>Comments:</span> <br/>" + chushenContent + "</p><p class='time'><span>Review comments received: </span>" + timess + "</p></div>")
|
||||
|
||||
// detailIcon = '<svg onclick="showComments(' + er + ')" style="vertical-align: middle; cursor: pointer; margin-left: 10px" t="1691720445324" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4032" width="26" height="26"><path d="M512 298.666667c-162.133333 0-285.866667 68.266667-375.466667 213.333333 89.6 145.066667 213.333333 213.333333 375.466667 213.333333s285.866667-68.266667 375.466667-213.333333c-89.6-145.066667-213.333333-213.333333-375.466667-213.333333z m0 469.333333c-183.466667 0-328.533333-85.333333-426.666667-256 98.133333-170.666667 243.2-256 426.666667-256s328.533333 85.333333 426.666667 256c-98.133333 170.666667-243.2 256-426.666667 256z m0-170.666667c46.933333 0 85.333333-38.4 85.333333-85.333333s-38.4-85.333333-85.333333-85.333333-85.333333 38.4-85.333333 85.333333 38.4 85.333333 85.333333 85.333333z m0 42.666667c-72.533333 0-128-55.466667-128-128s55.466667-128 128-128 128 55.466667 128 128-55.466667 128-128 128z" fill="#1296db" p-id="4033"></path></svg>'
|
||||
// detailIcon = '<i class="detailsBtn" onclick="showComments(' + er + ')">(Detail)</i>'
|
||||
|
||||
chushenContent = ''
|
||||
timess = ''
|
||||
chushenContent = ''
|
||||
timess = timestampToTime(ArticleData.data.track[tt].response[er].review_time)
|
||||
switch (ArticleData.data.track[tt].response[er].state) {
|
||||
case (1):
|
||||
finalState = 'Accept'
|
||||
@@ -2070,10 +1748,10 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
}
|
||||
finaltime1 = timestampToTime(ArticleData.data.track[tt].response[er].invited_time)
|
||||
finaltime2 = timestampToTime(ArticleData.data.track[tt].response[er].review_time)
|
||||
finalItem = "<div class='reviewerBox'><span class='time1 time'>Invitation time: <br/>"
|
||||
+ finaltime1 +
|
||||
"</span><div class='box'><span class='title'>" + finalState +
|
||||
"</span><span class='reviewer'>Editorial Board: " +
|
||||
finalItem = "<div class='reviewerBox'><span class='time1 time'>Invitation time: <br/>"
|
||||
+ finaltime1 +
|
||||
"</span><div class='box'><span class='title'>" + finalState +
|
||||
"</span><span class='reviewer'>Editorial Board: " +
|
||||
`${ArticleData.data.track[tt].response[er].realname}` + "</span><span class='reviewer'>Final decision time: " + `${finaltime2}` + "</span></div></div>"
|
||||
finalStr += finalItem
|
||||
}
|
||||
@@ -2095,7 +1773,7 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
}
|
||||
Revitag = '<div class="filerev">' + title + lisss + '</div>'
|
||||
}
|
||||
li = "<div class='trackItem " + typeClass + "'><span class='time'>" + ttime + "</span><div class='type'><span class='title'>" + ttypeName + "</span>" + reviewers + Revitag+finalStr + "</div></div>"
|
||||
li = "<div class='trackItem " + typeClass + "'><span class='time'>" + ttime + "</span><div class='type'><span class='title'>" + ttypeName + "</span>" + reviewers + Revitag + finalStr + "</div></div>"
|
||||
lis += li
|
||||
}
|
||||
|
||||
@@ -2110,13 +1788,6 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
|
||||
//ManuscriptProcessing
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var str = `
|
||||
<div class="conthtmn_right" style="margin-left:300px;padding-top:30px;padding-right:15px;box-sizing:border-box">
|
||||
|
||||
@@ -2137,9 +1808,9 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
await initArticleHtml(arr, refers, html_type, { OriginalDataStr: OriginalDataStr, pdfStr: pdfStr, trackStr: trackStr, mhooStr: mhooStr })
|
||||
await initRelatedArticles(ArticleData.a_ID)
|
||||
await initTopics(ArticleData.a_ID)
|
||||
console.log('citationCache at line 2137:', citationCache)
|
||||
|
||||
await fetchCitationsData(j_artc.doi, ArticleData.a_ID, async function (data) {
|
||||
console.log('data at line 893:', data)
|
||||
|
||||
citationCache = data; // 存好结果,稍后再使用
|
||||
await renderCitations(citationCache, j_artc.doi); // 传入上一步保存的数据
|
||||
});
|
||||
@@ -2147,7 +1818,7 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
|
||||
}
|
||||
|
||||
function initArticleHtml(htmlData, refs, type, otherList) {
|
||||
console.log('otherList at line 2446:', otherList)
|
||||
|
||||
document.querySelectorAll('wmath').forEach(el => {
|
||||
const latex = el.getAttribute('data-latex');
|
||||
if (latex) {
|
||||
@@ -2208,7 +1879,7 @@ function initArticleHtml(htmlData, refs, type, otherList) {
|
||||
}
|
||||
if (text === 'citation') {
|
||||
citationEndIndex = index;
|
||||
console.log('CitationEndIndex at line 8765:', citationEndIndex)
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2329,7 +2000,7 @@ function initArticleHtml(htmlData, refs, type, otherList) {
|
||||
})
|
||||
}
|
||||
|
||||
console.log('navLinks.forEach at line 7752:', navLinks)
|
||||
|
||||
// 引用
|
||||
var navHtml = `<div class="anchor-nav outline-container is-open" > <div class="outline-toggle">
|
||||
|
||||
@@ -2568,14 +2239,8 @@ function initArticleHtml(htmlData, refs, type, otherList) {
|
||||
$(document).ready(function () {
|
||||
// 监听右侧滚动区域
|
||||
$('.newBox').scroll(function () {
|
||||
|
||||
|
||||
var scrollTop = $(this).scrollTop(); // 获取当前右侧滚动的位置
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var scrollHeight = $(this)[0].scrollHeight; // 获取右侧滚动区域的总高度
|
||||
var containerHeight = $(this).height(); // 获取右侧容器的高度
|
||||
// 获取所有右侧的 .pMain
|
||||
@@ -2608,23 +2273,7 @@ function initArticleHtml(htmlData, refs, type, otherList) {
|
||||
this.style.setProperty('border-bottom', '1px solid #000', 'important');
|
||||
|
||||
});
|
||||
// document.querySelectorAll('.anchor-nav a[href^="#"]').forEach(anchor => {
|
||||
// anchor.addEventListener('click', function (e) {
|
||||
// const href = this.getAttribute('href');
|
||||
// const target = document.querySelector(href);
|
||||
|
||||
// if (target) {
|
||||
// e.preventDefault();
|
||||
// const offset = 100; // 调整这里的偏移距离
|
||||
|
||||
// window.scrollTo({
|
||||
// top: target.offsetTop - offset,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
|
||||
|
||||
const waitForTop = setInterval(() => {
|
||||
const bar = document.querySelector('.v4-art-top');
|
||||
if (bar) {
|
||||
@@ -2658,34 +2307,9 @@ function initArticleHtml(htmlData, refs, type, otherList) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}, 100);
|
||||
|
||||
// $(document).on('click', '.outline-toggle', function () {
|
||||
// const $container = $(this).closest('.outline-container');
|
||||
// const $icon = $(this).find('i');
|
||||
// const $text = $(this).find('.toggle-text');
|
||||
// const $panel = $('.conthtmn_right');
|
||||
// const isClosed = $container.hasClass('is-closed');
|
||||
|
||||
// if (isClosed) {
|
||||
// $container.removeClass('is-closed').addClass('is-open');
|
||||
// $panel.get(0).style.setProperty('margin-left', '300px', 'important');
|
||||
|
||||
|
||||
// } else {
|
||||
// $container.removeClass('is-open').addClass('is-closed');
|
||||
|
||||
|
||||
|
||||
// $panel.get(0).style.setProperty('margin-left', '40px', 'important');
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}, 500);
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -2718,14 +2342,16 @@ function splitTable(tableList) {
|
||||
}
|
||||
});
|
||||
//
|
||||
console.log('header:', header); // 打印头部行数据
|
||||
console.log('table打印内容行数据:', content); // 打印内容行数据
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { header, content };
|
||||
}
|
||||
// 图片预览
|
||||
function picPreview(src) {
|
||||
console.log(src)
|
||||
|
||||
$('.PicPreview img').attr('src', src)
|
||||
$('.PicPreview').show()
|
||||
}
|
||||
@@ -2887,19 +2513,7 @@ function initArticleNavList(a_ID) {
|
||||
if (topBar) {
|
||||
topBar.insertAdjacentHTML('afterend', str);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// JavaScript to handle dropdown toggle on button click
|
||||
|
||||
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}
|
||||
function openPdf(url, j_artc, Jour_num) {
|
||||
$.ajax({
|
||||
@@ -2917,27 +2531,19 @@ function openPdf(url, j_artc, Jour_num) {
|
||||
window.open(url);
|
||||
}
|
||||
function initMoreButtonTopList(articleInfo, a_ID) {
|
||||
console.log('articleInfo at line 2590:', articleInfo)
|
||||
|
||||
|
||||
var j_artc = articleInfo.articleInfo
|
||||
var Journals_color = localStorage.getItem('Journals_color')
|
||||
var journalStageID = localStorage.getItem('journalStageID')
|
||||
|
||||
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `
|
||||
|
||||
.v4-art-top-main-m .v4-art-top-item span:hover{
|
||||
color: ${Journals_color};
|
||||
}
|
||||
|
||||
`
|
||||
|
||||
document.head.appendChild(style);
|
||||
|
||||
// 获取 id 为 top_bar 的元素
|
||||
var topBar = document.getElementById("article_base_info_box");
|
||||
|
||||
var str = `
|
||||
<div id="v4_art_top" class="v4-art-top">
|
||||
<div id="v4_art_top_main" class="v4-art-top-main" style="position: relative; background-color: transparent;">
|
||||
@@ -2968,9 +2574,7 @@ function initMoreButtonTopList(articleInfo, a_ID) {
|
||||
|
||||
// 使用 insertAdjacentHTML 在 top_bar 后插入新元素
|
||||
if (topBar) {
|
||||
|
||||
topBar.insertAdjacentHTML('afterend', str);
|
||||
|
||||
const citeEl = document.querySelector('.v4-art-top-item.cite');
|
||||
if (citeEl) {
|
||||
citeEl.onclick = () => {
|
||||
@@ -3012,13 +2616,9 @@ function openAbstracting(Jour_num, Journals_color) {
|
||||
showPopup(`<span style="font-weight:bold;color:${Journals_color}">Abstracting & Indexing</span>`, Abstractingcontent)
|
||||
|
||||
|
||||
|
||||
|
||||
// 5秒后自动关闭
|
||||
// setTimeout(closePopup, 5000);
|
||||
}
|
||||
function openCite(Jour_num, Journals_color, a_ID, j_artc, data) {
|
||||
console.log('data at line 2593:', j_artc, data)
|
||||
|
||||
var GoogleScholar = ''
|
||||
if ((Math.round(Date.parse(new Date()) / 1000) - j_artc.ctime) / 86400 >= 21) {
|
||||
GoogleScholar =
|
||||
@@ -3111,15 +2711,8 @@ function openCite(Jour_num, Journals_color, a_ID, j_artc, data) {
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 5秒后自动关闭
|
||||
// setTimeout(closePopup, 5000);
|
||||
}
|
||||
function openAuthorship(Jour_num, Journals_color) {
|
||||
|
||||
var Abstractingcontent = `
|
||||
<div class="tmr_side_map AuthorshipInfo" style="
|
||||
width:300px;margin-top:20px">
|
||||
@@ -3132,10 +2725,6 @@ function openAuthorship(Jour_num, Journals_color) {
|
||||
showPopup(`<span style="font-weight:bold;color:${Journals_color}">Abstracting & Indexing</span>`, Abstractingcontent, 'Authorship')
|
||||
|
||||
|
||||
|
||||
|
||||
// 5秒后自动关闭
|
||||
// setTimeout(closePopup, 5000);
|
||||
}
|
||||
function showPopup(title, content, type) {
|
||||
$('#common-popup .common-popup-title').html(title)
|
||||
|
||||
@@ -26,8 +26,8 @@ function commonHomePage() {
|
||||
|
||||
}
|
||||
.qk_img {
|
||||
width: 135px;
|
||||
height: 175px;
|
||||
width: 110px;
|
||||
height: 150px;
|
||||
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ function commonHomePage() {
|
||||
|
||||
}
|
||||
.jour_base_info_center{
|
||||
width: 30%;
|
||||
width: 22.5%;
|
||||
display:flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
@@ -45,35 +45,33 @@ function commonHomePage() {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.jour_base_info_center:nth-child(1){
|
||||
width: 36%;
|
||||
}
|
||||
.jour_base_info_center:nth-child(4){
|
||||
width: 36%;
|
||||
}
|
||||
.jour_base_info_center:nth-child(7){
|
||||
width: 36%;
|
||||
width: 27%;
|
||||
}
|
||||
.jour_base_info_center:nth-child(3){
|
||||
width: 33%;
|
||||
width: 25%;
|
||||
}
|
||||
.jour_base_info_center:nth-child(6){
|
||||
width: 33%;
|
||||
.jour_base_info_center:nth-child(4){
|
||||
width: 24%;
|
||||
}
|
||||
.jour_base_info_center:nth-child(9){
|
||||
width: 33%;
|
||||
.jour_base_info_center:nth-child(5){
|
||||
width: 27%;
|
||||
}
|
||||
.jour_base_info_center:nth-child(7){
|
||||
width: 25%;
|
||||
}
|
||||
.jour_base_info_center:nth-child(8){
|
||||
width: 63.5%;
|
||||
width: 24%;
|
||||
}
|
||||
|
||||
.jour_base_info_title{
|
||||
color: #222;
|
||||
font-weight: bold;
|
||||
font-size: 17px;
|
||||
font-size: 12px;
|
||||
font-family: "Helvetica Neue", Helvetica, Georgia, sans-serif;
|
||||
margin-left:-0.5px;
|
||||
}
|
||||
.jour_base_info_center_right{
|
||||
width:calc(100% - 145px);
|
||||
width:calc(100% - 120px);
|
||||
}
|
||||
#common-overlay {
|
||||
position: fixed;
|
||||
@@ -261,18 +259,18 @@ function commonHomePage() {
|
||||
<div class="jour_base_info_center_right" >
|
||||
<div class="jour_base_info_center_right_con">
|
||||
<p class="jour_base_info_title" style="cursor: pointer;letter-spacing: -0.5px;">${arr[i].title}</p>
|
||||
<p style="margin-top: 4px;font-size: 13px;">
|
||||
<p style="margin-top: 4px;font-size: 11px;">
|
||||
<b>Editor-in-Chief: </b>
|
||||
<span class="mes_edit"
|
||||
style="display: inline-block;vertical-align: top;">${arr[i].editorinchief}</span>
|
||||
</p>
|
||||
<p style="margin-top: 4px;font-size: 13px;">
|
||||
<p style="margin-top: 4px;font-size: 11px;">
|
||||
<b>Acceptance: </b>${arr[i].acceptance}</p>
|
||||
<p style="margin-top: 4px;font-size: 13px;"> <b>Final Decision: </b>${arr[i].finaldecision}</p>
|
||||
<p style="${CiteScore ? '' : 'display:none'};margin-top: 4px;font-size: 13px;"><b>CiteScore: </b> <span style="color: #006699">${CiteScore}</span></p>
|
||||
<p style="${ImpactFactor ? '' : 'display:none'};margin-top: 4px;font-size: 13px;"><b>Impact Factor: </b> <span style="color: #006699">${ImpactFactor}</span></p>
|
||||
<p style="${apcStr ? '' : 'display:none'};margin-top: 4px;font-size: 13px;"><b>APC: </b> <span class="mes_APC">${apcStr}</span></p>
|
||||
<p style="${arr_Abc && arr_Abc.length > 0 ? '' : ''}margin-top: 4px;font-size: 13px;"><b class="wl_click" style="cursor: pointer;">Indexing</b> </p>
|
||||
<p style="margin-top: 4px;font-size: 11px;"> <b>Final Decision: </b>${arr[i].finaldecision}</p>
|
||||
<p style="${CiteScore ? '' : 'display:none'};margin-top: 4px;font-size: 11px;"><b>CiteScore: </b> <span style="color: #006699">${CiteScore}</span></p>
|
||||
<p style="${ImpactFactor ? '' : 'display:none'};margin-top: 4px;font-size: 11px;"><b>Impact Factor: </b> <span style="color: #006699">${ImpactFactor}</span></p>
|
||||
<p style="${apcStr ? '' : 'display:none'};margin-top: 4px;font-size: 11px;"><b>APC: </b> <span class="mes_APC">${apcStr}</span></p>
|
||||
<p style="${arr_Abc && arr_Abc.length > 0 ? '' : ''}margin-top: 4px;font-size: 11px;"><b class="wl_click" style="cursor: pointer;">Indexing</b> </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
22
js/js.js
22
js/js.js
@@ -50,6 +50,27 @@ var Jour_num = localStorage.Journals_num;
|
||||
|
||||
// tab选项卡
|
||||
$(document).ready(function () {
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `
|
||||
#index_top .nav ul a:nth-child(1) li {
|
||||
width: 225px !important;
|
||||
}
|
||||
#index_top .nav ul a:nth-child(2) li {
|
||||
width: 110px !important;
|
||||
}
|
||||
|
||||
#index_top .nav ul a:nth-child(3) li {
|
||||
width: 195px !important;
|
||||
}
|
||||
|
||||
#index_top .nav ul a:nth-child(4) li {
|
||||
width: 110px !important;
|
||||
}
|
||||
|
||||
#index_top.nav ul a:nth-child(5) li {
|
||||
width: 90px !important;
|
||||
}`
|
||||
document.head.appendChild(style);
|
||||
// 检查 URL 是否包含参数 pre
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const isPre = urlParams.has('preview');
|
||||
@@ -198,7 +219,6 @@ $('#top_bar').load('header.html')
|
||||
$('#index_top').load('header_in.html')
|
||||
|
||||
|
||||
|
||||
// 高度一致
|
||||
function whit_color() {
|
||||
// if($(".art_side").height() > $(".art_main").height()){
|
||||
|
||||
12
js/side.js
12
js/side.js
@@ -316,10 +316,14 @@ if(Jour_num == 17||Jour_num == 24){
|
||||
|
||||
|
||||
// 相关期刊
|
||||
var corr = result.data.relats;
|
||||
if (result.data.relats.length > 0) {
|
||||
var corr = result.data.relats;
|
||||
$('.jour_correlate>a').attr('href', '/' + corr[0].usx);
|
||||
$('.jour_correlate>a>img').attr('src', imgjourUrl + corr[0].icon)
|
||||
}
|
||||
|
||||
|
||||
$('.jour_correlate>a').attr('href', '/' + corr[0].usx);
|
||||
$('.jour_correlate>a>img').attr('src', imgjourUrl + corr[0].icon)
|
||||
|
||||
|
||||
if (localStorage.Journals_title == '经典中医研究') {
|
||||
$('.jour_correlate>h4').html('相关期刊');
|
||||
@@ -751,7 +755,7 @@ if(Jour_num == 17||Jour_num == 24){
|
||||
$('.jour_guest h4 a').css('display', 'none');
|
||||
|
||||
|
||||
} console.log('result.data.is_show at line 535:', result)
|
||||
}
|
||||
//11 mdm
|
||||
if (result.data.is_show == "false" || Jour_num == '11') {
|
||||
// $('.jour_guest h4 a').css('display', 'none');
|
||||
|
||||
@@ -186,11 +186,11 @@ function side_list() {
|
||||
|
||||
|
||||
// 相关期刊
|
||||
var corr = result.data.relats;
|
||||
|
||||
$('.jour_correlate>a').attr('href', '/' + corr[0].usx);
|
||||
$('.jour_correlate>a>img').attr('src', imgjourUrl + corr[0].icon)
|
||||
|
||||
if (result.data.relats.length > 0) {
|
||||
var corr = result.data.relats;
|
||||
$('.jour_correlate>a').attr('href', '/' + corr[0].usx);
|
||||
$('.jour_correlate>a>img').attr('src', imgjourUrl + corr[0].icon)
|
||||
}
|
||||
// 感谢图片
|
||||
$('.jour_awaite').before('<div class="thank_img" style="text-align: center">' +
|
||||
'<a href="thank_list.html?J_num=1" target="_blank">' +
|
||||
@@ -540,7 +540,7 @@ function side_list() {
|
||||
if (!result.data.is_show) {
|
||||
$('.jour_guest h4 a').css('display', 'none');
|
||||
|
||||
} console.log('result.data.is_show at line 535:', result)
|
||||
}
|
||||
if (result.data.is_show == "false") {
|
||||
|
||||
// $('.jour_guest h4 a').css('display', 'none');
|
||||
|
||||
Reference in New Issue
Block a user