mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 02:45:13 +08:00
🛸 Sync 2026-08-23 03:07:41
This commit is contained in:
1 parent
e9458549fb
commit
653001b87f
2 files changed
+8
-3
No files matched your search
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-passwall
|
||||
PKG_VERSION:=26.8.19
|
||||
PKG_RELEASE:=234
|
||||
PKG_RELEASE:=235
|
||||
PKG_PO_VERSION:=$(PKG_VERSION)
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
|
||||
@@ -75,10 +75,13 @@ display:block !important;
|
||||
const _ASSETS = '/luci-static/passwall/';
|
||||
const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall]], [[ip]])%>';
|
||||
|
||||
let statusBar = document.querySelector(".status-bar");
|
||||
let mainContent = document.getElementById("maincontent");
|
||||
|
||||
function resize() {
|
||||
statusBar.style.width = document.getElementById("maincontent").offsetWidth + 'px';
|
||||
wW = window.innerWidth;
|
||||
let lw = document.querySelector(".main-left, .fs-sidebar")?.offsetWidth ?? 5;
|
||||
let statusBar = document.querySelector(".status-bar");
|
||||
statusBar.style.width = (wW - lw) + 'px';
|
||||
let flagElement = statusBar.querySelector(".flag");
|
||||
flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
|
||||
|
||||
@@ -122,5 +125,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
});
|
||||
|
||||
window.addEventListener('resize', resize);
|
||||
if (mainContent && window.getComputedStyle(mainContent).getPropertyValue("contain")=== "paint") {
|
||||
document.body.appendChild(statusBar);
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user