82 lines
2.3 KiB
JavaScript
82 lines
2.3 KiB
JavaScript
function initFooter() {
|
|
// const $daohang = $('.footer .daohang');
|
|
// $daohang.nextUntil('.daohang_bottom_line').remove(); // 删除中间所有元素,直到 .busuna 前的所有兄弟
|
|
|
|
console.log(11)
|
|
$('.footer .daohang').css({
|
|
'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',
|
|
'border-top': '0.5px solid #fff',
|
|
'border-bottom': '0.5px solid #fff',
|
|
'width': '1300px',
|
|
'margin': '0 auto',
|
|
'max-width': '100%',
|
|
})
|
|
$('.footer-bottom-email').css({
|
|
'display': 'flex',
|
|
'align-items': 'center',
|
|
'justify-content': 'center',
|
|
})
|
|
$('.footer-bottom-email-line').css({
|
|
'font-weight': '700',
|
|
/* width: 3px; */
|
|
/* display: inline-block; */
|
|
'border': '2px solid #fff',
|
|
/* height: 16px; */
|
|
'line-height': '14px',
|
|
'margin': '0px 10px',
|
|
'height': '12px',
|
|
'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() |