提示
This commit is contained in:
@@ -1,15 +1,7 @@
|
||||
function commonHomePage() {
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `
|
||||
// .sy_fr,.sy_tcrd,ncon_SCom{
|
||||
// background-color: #fff !important;
|
||||
// }
|
||||
// .exten_sion{
|
||||
// background-color: #e7f4ff;
|
||||
// }
|
||||
// body{
|
||||
// background-color: #e7f4ff;
|
||||
// }
|
||||
|
||||
#index_top{
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
@@ -203,9 +195,7 @@ function commonHomePage() {
|
||||
CiteScore = '1.5'
|
||||
break;
|
||||
//mdm
|
||||
|
||||
case 11:
|
||||
|
||||
CiteScore = '0.3'
|
||||
break;
|
||||
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') {
|
||||
str += `
|
||||
|
||||
<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-abs='${JSON.stringify(arr_Abc)}'>
|
||||
@@ -282,40 +266,32 @@ function commonHomePage() {
|
||||
$('.es_jour').html(`
|
||||
<div style="width: 100%;display: flex;justify-content: space-between;align-items: flex-start;flex-wrap: wrap;"> ${str}
|
||||
</div>
|
||||
|
||||
|
||||
`);
|
||||
// 绑定点击事件
|
||||
$(document).on('click', '.wl_click', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
// 获取当前点击元素所在的期刊容器
|
||||
const $journalItem = $(this).closest('.jour_base_info_center');
|
||||
|
||||
// 从数据属性中获取参数
|
||||
const journalColor = $journalItem.data('journal-color');
|
||||
// 将JSON字符串解析回数组
|
||||
const journalAbc = $journalItem.data('journal-abs');
|
||||
|
||||
// 使用当前期刊独有的journalAbs数据
|
||||
var Abstractingcontent = `<ul style="margin-top:10px;">
|
||||
${journalAbc.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>`;
|
||||
|
||||
${journalAbc.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:${journalColor}">Indexing</span>`, Abstractingcontent);
|
||||
});
|
||||
$(document).on('click', '.jour_base_info_title', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
// 获取当前点击元素所在的期刊容器
|
||||
const $journalItem = $(this).closest('.jour_base_info_center');
|
||||
|
||||
// 从数据属性中获取参数
|
||||
const journalUsx = $journalItem.data('journal-usx');
|
||||
window.open(`/${journalUsx}`);
|
||||
@@ -334,10 +310,6 @@ function showPopup(title, 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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user