底栏显示 Partnerships
This commit is contained in:
27
js/footer.js
27
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 });
|
||||
}
|
||||
}
|
||||
|
||||
//临时改的 合刊在删
|
||||
|
||||
Reference in New Issue
Block a user