tijiao
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
// 期刊基础、外链、分期、话题信息加载
|
||||
var Journals_color = localStorage.getItem('Journals_color')
|
||||
function bf_list() {
|
||||
@@ -247,16 +248,17 @@ function bf_list() {
|
||||
if (arr[i].icon == '') {
|
||||
var img_i = ''
|
||||
} else {
|
||||
var img_i = '<a target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '"><img src="' + imgjourUrl + arr[i].icon + '" alt=""></a>'
|
||||
var img_i = '<a target="_blank" href="/gue_cont.html?J_num=' + Jour_num + '&Gu_num=' + arr[i].journal_special_id + '"><img src="' + imgjourUrl + arr[i].icon + '" alt=""></a>'
|
||||
}
|
||||
str += '<li style="box-shadow: none;margin-right: 0;">' +
|
||||
'<a target="_blank" href="article.html?J_num=' + Jour_num + '&a_id=' + arr[i].article_id + '">' +
|
||||
'<a target="_blank" style="display: block;" href="/gue_cont.html?J_num=' + Jour_num + '&Gu_num=' + arr[i].journal_special_id + '">' +
|
||||
|
||||
'<img src="' + imgjourUrl + arr[i].icon + '" alt="" style="background: #fff;"></a>' +
|
||||
`<h6><a target="_blank" href="/gue_cont.html?J_num=${Jour_num}&&Gu_num=${arr[i].journal_special_id}" ` +
|
||||
'style="font-weight: bold;color: #444;">' + arr[i].title + '</a></h6>' +
|
||||
'<div class="fo_fam">' + arr[i].editor + '. | ' + arr[i].deadline + '</div></li>'
|
||||
}
|
||||
$('.Special_Issues_box>a').attr('href', 'article_list.html?J_num=' + Jour_num + '&top_id=' + Jour_num);
|
||||
// $('.Special_Issues_box>a').attr('href', '/gue_cont.html?J_num=' + Jour_num + '&Gu_num=' + arr[i].journal_special_id);
|
||||
$('.Special_Issues_box>ul').html(str + '<br clear="both">');
|
||||
if (arr == '') {
|
||||
$('.Special_Issues_box').css('display', 'none')
|
||||
@@ -425,37 +427,53 @@ function bf_list() {
|
||||
for (var t = 0; t < arr[i].topic.length; t++) {
|
||||
lr_top += '<a href="topic_list.html?J_num=' + Jour_num + '&t_id=' + arr[i].topic[t].journal_topic_id + '" target="_blank">' + arr[i].topic[t].title + '</a>'
|
||||
}
|
||||
}
|
||||
}
|
||||
var trad_tion = '';
|
||||
var maxTradHeight = 220; // 设置最大高度
|
||||
if (Jour_num == 1) {
|
||||
if (arr[i].tradition_tag == '') {
|
||||
|
||||
} else {
|
||||
var traditionText = arr[i].tradition;
|
||||
|
||||
|
||||
|
||||
if (arr[i].tradition_tag == '') {
|
||||
var trad_tion = '';
|
||||
} else {
|
||||
var traditionText = arr[i].tradition;
|
||||
var maxTradHeight = 220; // 设置最大高度
|
||||
|
||||
trad_tion = `<div class="tradition-box" style="width:100%;height:auto;line-height:20px;overflow:hidden;">
|
||||
trad_tion = `<div class="tradition-box" style="width:100%;height:auto;line-height:20px;overflow:hidden;">
|
||||
<div class="tradition-text">${arr[i].tradition_tag}: ${traditionText}</div>
|
||||
</div>`;
|
||||
|
||||
setTimeout(() => {
|
||||
let traditionElement = document.querySelector('.tradition-text:last-of-type');
|
||||
if (traditionElement.scrollHeight > maxTradHeight) {
|
||||
let words = traditionText.split(" ");
|
||||
let truncatedText = "";
|
||||
setTimeout(() => {
|
||||
let traditionElement = document.querySelector('.tradition-text:last-of-type');
|
||||
if (traditionElement.scrollHeight > maxTradHeight) {
|
||||
let words = traditionText.split(" ");
|
||||
let truncatedText = "";
|
||||
|
||||
for (let j = 0; j < words.length; j++) {
|
||||
truncatedText += words[j] + " ";
|
||||
traditionElement.innerText = truncatedText + "...";
|
||||
if (traditionElement.scrollHeight > maxTradHeight) {
|
||||
truncatedText = truncatedText.trim().split(" ").slice(0, -1).join(" ");
|
||||
traditionElement.innerText = truncatedText + " ...";
|
||||
break;
|
||||
for (let j = 0; j < words.length; j++) {
|
||||
truncatedText += words[j] + " ";
|
||||
traditionElement.innerText = truncatedText + "...";
|
||||
if (traditionElement.scrollHeight > maxTradHeight) {
|
||||
truncatedText = truncatedText.trim().split(" ").slice(0, -1).join(" ");
|
||||
traditionElement.innerText = truncatedText + " ...";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 100); // 确保 DOM 渲染完成
|
||||
}, 100); // 确保 DOM 渲染完成
|
||||
}
|
||||
} else {
|
||||
if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) {
|
||||
var textContent = arr[i].abstract;
|
||||
} else {
|
||||
var textContent = '<b style="color: ' + Journals_color + '">' + arr[i].tradition_tag + ':</b> ' + arr[i].tradition;
|
||||
}
|
||||
|
||||
|
||||
|
||||
trad_tion = `<div class="tradition-box" style="width:100%; max-height:${maxTradHeight}px; line-height:20px; overflow:hidden;">
|
||||
<div class="tradition-text">${textContent}</div>
|
||||
</div>`;
|
||||
|
||||
}
|
||||
|
||||
str += `<li>
|
||||
<div class="dbt_header">
|
||||
${arr[i].type}
|
||||
@@ -478,6 +496,10 @@ function bf_list() {
|
||||
}
|
||||
|
||||
|
||||
$('.current_list .current_issue_time').css({
|
||||
'color': "#888"
|
||||
});
|
||||
$('.current_list .current_issue_time').html(time_);
|
||||
$('.current_list>ul').html(str);
|
||||
$('.links_ .txt_copy').css('background', localStorage.Journals_color);
|
||||
$('.url_top a').css('margin-right', '0');
|
||||
@@ -1517,6 +1539,40 @@ function initJournalBaseInfo(result) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
var ImpactFactorStr = Jour_num == 1 ? `<div class="cite-score-badge" style="width: 64px;height: 64px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: transparent;
|
||||
box-shadow: inset 0 0 12px rgb(255 255 255), 0 0 16px rgba(0, 150, 255, 0.4);
|
||||
text-align: center;
|
||||
color: #000;
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
margin-top: 2px;
|
||||
">
|
||||
<span class="cite-text" style="font-size: 11px;line-height: 16px;font-weight: 600;color: #f0f0f0;letter-spacing: -0.75px;">
|
||||
<text style="margin-top: 7px;line-height: 19px;display: inline-block;">Impact Factor</text>
|
||||
<strong style="font-size: 18px;color: #fff;">${ImpactFactor}</strong>
|
||||
</span>
|
||||
</div>`: ''
|
||||
var CiteScoreStr = `<div class="cite-score-badge" style="width: ${Jour_num == 1 ? 64 : 60}px;height: ${Jour_num == 1 ? 64 : 60}px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: transparent;
|
||||
box-shadow: inset 0 0 12px rgb(255 255 255), 0 0 16px rgba(0, 150, 255, 0.4);
|
||||
text-align: center;
|
||||
color: #000;
|
||||
float: right;
|
||||
margin-left: ${Jour_num == 1 ? 10 : 20}px;
|
||||
margin-top: 2px;
|
||||
">
|
||||
<span class="cite-text" style="font-size: 12px;line-height: 16px;font-weight: 600;color: #f0f0f0;letter-spacing: -0.75px;">
|
||||
<text style="margin-top: 7px;line-height: 19px;display: inline-block;">Cite Score</text>
|
||||
<strong style="font-size: 18px;color: #fff;">${CiteScore}</strong>
|
||||
</span>
|
||||
</div>`
|
||||
$('#top_bar .rgb_color_background h1').css({
|
||||
'position': 'relative'
|
||||
|
||||
})
|
||||
$('#top_bar .rgb_color_background h1 a').after(`<div style="position: absolute;width: 100%;top: -30px;right: ${Jour_num == 1 ? -170 : -110}px;">${ImpactFactorStr}${CiteScoreStr}</div>`)
|
||||
|
||||
// 外链信息
|
||||
var arr_Abc = result.data.journalAbs.filter(e => e.is_show == 1);
|
||||
var AbstractingStr = "";
|
||||
@@ -1558,8 +1614,8 @@ function initJournalBaseInfo(result) {
|
||||
<img src="/img/details.png" style="width: 20px;height: 20px;margin: 0 0 0 10px;vertical-align: bottom;">
|
||||
</a>
|
||||
</p>
|
||||
<p><b>Impact Factor (Clarivate):</b> <span style="font-weight:700;color: ${arr_jour.system_color}">${ImpactFactor}</span></p>
|
||||
<p><b>CiteScore (Scopus):</b> <span style="font-weight:700;color: ${arr_jour.system_color}">${CiteScore}</span></p>
|
||||
<p><b>Impact Factor (Clarivate):</b> <span style="color: ${arr_jour.system_color}">${ImpactFactor}</span></p>
|
||||
<p><b>CiteScore (Scopus):</b> <span style="color: ${arr_jour.system_color}">${CiteScore}</span></p>
|
||||
<p><b>Acceptance:</b> <span class="mes_accep">${arr_jour.acceptance}</span></p>
|
||||
<p><b>Final Decision:</b> <span class="mes_final">${arr_jour.finaldecision}</span></p>
|
||||
<p><b>APC:</b> <span class="mes_APC">${apcStr}</span><a href="/apc/"
|
||||
@@ -1641,7 +1697,7 @@ function initJournalBaseInfo(result) {
|
||||
var otherStr4 = `
|
||||
<li class="mes_all_section_other">
|
||||
<div class="mes_all_title">Abstracting & Indexing</div>
|
||||
<ul class="mes_Abs" style="width:360px;background:#fff;padding: 0px 4px;border-radius:4px;overflow:hidden;">${AbstractingStr}
|
||||
<ul class="mes_Abs" style="width:200px;background:#fff;padding: 0px 4px;border-radius:4px;overflow:hidden;">${AbstractingStr}
|
||||
${arr_Abc.length > 7 ? `<a class="wl_click">more <i class="fa fa-long-arrow-down"></i></a>` : ''}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -1649,21 +1705,29 @@ function initJournalBaseInfo(result) {
|
||||
$('.jour_base_info .jour_base_info_center .mes_all .mes_all_section').html(otherStr1 + otherStr2 + otherStr3 + otherStr4);
|
||||
$('.mes_Abs li:gt(6)').hide();
|
||||
$(".wl_click").bind('click', function (e) {
|
||||
e.stopPropagation();
|
||||
// f4fafd
|
||||
$('.mes_Abs').css({
|
||||
'background': '#fff'
|
||||
})
|
||||
if ($(".wl_click").html() == 'more <i class="fa fa-long-arrow-up"></i>') {
|
||||
$('.mes_Abs li:gt(14)').hide();
|
||||
$('.wl_click').html('more <i class="fa fa-long-arrow-down"></i>');
|
||||
} else {
|
||||
$('.mes_Abs li:gt(14)').show();
|
||||
$('.wl_click').html('more <i class="fa fa-long-arrow-up"></i>');
|
||||
$('.mes_Abs').css({
|
||||
'background': '#f4fafd'
|
||||
})
|
||||
}
|
||||
var Abstractingcontent = `<ul style="margin-top:10px;">
|
||||
${arr_Abc.map((item, i) => {
|
||||
return `<li style="font-weight:700;font-size:14px;"><span style="display:inline-block">» </span><a target="_blank" href="${item.url}" style="font-weight:700;display:inline-block">${item.title}</a></li>`;
|
||||
}).join('')}
|
||||
</ul>`
|
||||
document.querySelector('#common-popup .common-popup-content').classList.add('whitebg');
|
||||
showPopup(`<span style="font-weight:bold;color:${Journals_color}">Abstracting & Indexing</span>`, Abstractingcontent)
|
||||
|
||||
// e.stopPropagation();
|
||||
// // f4fafd
|
||||
// $('.mes_Abs').css({
|
||||
// 'background': '#fff'
|
||||
// })
|
||||
// if ($(".wl_click").html() == 'more <i class="fa fa-long-arrow-up"></i>') {
|
||||
// $('.mes_Abs li:gt(14)').hide();
|
||||
// $('.wl_click').html('more <i class="fa fa-long-arrow-down"></i>');
|
||||
// } else {
|
||||
// $('.mes_Abs li:gt(14)').show();
|
||||
// $('.wl_click').html('more <i class="fa fa-long-arrow-up"></i>');
|
||||
// $('.mes_Abs').css({
|
||||
// 'background': '#f4fafd'
|
||||
// })
|
||||
// }
|
||||
});
|
||||
$(".wl_click").css('color', arr_jour.system_color);
|
||||
renderMap(160, function () {
|
||||
@@ -1688,7 +1752,7 @@ function initJournalBaseInfo(result) {
|
||||
$(document).click(function (e) {
|
||||
if (!$(e.target).closest(".jour_base_info .jour_base_info_center .mes_all .mes_all_section .mes_all_section_other .Authorship .Authorship_text").length
|
||||
&& !$(e.target).closest(".AuthorshipInfo").length) {
|
||||
$(".AuthorshipInfo").stop().animate({ opacity: 0 }, 200); // 点击其他地方时渐变隐藏
|
||||
$(".AuthorshipInfo").stop().animate({ opacity: 0 }, 200); // 点击其他地方时渐变隐藏
|
||||
$(".AuthorshipInfo").css("width", '0px')
|
||||
}
|
||||
|
||||
@@ -1701,7 +1765,32 @@ function initJournalBaseInfo(result) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
// window.onload = function() {
|
||||
// setTimeout(showPopup, 3000);
|
||||
// };
|
||||
|
||||
function showPopup(title, content) {
|
||||
$('#common-popup .common-popup-title').html(title)
|
||||
$('#common-popup .common-popup-content').html(content)
|
||||
document.getElementById('common-overlay').style.display = 'block';
|
||||
document.getElementById('common-popup').style.opacity = '1';
|
||||
document.getElementById('common-popup').style.zIndex = '101';
|
||||
|
||||
|
||||
// 5秒后自动关闭
|
||||
// setTimeout(closePopup, 5000);
|
||||
}
|
||||
|
||||
function closePopup() {
|
||||
document.getElementById('common-popup').style.opacity = '0';
|
||||
document.getElementById('common-popup').style.zIndex = '-1';
|
||||
setTimeout(function () {
|
||||
document.getElementById('common-overlay').style.display = 'none';
|
||||
$('#common-popup .common-popup-title').html('')
|
||||
$('#common-popup .common-popup-content').html('')
|
||||
}, 50);
|
||||
}
|
||||
Reference in New Issue
Block a user