mirror of
https://dl.bcrjl.com/ghg/HaoOuBa/Joe.git
synced 2026-02-17 13:10:05 +08:00
更新
This commit is contained in:
@@ -357,13 +357,13 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
if ($('.joe_header__slideout').hasClass('active')) {
|
||||
$('body').css('overflow', '')
|
||||
$('.joe_mask').removeClass('active')
|
||||
$('.joe_header__above-slide').removeClass("active")
|
||||
$('.joe_header__slideout').removeClass("active")
|
||||
$('.joe_header__above-slide').removeClass('active')
|
||||
$('.joe_header__slideout').removeClass('active')
|
||||
} else {
|
||||
$('body').css('overflow', 'hidden')
|
||||
$('.joe_mask').addClass('active')
|
||||
$('.joe_header__above-slide').addClass("active")
|
||||
$('.joe_header__slideout').addClass("active")
|
||||
$('.joe_header__above-slide').addClass('active')
|
||||
$('.joe_header__slideout').addClass('active')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -397,4 +397,17 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
$('.joe_header__above-slide').removeClass('active')
|
||||
})
|
||||
}
|
||||
|
||||
/* 移动端侧边栏 */
|
||||
{
|
||||
$('.joe_header__slideout-menu .panel').on('click', function () {
|
||||
const panelBox = $(this).parent().parent()
|
||||
console.log(panelBox);
|
||||
/* 清除全部内容 */
|
||||
panelBox.find('.panel').not($(this)).removeClass('in')
|
||||
panelBox.find('.panel-body').not($(this).siblings('.panel-body')).stop().hide('fast')
|
||||
/* 激活当前的内容 */
|
||||
$(this).toggleClass('in').siblings('.panel-body').stop().toggle('fast')
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -36,8 +36,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
</a>
|
||||
<div class="information">
|
||||
<a href="${_.permalink}" class="title" title="${_.title}">
|
||||
<span class="badge" style="display: ${_.type === 'sticky' ? 'block' : 'none'}">置顶</span>
|
||||
<h6>${_.title}</h6>
|
||||
<span class="badge" style="display: ${_.type === 'sticky' ? 'inline-block' : 'none'}">置顶</span>${_.title}
|
||||
</a>
|
||||
<a class="abstract" href="${_.permalink}" title="文章摘要">${_.abstract}</a>
|
||||
<div class="meta">
|
||||
@@ -63,8 +62,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
<div class="line"></div>
|
||||
<div class="information">
|
||||
<a href="${_.permalink}" class="title" title="${_.title}">
|
||||
<span class="badge" style="display: ${_.type === 'sticky' ? 'block' : 'none'}">置顶</span>
|
||||
<h6>${_.title}</h6>
|
||||
<span class="badge" style="display: ${_.type === 'sticky' ? 'inline-block' : 'none'}">置顶</span>${_.title}
|
||||
</a>
|
||||
<div class="meta">
|
||||
<ul class="items">
|
||||
@@ -100,8 +98,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
<div class="line"></div>
|
||||
<div class="information">
|
||||
<a href="${_.permalink}" class="title" title="${_.title}">
|
||||
<span class="badge" style="display: ${_.type === 'sticky' ? 'block' : 'none'}">置顶</span>
|
||||
<h6>${_.title}</h6>
|
||||
<span class="badge" style="display: ${_.type === 'sticky' ? 'inline-block' : 'none'}">置顶</span>${_.title}
|
||||
</a>
|
||||
<a class="abstract" href="${_.permalink}" title="文章摘要">${_.abstract}</a>
|
||||
</div>
|
||||
@@ -136,8 +133,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
<div class="line"></div>
|
||||
<div class="information">
|
||||
<a href="${_.permalink}" class="title" title="${_.title}">
|
||||
<span class="badge" style="display: ${_.type === 'sticky' ? 'block' : 'none'}">置顶</span>
|
||||
<h6>${_.title}</h6>
|
||||
<span class="badge" style="display: ${_.type === 'sticky' ? 'inline-block' : 'none'}">置顶</span>${_.title}
|
||||
</a>
|
||||
<a class="abstract" href="${_.permalink}" title="文章摘要">${_.abstract}</a>
|
||||
<div class="meta">
|
||||
|
||||
Reference in New Issue
Block a user