20260304临时补救article_list
This commit is contained in:
131
js/notice_v1.js
131
js/notice_v1.js
@@ -148,7 +148,7 @@ function notice_con() {
|
||||
//footer
|
||||
if (footer_ID != null) {
|
||||
notice_con_footer(footer_ID)
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1127,12 +1127,15 @@ function guest_title_gea() {
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
function initProEditor() {
|
||||
|
||||
}
|
||||
|
||||
// 消息、cfp、footer 内容
|
||||
function notice_con_footer(footer_ID) {
|
||||
|
||||
|
||||
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `
|
||||
#top_bar{
|
||||
@@ -1204,32 +1207,48 @@ function notice_con_footer(footer_ID) {
|
||||
width: 26% !important;
|
||||
|
||||
}
|
||||
.editor-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap; /* 允许换行 */
|
||||
width: 100%; /* 根据父容器宽度调整 */
|
||||
max-width: 100%; /* 参考图片宽度 */
|
||||
}
|
||||
|
||||
.editor-item {
|
||||
color: #0a3088a6;
|
||||
min-width: 18%;
|
||||
margin-bottom: 10px;
|
||||
margin-right: 2%;
|
||||
|
||||
}
|
||||
.Editor_title{
|
||||
font-size: 19px !important;
|
||||
}
|
||||
`
|
||||
|
||||
|
||||
document.head.appendChild(style);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function initStyle() {
|
||||
// 找到目标元素
|
||||
const navBan = document.querySelector('.nav_ban.rgb_color_background');
|
||||
|
||||
|
||||
if (navBan) {
|
||||
// 创建一个新的 inner-wrapper div
|
||||
const innerWrapper = document.createElement('div');
|
||||
innerWrapper.className = 'inner_nav_ban_wrapper';
|
||||
|
||||
|
||||
// 把 navBan 中所有子节点移动到 innerWrapper 中
|
||||
while (navBan.firstChild) {
|
||||
innerWrapper.appendChild(navBan.firstChild);
|
||||
}
|
||||
|
||||
|
||||
// 再把 innerWrapper 加回 navBan 中
|
||||
navBan.appendChild(innerWrapper);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
var newBox = document.querySelector('.newBox');
|
||||
@@ -1249,7 +1268,7 @@ function notice_con_footer(footer_ID) {
|
||||
// 将弹窗插入到页面中
|
||||
newBox.insertAdjacentHTML('beforeend', commonPopupStr);
|
||||
// 获取地址栏信息
|
||||
|
||||
|
||||
//footer
|
||||
if (footer_ID != null) {
|
||||
initArticleNavList()
|
||||
@@ -1304,7 +1323,7 @@ function notice_con_footer(footer_ID) {
|
||||
if (arg.main == undefined) {
|
||||
str += ''
|
||||
} else {
|
||||
str += '<b>Editor-in-Chief</b><br><br>'
|
||||
str += '<b class="Editor_title">Editor-in-Chief</b><br><br>'
|
||||
for (var i = 0; i < arg.main.length; i++) {
|
||||
if (arg.main[i].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
@@ -1332,7 +1351,7 @@ function notice_con_footer(footer_ID) {
|
||||
if (arg.remain == undefined) {
|
||||
str += ''
|
||||
} else {
|
||||
str += '<b>Vice Editor-in-Chief</b><br><br>'
|
||||
str += '<b class="Editor_title">Vice Editor-in-Chief</b><br><br>'
|
||||
for (var i = 0; i < arg.remain.length; i++) {
|
||||
if (arg.remain[i].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
@@ -1361,7 +1380,7 @@ function notice_con_footer(footer_ID) {
|
||||
if (arg.member == undefined) {
|
||||
str += ''
|
||||
} else {
|
||||
str += '<b>Editorial Board Members</b><br><br>'
|
||||
str += '<b class="Editor_title">Editorial Board Members</b><br><br>'
|
||||
// 未分组
|
||||
$.each(arg.member, function (key, value) { //遍历键值对
|
||||
if ($.isArray(arg.member[key]) == true) {
|
||||
@@ -1437,18 +1456,18 @@ function notice_con_footer(footer_ID) {
|
||||
} else {
|
||||
if (arg.member[key][j].website != '') {
|
||||
// Nagwa El-Badri
|
||||
if(Jour_num==25&&arg.member[key][j].realname == 'Nagwa El-Badri'){
|
||||
if (Jour_num == 25 && arg.member[key][j].realname == 'Nagwa El-Badri') {
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, M.D. Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}else{
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, M.D. Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
} else {
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
|
||||
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
|
||||
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
|
||||
arg.member[key][j].realname + ', Ph.D. '
|
||||
@@ -1495,7 +1514,7 @@ function notice_con_footer(footer_ID) {
|
||||
|
||||
// 期刊编辑
|
||||
if (editors && editors.length > 0) {
|
||||
str += '<b>Editors & Staff</b><br><br>'
|
||||
str += '<b class="Editor_title">Editors & Staff</b><br><br>'
|
||||
for (var i = 0; i < editors.length; i++) {
|
||||
if (editors[i].icon == '') {
|
||||
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
|
||||
@@ -1514,11 +1533,67 @@ function notice_con_footer(footer_ID) {
|
||||
+ icon_img + '</li>'
|
||||
}
|
||||
}
|
||||
str += '<li style="clear:both">';
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
str += ''
|
||||
}
|
||||
// 1. 定义配置映射表 (以后增加新杂志只需在这里加一行)
|
||||
const journalEditorsMap = {
|
||||
25: [
|
||||
"Jing-Yi Wang", "Peng-Huai Jia", "Yu-Tong Liu", "Jing-Wei Ma",
|
||||
"Xin-Yue Zhang", "Si-Chen Liu", "Xiao-Xiao Liu", "Xin-Yun Zhang",
|
||||
"Jian Jia", "Lei Cao", "Feng Wang", "Jing Yin", "Meng-Meng Song"
|
||||
],
|
||||
11: [
|
||||
"Feng Wang", "Xin-Yun Zhang", "Lei Cao", "Jing-Wei Ma",
|
||||
"Jian Jia", "Ming-Hao Wang", "Meng-Meng Song"
|
||||
],
|
||||
14: [
|
||||
"Chen-Hui Dong", "Meng-Meng Song",
|
||||
"Jian Jia",
|
||||
"Lei Cao",
|
||||
|
||||
"Si-Chen Liu",
|
||||
"Xin-Yun Zhang",
|
||||
"Xiu-Jin Wei",
|
||||
"Yu-Tong Liu"
|
||||
],
|
||||
8: [
|
||||
"Huai-Peng Jia", "Xin-Yue Zhang", "Meng-Meng Song", "Jing Yin",
|
||||
"Xiu-Jin Wei", "Chen-Hui Dong", "Hao-Chen Zhang", "Jing-Yi Wang",
|
||||
"Zi-Yao Feng", "Qian-Nan Xie", "Man-Jin Tian", "Na Liu"
|
||||
],
|
||||
18: [ // 护理
|
||||
"Xin-Yue Zhang", "Xiu-Jin Wei", "Lei Cao", "Si-Chen Liu",
|
||||
"Yu-Tong Liu", "Na Liu", "Jing-Yi Wang", "Chen-Hui Dong",
|
||||
"Guang-Ze Ma", "Zi-Yao Feng", "Chun Ling", "Nuo-Xi Pi", "Jin-Feng Liu"
|
||||
],
|
||||
1: [
|
||||
"Jing-Yi Wang", "Huai-Peng Jia", "Jian Jia", "Meng-Meng Song",
|
||||
"Jing Yin", "Xiao-Han Li", "Na Liu", "Xin-Yi Yang", "Xin-Yue Zhang"
|
||||
]
|
||||
};
|
||||
|
||||
// 2. 逻辑判断
|
||||
if (journalEditorsMap[Jour_num]) {
|
||||
const editors = journalEditorsMap[Jour_num];
|
||||
|
||||
// 生成 HTML 列表
|
||||
const editorItems = editors.map(name => `<div class="editor-item">${name}</div>`).join('');
|
||||
|
||||
// 3. 拼接到字符串
|
||||
str += `
|
||||
<b style="display: block; margin-bottom: 10px;">Executive editor / Production Editor</b>
|
||||
<li style="position: relative; margin-bottom: 10px; width: 100%; float: left; list-style: none;">
|
||||
<div class="editor-container">
|
||||
${editorItems}
|
||||
</div>
|
||||
</li>
|
||||
`;
|
||||
}
|
||||
str += '<li style="clear:both">';
|
||||
|
||||
$('.topics>div').append('<ul style="overflow: hidden;">' + str + '</ul>');
|
||||
|
||||
@@ -1661,7 +1736,7 @@ function notice_con_footer(footer_ID) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
function initArticleNavList() {
|
||||
var Journals_color = localStorage.getItem('Journals_color')
|
||||
@@ -1673,7 +1748,7 @@ function initArticleNavList() {
|
||||
if ([1, 14, 8].includes(Number(Jour_num))) {
|
||||
isShowAuthorship = 1
|
||||
}
|
||||
|
||||
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `/* 遮罩层 */
|
||||
.article_dropbtn:hover {
|
||||
@@ -1780,7 +1855,7 @@ function openAuthorship(Jour_num, Journals_color) {
|
||||
</div>
|
||||
`
|
||||
document.querySelector('#common-popup .common-popup-content').classList.add('whitebg');
|
||||
showPopup(`<span style="font-weight:bold;color:${Journals_color}">Abstracting & Indexing</span>`, Abstractingcontent, 'Authorship')
|
||||
showPopup(`<span style="font-weight:bold;color:${Journals_color}">The Past Three Years</span>`, Abstractingcontent, 'Authorship')
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user