mirror of
https://dl.bcrjl.com/ghg/HaoOuBa/Joe.git
synced 2026-02-17 13:10:05 +08:00
更新
This commit is contained in:
@@ -4,7 +4,14 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
if ($('.joe_index__banner .swiper-container').length !== 0) {
|
||||
let direction = 'horizontal'
|
||||
if (!Joe.prototype.IS_MOBILE && $('.joe_index__banner-recommend .item').length === 2) direction = 'vertical'
|
||||
new Swiper('.swiper-container', { direction, loop: true, autoplay: true, mousewheel: true, pagination: { el: '.swiper-pagination' } })
|
||||
new Swiper('.swiper-container', {
|
||||
keyboard: true,
|
||||
direction,
|
||||
loop: true,
|
||||
autoplay: true,
|
||||
mousewheel: true,
|
||||
pagination: { el: '.swiper-pagination' }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
/* 设置文章内的链接为新窗口打开 */
|
||||
{
|
||||
$('.joe_detail__article a').each(function () {
|
||||
$(this).attr('target', '_blank')
|
||||
$(this).attr({
|
||||
target: '_blank',
|
||||
rel: 'noopener noreferrer nofollow'
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user