底栏显示 Partnerships

This commit is contained in:
2026-05-19 13:39:45 +08:00
parent 37dcceb291
commit 2b342a9f6b
2 changed files with 98 additions and 26 deletions

View File

@@ -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 });
}
}
//临时改的 合刊在删