tijiao 合并food

This commit is contained in:
2025-05-29 11:44:37 +08:00
parent 756392afc7
commit 63f80e86f3
10 changed files with 956 additions and 664 deletions

View File

@@ -3,7 +3,25 @@ var commonSupColor = 'rgb(0,112,192)'//上角标颜色
var commonTableTitleColor = 'rgb(210,90,90)'//上角标颜色
var commonSupFontColor = 'color:rgb(0,112,192);'//上角标字体颜色
function loadMathJax(callback) {
const script = document.createElement('script');
// 可选:配置 MathJax必须在加载 script 前设置)
window.MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$', '$$'], ['\\[', '\\]']]
},
startup: {
typeset: false // 不自动 typeset手动触发更灵活
}
};
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
script.onload = callback;
document.head.appendChild(script);
}
loadMathJax()
// 列表
function at_list() {
@@ -8598,6 +8616,14 @@ function initArticleHtmlFun(arr, result, html_type) {
<img src="${picsrc}" onclick="${fun}" style="width: ${item.width ? `${item.width}px` : '80%'
}" />
<p class="font htmlImageTitle commonTableTitleColor" style="width: ${item.width ? `${item.width}px` : '100%'};
font-size: 14px;
font-family: 'Charis SIL';
font-weight:normal;
line-height: 22px;
text-align:center;" >${item.image.title ? item.image.title : ''
}</p>
<p class="font htmlImageNote" style="width: ${item.width ? `${item.width}px` : '100%'};
font-size: 14px;
@@ -8658,13 +8684,12 @@ ${rowData
})
.join('')}
</table>
<p class="font" style="width: ${item.width ? `${item.width}px` : '100%'};
<p class="font" style="width: ${item.width ? `${item.width}px` : '100%'};
font-size: 14px;
font-family: 'Charis SIL';
font-weight: 500 !important;
line-height: 22px;
text-align:center;color:#333;" >${item.table.note ? item.table.note : ''
text-align:left;color:#333;" >${item.table.note ? item.table.note : ''
}</p>
</div>
`;
@@ -8726,7 +8751,13 @@ text-align:center;color:#333;" >${item.table.note ? item.table.note : ''
initArticleHtml(arr, result.data.refers, html_type)
}
function initArticleHtml(htmlData, refs, type) {
document.querySelectorAll('wmath').forEach(el => {
const latex = el.getAttribute('data-latex');
if (latex) {
el.innerHTML = latex;
MathJax.typesetPromise([el]);
}
});
$('.wen_rong .content-box .conthtmn .Ptitle').css({
background: 'rgb(222, 235, 247)',
'color': commonTableTitleColor, // No !important here
@@ -8846,7 +8877,10 @@ function initArticleHtml(htmlData, refs, type) {
this.style.setProperty('color', commonTableTitleColor, 'important');
this.style.setProperty('text-align', 'center', 'important');
});
$('.wen_rong .content-box .conthtmn p b i').each(function () {
$('.wen_rong .content-box .conthtmn .Ptitle b i').each(function () {
this.style.setProperty('font-style', 'normal', 'important');
});
$('.wen_rong .content-box .conthtmn .Ptitle i b').each(function () {
this.style.setProperty('font-style', 'normal', 'important');
});

View File

@@ -1,11 +1,24 @@
function initFooter() {
// const $daohang = $('.footer .daohang');
// $daohang.nextUntil('.daohang_bottom_line').remove(); // 删除中间所有元素,直到 .busuna 前的所有兄弟
console.log(11)
$('.footer .daohang').css({
'border-bottom':'none',
'border-bottom': 'none',
})
const $daohang = $('.footer .daohang');
// 判断是否存在 .dh_du
if ($daohang.find('.dh_du').length > 0) {
$('.footer .daohang .dh_du').after('<div class="daohang_bottom_line"></div>')
// 把 .daohang_bottom_line 移到 .daohang 外部
$daohang.find('.daohang_bottom_line').insertAfter($daohang);
$('.footer .bianma').css({
'margin-top': '30px',
})
}
$('.daohang_bottom_line').css({
'background': 'red',
'height': '6px',
@@ -13,14 +26,15 @@ function initFooter() {
'border-bottom': '0.5px solid #fff',
'width': '1300px',
'margin': '0 auto',
'max-width': '100%',
})
$('.footer-bottom-email').css({
'display': 'flex',
'display': 'flex',
'align-items': 'center',
'justify-content': 'center',
})
$('.footer-bottom-email-line').css({
'font-weight': '700',
'font-weight': '700',
/* width: 3px; */
/* display: inline-block; */
'border': '2px solid #fff',
@@ -31,7 +45,38 @@ function initFooter() {
'display': 'inline-block',
})
}
//临时改的 合刊在删
function initForAuthor() {
var arr_jour = { system_color: localStorage.Journals_color }
if (Jour_num == 1) {
arr_jour.apc = '$ 600'
} else {
arr_jour.apc = '$ 0'
}
console.log('initForAuthor');
var apcStr = ``;
if ([1, 25, 11].includes(Jour_num)) {
apcStr = arr_jour.apc
} else {
apcStr = arr_jour.apc + `<span style="color: ${arr_jour.system_color};font-weight: bold;margin-left:6px;">( 2025 - 2026 )</span>`;
}
$('.for_mess div .fr_APC').html(apcStr);
}
const pathname = window.location.pathname.split("/").pop();
// 2. 判断是否为 for_author.html
if (pathname === "for_author.html") {
console.log("当前是 for_author.html 页面");
// 3. 获取 J_num 参数值
const urlParams = new URLSearchParams(window.location.search);
const J_num = urlParams.get("J_num");
initForAuthor(J_num)
}
initFooter()

11
js/forAuthor.js Normal file
View File

@@ -0,0 +1,11 @@
function initForAuthor() {
console.log('initForAuthor');
var apcStr = ``;
if ([1, 25, 11].includes(Jour_num)) {
apcStr = arr_jour.apc
} else {
apcStr = arr_jour.apc + `<span style="color: ${arr_jour.system_color};font-weight: bold;margin-left:6px;">( 2025 - 2026 )</span>`;
}
$('.for_mess div .fr_APC').html(apcStr);
}

View File

@@ -331,7 +331,7 @@ function bf_list() {
if (Jour_num == 2 || Jour_num == 17 | Jour_num == 18) {
$('.current_list>h4').html('Current Volume<span>' + time_ + '</span>');
} else if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22|| Jour_num == 19) { // 合并期刊
} else if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22|| Jour_num == 19 ||Jour_num == 12) { // 合并期刊
$('.current_list>h4').html('Latest Issue<span>' + time_ + '</span>');
} else {
$('.current_list>h4').html('Current Issue<span>' + time_ + '</span>');
@@ -1054,7 +1054,7 @@ function bf_list() {
var str = "";
for (var i = 0; i < result.data.journalStage.length; i++) {
// 暂时条件中添加一个3 15 10
if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22 || Jour_num == 3 || Jour_num == 15 || Jour_num == 10|| Jour_num == 16|| Jour_num == 24|| Jour_num == 19) {
if (Jour_num == 7 || Jour_num == 6 || Jour_num == 20 || Jour_num == 9 || Jour_num == 21 || Jour_num == 22 || Jour_num == 3 || Jour_num == 15 || Jour_num == 10|| Jour_num == 16|| Jour_num == 24|| Jour_num == 19||Jour_num == 12) {
// 合并(替换)期刊
if (i == 0) { str += '<b>' + arr_stage[i].stage_year + '</b><br>' }

View File

@@ -725,13 +725,22 @@ function side_list() {
}
$('.jour_guest>a').attr('href', 'gue_edit.html?J_num=' + Jour_num);
$('.jour_guest h4 a').attr('href', 'guest.html?J_num=' + Jour_num);
$('.press-button .Gue_special').attr('href', 'gue_edit.html?J_num=' + Jour_num);
if (str == '') {
$('.gue_is_lis').css('display', 'none');
}
if (!result.data.is_show) {
$('.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');
$('.press-button .Gue_special').each(function () {
this.style.setProperty('display', 'none', 'important');
});
}
// if(Jour_num!='1'){
// $('.jour_guest').css('display','none');
// $('.jour_sta_tp_left_border').css('display','none');