${Number(i) + 1}.
@@ -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 = `
${result.data.list && result.data.list.length > 0 ? result.data.list.length : 0}
`
-// var journalCiteStr = ""
-// $('.Wos .quote-content1').html(str1)
-// var arr = result.data.list
-// for (let i in arr) {
-// journalCiteStr += `
${Number(i) + 1}.
-//
-//
${arr[i].article_name}
-
-//
-// ${arr[i].journal_name},
-// ${arr[i].author ? `${arr[i].author},` : ''} ${arr[i].journal_name}${arr[i].vol ? `${arr[i].vol},` : ''}
-//
-
-//
-// https://doi.org/${arr[i].doi}
-
-//
`
-// }
-
-// 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 = `
`
-// $('.DimensionsBadge a').attr('href', 'https://badge.dimensions.ai/details/doi/' + doi)
-// var str = `
${result.times_cited}
`
-// $('.DimensionsBadge .quote-content').html(str)
-// },
-// error: function (result) {
-// console.log('result at line 212:', result)
-// // var str = `
`
-
-// var str = `
0
`
-// $('.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 = `
${result.tallies[i]['citingPublications']}
`
-// }
-// $('.SciteBadge .quote-content1').html(str1)
-// },
-// error: function (result) {
-// console.log('result at line 212:', result)
-// var str1 = `
0
`
-
-// $('.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 = `
${result.data && result.data.length > 0 ? result.data.length : 0}
`
-// var journalCiteStr = ""
-// $('.Crossref .quote-content1').html(str1)
-// var arr = result.data
-// for (let i in arr) {
-// journalCiteStr += `
${Number(i) + 1}.
-//
-
-//
`
-// }
-
-// 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 += `
` + "

` + arr[i].note + "
"
}
@@ -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: "
Abstract",
is_title: 0,
},
{
-
-
content: j_artc.abstract,
is_title: 0,
},
{
-
-
content: '
',
-
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');
-
- // // 遍历每个
标签
- // strongElements.forEach(function (element) {
- // // 检查 标签内的文本内容是否为 "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")
-
-
-
- // ) {
- // // 修改该 标签的样式,改变颜色
- // 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('PDF');
- // // $('.wen_rong .rong_box .contfdf ul').html('
PDF');
- // }
+
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('HTML');
$('.wen_rong .rong_box .contfhml ul').html('
HTML');
}
- //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('' +
'' +
'' +
@@ -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 = `
${item.table.note ? item.table.note : ''
`;
} else {
-
contentHtml = `${item.content}
`;
-
-
}
// 判断是否是表格类型
@@ -1832,9 +1535,6 @@ text-align:left;color:#333;" >${item.table.note ? item.table.note : ''
}).join('');
//文章html内容部分
htmlContent = `${htmlContent}
`
-
-
-
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 = ``
}
-
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("")
-
// detailIcon = ''
detailIcon = '(Detail)'
}
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("")
-
- // detailIcon = ''
- // detailIcon = '(Detail)'
-
+ 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 = "Invitation time:
"
- + finaltime1 +
- "" + finalState +
- "Editorial Board: " +
+ finalItem = "Invitation time:
"
+ + finaltime1 +
+ "" + finalState +
+ "Editorial Board: " +
`${ArticleData.data.track[tt].response[er].realname}` + "Final decision time: " + `${finaltime2}` + "
"
finalStr += finalItem
}
@@ -2095,7 +1773,7 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
}
Revitag = '' + title + lisss + '
'
}
- li = "" + ttime + "" + ttypeName + "" + reviewers + Revitag+finalStr + "
"
+ li = "" + ttime + "" + ttypeName + "" + reviewers + Revitag + finalStr + "
"
lis += li
}
@@ -2110,13 +1788,6 @@ async function initContentHtml(content, arr, refers, html_type, ArticleData) {
//ManuscriptProcessing
-
-
-
-
-
-
-
var str = `
@@ -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 = `
@@ -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 = `
@@ -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(`
Abstracting & Indexing`, 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 = `
@@ -3132,10 +2725,6 @@ function openAuthorship(Jour_num, Journals_color) {
showPopup(`
Abstracting & Indexing`, Abstractingcontent, 'Authorship')
-
-
- // 5秒后自动关闭
- // setTimeout(closePopup, 5000);
}
function showPopup(title, content, type) {
$('#common-popup .common-popup-title').html(title)
diff --git a/js/commonHomePage.js b/js/commonHomePage.js
index 9629a33..622c88a 100644
--- a/js/commonHomePage.js
+++ b/js/commonHomePage.js
@@ -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() {
${arr[i].title}
-
+
Editor-in-Chief:
${arr[i].editorinchief}
-
+
Acceptance: ${arr[i].acceptance}
-
Final Decision: ${arr[i].finaldecision}
-
CiteScore: ${CiteScore}
-
Impact Factor: ${ImpactFactor}
-
APC: ${apcStr}
-
Indexing
+
Final Decision: ${arr[i].finaldecision}
+
CiteScore: ${CiteScore}
+
Impact Factor: ${ImpactFactor}
+
APC: ${apcStr}
+
Indexing
diff --git a/js/js.js b/js/js.js
index 927bd7b..d88c263 100644
--- a/js/js.js
+++ b/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()){
diff --git a/js/side.js b/js/side.js
index 0f67c3e..2be8c49 100644
--- a/js/side.js
+++ b/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');
diff --git a/jstmr/side.js b/jstmr/side.js
index 7a604ec..49e1597 100644
--- a/jstmr/side.js
+++ b/jstmr/side.js
@@ -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('