Skip to content

Commit

Permalink
fix: hotfix header-nav
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Jan 10, 2024
1 parent c27f785 commit fb13b1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/css/_partial/search.styl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

#reimu-hits
margin-top: 10px
margin-left: 30px
margin-left: 10px

.reimu-hit-item-link
display: block
Expand Down
3 changes: 3 additions & 0 deletions source/js/pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ $(document).ready(function () {
parentNode.appendChild(script)
})
})
window.addEventListener('pjax:complete', () => {
$('#header-nav').removeClass('header-nav-hidden')
})
if(startLoading)
window.addEventListener('pjax:send', startLoading)
if(endLoading)
Expand Down

0 comments on commit fb13b1b

Please sign in to comment.