🐛 jane toc

This commit is contained in:
Van
2019-02-20 15:18:23 +08:00
parent a0daa3f9e2
commit 3a5132b6ba
2 changed files with 5 additions and 9 deletions

View File

@@ -38,9 +38,12 @@ var Skin = {
'max-width': '968px',
'padding-right': '270px',
})
} else {
$('#pjax.wrapper').removeAttr('style')
}
},
init: function () {
Skin.initToc()
Util.initPjax(function () {
$('.header a').each(function () {
if (this.href === location.href) {
@@ -50,14 +53,7 @@ var Skin = {
}
})
if ($('.b3-solo-list li').length > 0 && $(window).width() > 768) {
$('#pjax.wrapper').css({
'max-width': '968px',
'padding-right': '270px',
})
} else {
$('#pjax.wrapper').removeAttr('style')
}
Skin.initToc()
})
$('.header a').each(function () {