提示
This commit is contained in:
@@ -1,15 +1,7 @@
|
|||||||
function commonHomePage() {
|
function commonHomePage() {
|
||||||
const style = document.createElement('style');
|
const style = document.createElement('style');
|
||||||
style.innerHTML = `
|
style.innerHTML = `
|
||||||
// .sy_fr,.sy_tcrd,ncon_SCom{
|
|
||||||
// background-color: #fff !important;
|
|
||||||
// }
|
|
||||||
// .exten_sion{
|
|
||||||
// background-color: #e7f4ff;
|
|
||||||
// }
|
|
||||||
// body{
|
|
||||||
// background-color: #e7f4ff;
|
|
||||||
// }
|
|
||||||
#index_top{
|
#index_top{
|
||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
@@ -203,9 +195,7 @@ function commonHomePage() {
|
|||||||
CiteScore = '1.5'
|
CiteScore = '1.5'
|
||||||
break;
|
break;
|
||||||
//mdm
|
//mdm
|
||||||
|
|
||||||
case 11:
|
case 11:
|
||||||
|
|
||||||
CiteScore = '0.3'
|
CiteScore = '0.3'
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
@@ -240,14 +230,8 @@ function commonHomePage() {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// <p class="jour_base_info_issn" style="margin-top: 4px;font-size: 13px;">
|
|
||||||
// <b>ISSN:</b>
|
|
||||||
|
|
||||||
// ${arr[i].issn}</p>
|
|
||||||
//
|
|
||||||
if (arr[i].title != 'tmRxiv') {
|
if (arr[i].title != 'tmRxiv') {
|
||||||
str += `
|
str += `
|
||||||
|
|
||||||
<div class="jour_base_info_center" data-journal-usx="${arr[i].usx}" data-journal-id="${arr[i].journal_id}"
|
<div class="jour_base_info_center" data-journal-usx="${arr[i].usx}" data-journal-id="${arr[i].journal_id}"
|
||||||
data-journal-color="${arr[i].system_color}"
|
data-journal-color="${arr[i].system_color}"
|
||||||
data-journal-abs='${JSON.stringify(arr_Abc)}'>
|
data-journal-abs='${JSON.stringify(arr_Abc)}'>
|
||||||
@@ -282,40 +266,32 @@ function commonHomePage() {
|
|||||||
$('.es_jour').html(`
|
$('.es_jour').html(`
|
||||||
<div style="width: 100%;display: flex;justify-content: space-between;align-items: flex-start;flex-wrap: wrap;"> ${str}
|
<div style="width: 100%;display: flex;justify-content: space-between;align-items: flex-start;flex-wrap: wrap;"> ${str}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
`);
|
`);
|
||||||
// 绑定点击事件
|
// 绑定点击事件
|
||||||
$(document).on('click', '.wl_click', function (e) {
|
$(document).on('click', '.wl_click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
// 获取当前点击元素所在的期刊容器
|
// 获取当前点击元素所在的期刊容器
|
||||||
const $journalItem = $(this).closest('.jour_base_info_center');
|
const $journalItem = $(this).closest('.jour_base_info_center');
|
||||||
|
|
||||||
// 从数据属性中获取参数
|
// 从数据属性中获取参数
|
||||||
const journalColor = $journalItem.data('journal-color');
|
const journalColor = $journalItem.data('journal-color');
|
||||||
// 将JSON字符串解析回数组
|
// 将JSON字符串解析回数组
|
||||||
const journalAbc = $journalItem.data('journal-abs');
|
const journalAbc = $journalItem.data('journal-abs');
|
||||||
|
|
||||||
// 使用当前期刊独有的journalAbs数据
|
// 使用当前期刊独有的journalAbs数据
|
||||||
var Abstractingcontent = `<ul style="margin-top:10px;">
|
var Abstractingcontent = `<ul style="margin-top:10px;">
|
||||||
${journalAbc.map((item, i) => {
|
${journalAbc.map((item, i) => {
|
||||||
return `<li style="font-weight:700;font-size:14px;">
|
return `<li style="font-weight:700;font-size:14px;">
|
||||||
<span style="display:inline-block">» </span>
|
<span style="display:inline-block">» </span>
|
||||||
<a target="_blank" href="${item.url}" style="font-weight:700;display:inline-block">${item.title}</a>
|
<a target="_blank" href="${item.url}" style="font-weight:700;display:inline-block">${item.title}</a>
|
||||||
</li>`;
|
</li>`;
|
||||||
}).join('')}
|
}).join('')}
|
||||||
</ul>`;
|
</ul>`;
|
||||||
|
|
||||||
document.querySelector('#common-popup .common-popup-content').classList.add('whitebg');
|
document.querySelector('#common-popup .common-popup-content').classList.add('whitebg');
|
||||||
showPopup(`<span style="font-weight:bold;color:${journalColor}">Indexing</span>`, Abstractingcontent);
|
showPopup(`<span style="font-weight:bold;color:${journalColor}">Indexing</span>`, Abstractingcontent);
|
||||||
});
|
});
|
||||||
$(document).on('click', '.jour_base_info_title', function (e) {
|
$(document).on('click', '.jour_base_info_title', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
// 获取当前点击元素所在的期刊容器
|
// 获取当前点击元素所在的期刊容器
|
||||||
const $journalItem = $(this).closest('.jour_base_info_center');
|
const $journalItem = $(this).closest('.jour_base_info_center');
|
||||||
|
|
||||||
// 从数据属性中获取参数
|
// 从数据属性中获取参数
|
||||||
const journalUsx = $journalItem.data('journal-usx');
|
const journalUsx = $journalItem.data('journal-usx');
|
||||||
window.open(`/${journalUsx}`);
|
window.open(`/${journalUsx}`);
|
||||||
@@ -334,10 +310,6 @@ function showPopup(title, content) {
|
|||||||
document.getElementById('common-overlay').style.display = 'block';
|
document.getElementById('common-overlay').style.display = 'block';
|
||||||
document.getElementById('common-popup').style.opacity = '1';
|
document.getElementById('common-popup').style.opacity = '1';
|
||||||
document.getElementById('common-popup').style.zIndex = '101';
|
document.getElementById('common-popup').style.zIndex = '101';
|
||||||
|
|
||||||
|
|
||||||
// 5秒后自动关闭
|
|
||||||
// setTimeout(closePopup, 5000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user