-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修复侧边导航菜单自动收缩(隐藏)时,且在防火墙[iptables]列表加载时,扩展按钮无响应的问题
- 从menu-argon.js分离侧边导航菜单的脚本至sidebar-argon.js - 导航菜单自动收缩(隐藏):移动端竖屏时/缩小浏览器窗口时
- Loading branch information
1 parent
187a7f6
commit 05be190
Showing
4 changed files
with
69 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** | ||
* Argon is a clean HTML5 theme for LuCI. It is based on luci-theme-material and Argon Template | ||
* | ||
* luci-theme-argon | ||
* Copyright 2023 Jerrykuku <[email protected]> | ||
* | ||
* Have a bug? Please create an issue here on GitHub! | ||
* https://github.com/jerrykuku/luci-theme-argon/issues | ||
* | ||
* luci-theme-bootstrap: | ||
* Copyright 2008 Steven Barth <[email protected]> | ||
* Copyright 2008 Jo-Philipp Wich <[email protected]> | ||
* Copyright 2012 David Menting <[email protected]> | ||
* | ||
* MUI: | ||
* https://github.com/muicss/mui | ||
* | ||
* luci-theme-material: | ||
* https://github.com/LuttyYang/luci-theme-material/ | ||
* | ||
* Argon Theme | ||
* https://demos.creative-tim.com/argon-dashboard/index.html | ||
* | ||
* Login background | ||
* https://unsplash.com/ | ||
* | ||
* Licensed to the public under the Apache License 2.0 | ||
*/ | ||
|
||
/** | ||
* Sidebar expand | ||
*/ | ||
var showSide = false; | ||
$(".showSide").click(function () { | ||
if (showSide) { | ||
$(".darkMask").stop(true).fadeOut("fast"); | ||
$(".main-left").width(0); | ||
$(".main-right").css("overflow-y", "auto"); | ||
showSide = false; | ||
} else { | ||
$(".darkMask").stop(true).fadeIn("fast"); | ||
$(".main-left").width("15rem"); | ||
$(".main-right").css("overflow-y", "hidden"); | ||
showSide = true; | ||
} | ||
}); | ||
|
||
$(".darkMask").click(function () { | ||
if (showSide) { | ||
showSide = false; | ||
$(".darkMask").stop(true).fadeOut("fast"); | ||
$(".main-left").width(0); | ||
$(".main-right").css("overflow-y", "auto"); | ||
} | ||
}); | ||
|
||
$(window).resize(function () { | ||
if ($(window).width() > 921) { | ||
$(".main-left").css("width", ""); | ||
$(".darkMask").stop(true); | ||
$(".darkMask").css("display", "none"); | ||
showSide = false; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters