From 2b342a9f6bea36a67883d3472c759670e7a93a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Tue, 19 May 2026 13:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=95=E6=A0=8F=E6=98=BE=E7=A4=BA=20Partners?= =?UTF-8?q?hips?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/footer.js | 27 +++++++++++++- js/scientist.js | 97 ++++++++++++++++++++++++++++++++++++------------- 2 files changed, 98 insertions(+), 26 deletions(-) diff --git a/js/footer.js b/js/footer.js index b043b15..25e1860 100644 --- a/js/footer.js +++ b/js/footer.js @@ -2,7 +2,7 @@ function initFooter() { // const $daohang = $('.footer .daohang'); // $daohang.nextUntil('.daohang_bottom_line').remove(); // 删除中间所有元素,直到 .busuna 前的所有兄弟 - console.log(11) + $('.footer .daohang').css({ 'border-bottom': 'none', }) @@ -50,8 +50,33 @@ function initFooter() { 'display': 'inline-block', }) + bindFooterPartnershipsClick(); +} +function bindFooterPartnershipsClick() { + var partnershipsUrl = 'afoor_text.html?&footer_id=87'; + $(document).off('click.footerPartnerships', '.footer .daohang h3'); + $(document).on('click.footerPartnerships', '.footer .daohang h3', function () { + if ($.trim($(this).text()) === 'Partnerships') { + window.open(partnershipsUrl, '_blank'); + } + }); + + function stylePartnershipsH3() { + $('.footer .daohang h3').each(function () { + if ($.trim($(this).text()) === 'Partnerships') { + $(this).css('cursor', 'pointer'); + } + }); + } + + stylePartnershipsH3(); + + var daohangEl = document.querySelector('.footer .daohang'); + if (daohangEl && typeof MutationObserver !== 'undefined') { + new MutationObserver(stylePartnershipsH3).observe(daohangEl, { childList: true, subtree: true }); + } } //临时改的 合刊在删 diff --git a/js/scientist.js b/js/scientist.js index f2d9810..0946f05 100644 --- a/js/scientist.js +++ b/js/scientist.js @@ -8694,7 +8694,7 @@ function renderLegalFooterContent(footer) { var fid = String(footer.footer_id); if (fid === '20') { insertManagementTeam(); - } else if (fid === '84') { + } else if (fid === '87') { initPartnerships(); } } @@ -8718,34 +8718,81 @@ function afooter_text() { // 获取地址栏信息 var arr = result.data.footers; var str = ""; var claSty = ""; - for (var i in arr) { - if (i == 'Guidelines') { - str += '' - - } else if (i == 'Publisher Information') { - str += '