diff --git a/journalIndex/index.html b/journalIndex/index.html index ae25634..77f2049 100644 --- a/journalIndex/index.html +++ b/journalIndex/index.html @@ -5,7 +5,7 @@ Traditional Medicine Research - + diff --git a/journalIndex/index2.html b/journalIndex/index2.html new file mode 100644 index 0000000..bbe8b1e --- /dev/null +++ b/journalIndex/index2.html @@ -0,0 +1,16 @@ + + + + + Traditional Medicine Research + + + + + + + + + + + \ No newline at end of file diff --git a/journalIndex/js/journal.js b/journalIndex/js/journal.js index a683176..cfd3d8e 100644 --- a/journalIndex/js/journal.js +++ b/journalIndex/js/journal.js @@ -1,3 +1,4 @@ + // 期刊基础、外链、分期、话题信息加载 var Journals_color = localStorage.getItem('Journals_color') function bf_list() { @@ -247,16 +248,17 @@ function bf_list() { if (arr[i].icon == '') { var img_i = '' } else { - var img_i = '' + var img_i = '' } str += '
  • ' + - '' + + '' + + '' + `
    ' + arr[i].title + '
    ' + '
    ' + arr[i].editor + '. | ' + arr[i].deadline + '
  • ' } - $('.Special_Issues_box>a').attr('href', 'article_list.html?J_num=' + Jour_num + '&top_id=' + Jour_num); + // $('.Special_Issues_box>a').attr('href', '/gue_cont.html?J_num=' + Jour_num + '&Gu_num=' + arr[i].journal_special_id); $('.Special_Issues_box>ul').html(str + '
    '); if (arr == '') { $('.Special_Issues_box').css('display', 'none') @@ -425,37 +427,53 @@ function bf_list() { for (var t = 0; t < arr[i].topic.length; t++) { lr_top += '' + arr[i].topic[t].title + '' } - } + } + var trad_tion = ''; + var maxTradHeight = 220; // 设置最大高度 + if (Jour_num == 1) { + if (arr[i].tradition_tag == '') { + + } else { + var traditionText = arr[i].tradition; + - - if (arr[i].tradition_tag == '') { - var trad_tion = ''; - } else { - var traditionText = arr[i].tradition; - var maxTradHeight = 220; // 设置最大高度 - - trad_tion = `
    + trad_tion = `
    ${arr[i].tradition_tag}: ${traditionText}
    `; - setTimeout(() => { - let traditionElement = document.querySelector('.tradition-text:last-of-type'); - if (traditionElement.scrollHeight > maxTradHeight) { - let words = traditionText.split(" "); - let truncatedText = ""; + setTimeout(() => { + let traditionElement = document.querySelector('.tradition-text:last-of-type'); + if (traditionElement.scrollHeight > maxTradHeight) { + let words = traditionText.split(" "); + let truncatedText = ""; - for (let j = 0; j < words.length; j++) { - truncatedText += words[j] + " "; - traditionElement.innerText = truncatedText + "..."; - if (traditionElement.scrollHeight > maxTradHeight) { - truncatedText = truncatedText.trim().split(" ").slice(0, -1).join(" "); - traditionElement.innerText = truncatedText + " ..."; - break; + for (let j = 0; j < words.length; j++) { + truncatedText += words[j] + " "; + traditionElement.innerText = truncatedText + "..."; + if (traditionElement.scrollHeight > maxTradHeight) { + truncatedText = truncatedText.trim().split(" ").slice(0, -1).join(" "); + traditionElement.innerText = truncatedText + " ..."; + break; + } } } - } - }, 100); // 确保 DOM 渲染完成 + }, 100); // 确保 DOM 渲染完成 + } + } else { + if (arr[i].tradition_tag == '' || arr[i].tradition_tag == null) { + var textContent = arr[i].abstract; + } else { + var textContent = '' + arr[i].tradition_tag + ': ' + arr[i].tradition; + } + + + + trad_tion = `
    +
    ${textContent}
    +
    `; + } + str += `
  • ${arr[i].type} @@ -478,6 +496,10 @@ function bf_list() { } + $('.current_list .current_issue_time').css({ + 'color': "#888" + }); + $('.current_list .current_issue_time').html(time_); $('.current_list>ul').html(str); $('.links_ .txt_copy').css('background', localStorage.Journals_color); $('.url_top a').css('margin-right', '0'); @@ -1517,6 +1539,40 @@ function initJournalBaseInfo(result) { } + + + var ImpactFactorStr = Jour_num == 1 ? `
    + + Impact Factor + ${ImpactFactor} + +
    `: '' + var CiteScoreStr = `
    + + Cite Score + ${CiteScore} + +
    ` + $('#top_bar .rgb_color_background h1').css({ + 'position': 'relative' + + }) + $('#top_bar .rgb_color_background h1 a').after(`
    ${ImpactFactorStr}${CiteScoreStr}
    `) + // 外链信息 var arr_Abc = result.data.journalAbs.filter(e => e.is_show == 1); var AbstractingStr = ""; @@ -1558,8 +1614,8 @@ function initJournalBaseInfo(result) {

    -

    Impact Factor (Clarivate): ${ImpactFactor}

    -

    CiteScore (Scopus): ${CiteScore}

    +

    Impact Factor (Clarivate): ${ImpactFactor}

    +

    CiteScore (Scopus): ${CiteScore}

    Acceptance: ${arr_jour.acceptance}

    Final Decision: ${arr_jour.finaldecision}

    APC: ${apcStr}

    -
      ${AbstractingStr} + @@ -1649,21 +1705,29 @@ function initJournalBaseInfo(result) { $('.jour_base_info .jour_base_info_center .mes_all .mes_all_section').html(otherStr1 + otherStr2 + otherStr3 + otherStr4); $('.mes_Abs li:gt(6)').hide(); $(".wl_click").bind('click', function (e) { - e.stopPropagation(); - // f4fafd - $('.mes_Abs').css({ - 'background': '#fff' - }) - if ($(".wl_click").html() == 'more ') { - $('.mes_Abs li:gt(14)').hide(); - $('.wl_click').html('more '); - } else { - $('.mes_Abs li:gt(14)').show(); - $('.wl_click').html('more '); - $('.mes_Abs').css({ - 'background': '#f4fafd' - }) - } + var Abstractingcontent = `
        + ${arr_Abc.map((item, i) => { + return `
      • » ${item.title}
      • `; + }).join('')} +
      ` + document.querySelector('#common-popup .common-popup-content').classList.add('whitebg'); + showPopup(`Abstracting & Indexing`, Abstractingcontent) + + // e.stopPropagation(); + // // f4fafd + // $('.mes_Abs').css({ + // 'background': '#fff' + // }) + // if ($(".wl_click").html() == 'more ') { + // $('.mes_Abs li:gt(14)').hide(); + // $('.wl_click').html('more '); + // } else { + // $('.mes_Abs li:gt(14)').show(); + // $('.wl_click').html('more '); + // $('.mes_Abs').css({ + // 'background': '#f4fafd' + // }) + // } }); $(".wl_click").css('color', arr_jour.system_color); renderMap(160, function () { @@ -1688,7 +1752,7 @@ function initJournalBaseInfo(result) { $(document).click(function (e) { if (!$(e.target).closest(".jour_base_info .jour_base_info_center .mes_all .mes_all_section .mes_all_section_other .Authorship .Authorship_text").length && !$(e.target).closest(".AuthorshipInfo").length) { - $(".AuthorshipInfo").stop().animate({ opacity: 0 }, 200); // 点击其他地方时渐变隐藏 + $(".AuthorshipInfo").stop().animate({ opacity: 0 }, 200); // 点击其他地方时渐变隐藏 $(".AuthorshipInfo").css("width", '0px') } @@ -1701,7 +1765,32 @@ function initJournalBaseInfo(result) { }) } - + }); +} +// window.onload = function() { +// setTimeout(showPopup, 3000); +// }; + +function showPopup(title, content) { + $('#common-popup .common-popup-title').html(title) + $('#common-popup .common-popup-content').html(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); +} + +function closePopup() { + document.getElementById('common-popup').style.opacity = '0'; + document.getElementById('common-popup').style.zIndex = '-1'; + setTimeout(function () { + document.getElementById('common-overlay').style.display = 'none'; + $('#common-popup .common-popup-title').html('') + $('#common-popup .common-popup-content').html('') + }, 50); } \ No newline at end of file diff --git a/journalIndex/js/side.js b/journalIndex/js/side.js index e31c8af..0edc940 100644 --- a/journalIndex/js/side.js +++ b/journalIndex/js/side.js @@ -40,6 +40,7 @@ function side_list() { $('.footer').css('background', arr_jour.system_color); $('.article .art_main .new_art h4, .article .art_main .high_light h4, .news_ment h4, .art_main_con_topic h4').css('color', arr_jour.system_color); // $('.art_top_topic .topics').css('background-color', arr_jour.system_color); + $('#top_bar').css('background-color', arr_jour.system_color); $('.rgb_color_background').css('background-color', arr_jour.system_color); $('.article .art_side .btn_system').css('background', arr_jour.system_color); $('.article .art_side .press-button-tmr a').css('background', arr_jour.system_color); @@ -520,17 +521,26 @@ function initNotices(){ } var jourNoticeStr = `
      -

      Announcements

      +

      Announcements

        ${str}
      More -
      +
      +
      +
      +
    ` if (result.data.notices.length > 0) { $('.ncon_SCom .Scientist_Community_box').html(jourNoticeStr); + }else{ + $('.ncon_SCom .Scientist_Community_box').html(` + Scientist
    Community
    +
    +
    +
    `); } diff --git a/journalIndex/style/commonJournalCSS_v6.css b/journalIndex/style/commonJournalCSS_v12.css similarity index 98% rename from journalIndex/style/commonJournalCSS_v6.css rename to journalIndex/style/commonJournalCSS_v12.css index de0858c..c934d8c 100644 --- a/journalIndex/style/commonJournalCSS_v6.css +++ b/journalIndex/style/commonJournalCSS_v12.css @@ -65,6 +65,7 @@ input.disable { } .rgb_color_background { + box-sizing: border-box; /*background-color: #024393;*/ } @@ -458,6 +459,53 @@ input.disable { margin-bottom: 20px } +/******************弹窗******************/ + +/* 遮罩层 */ +#common-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0,0,0,0.5); + display: none; + z-index: 100; +} + +/* 弹窗主体 */ +#common-popup { + width: 600px; + min-height: 400px; + height: auto; + background: white; + border-radius: 8px; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: -1; + opacity: 0; + transition: opacity 0.3s; + box-shadow: 0 0 20px rgba(0,0,0,0.2); +} + +/* 关闭按钮 */ +.common-close-btn { + position: absolute; + right: 15px; + top: 10px; + font-size: 24px; + cursor: pointer; + color: #999; +} + +.common-close-btn:hover { + color: #333; +} + + +/******************弹窗******************/ /******************导航******************/ .nav { height: 60px; @@ -573,9 +621,9 @@ input.disable { .article_ .ncon_tcrd_tmr, .article_ .Rel_ated, .article_ .ncon_SCom { - background: url(/img/home_0.jpg) no-repeat #f4fbff; - background-blend-mode: multiply; - background-size: 100% 100%; + /* background: url(/img/home_0.jpg) no-repeat #f4fbff; */ + /* background-blend-mode: multiply; + background-size: 100% 100%; */ } .article_ .ncon_fr_tmr li, @@ -1689,7 +1737,7 @@ ul li .ab_tad { display: inline-block; /*width: 610px;*/ line-height: 62px; - font-size: 58px; + font-size: 48px; text-align: left; } @@ -2101,6 +2149,7 @@ padding-top: 0px !important; } .ncon_SCom>div { padding: 15px 0; + padding-top:0 ; display: flex; } @@ -2814,6 +2863,7 @@ padding-top: 0px !important; .overall_tmr .Rel_ated h4, .overall_tmr .hua_tpice h4, .overall_tmr .Special_Issues_box h4, +.overall_tmr .ncon_new_coment h4, .overall_tmr .ncon_hl h4 { width: 1102px; margin: 0 auto; @@ -2884,6 +2934,7 @@ padding-top: 0px !important; .overall_tmr .hua_tpice ul, .overall_tmr .ncon_hl ul, .overall_tmr .Special_Issues_box ul, +.overall_tmr .ncon_new_coment ul, .overall_tmr .ncon_SCom>div { width: 1098px; margin: 15px auto 0; @@ -3217,8 +3268,8 @@ padding-top: 0px !important; /*搜索框*/ .ment_sousuo_kuang { - margin-top: 28px; - padding-bottom: 0px; + margin-top: 33px; + /*background: #006699;*/ } @@ -3228,6 +3279,7 @@ padding-top: 0px !important; /*background: url(../img/home_0.jpg) no-repeat #f4fbff;*/ /*background-blend-mode: multiply;*/ background-size: 100% 100%; + padding-bottom: 0px; padding: 15px 0px; /*border-radius: 75px 0 60px 0;*/ width: 1102px; diff --git a/journals_tmr_v14.html b/journals_tmr_v21.html similarity index 92% rename from journals_tmr_v14.html rename to journals_tmr_v21.html index f88159a..5d48f1d 100644 --- a/journals_tmr_v14.html +++ b/journals_tmr_v21.html @@ -11,7 +11,7 @@ - +