Skip to content

Commit 380e552

Browse files
LightLight
authored andcommitted
fix: 修复在某些窗口宽度下点击导航后导航栏会消失的问题
1 parent feb85b4 commit 380e552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function show_date_time() {
4545
<script type="text/javascript">
4646
const mainMenu = document.querySelector('#main-menu');
4747
$("a.smooth").click(function (e) {
48-
const isMobile = document.querySelector('html').classList.contains('device-mobile');
48+
const isMobile = document.querySelector('html').classList.contains('screen-phone');
4949
$("#main-menu li").each(function () {
5050
$(this).removeClass("active");
5151
});

0 commit comments

Comments
 (0)