mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-11 02:44:57 +08:00
Update luci-app-passwall.patch
This commit is contained in:
@@ -251,7 +251,7 @@ new file mode 100644
|
||||
index 000000000000..a00fff9c79b3
|
||||
--- /dev/null
|
||||
+++ b/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm
|
||||
@@ -0,0 +1,126 @@
|
||||
@@ -0,0 +1,129 @@
|
||||
+<style>
|
||||
+.pure-img {
|
||||
+ max-height: 100%;
|
||||
@@ -330,9 +330,10 @@ index 000000000000..a00fff9c79b3
|
||||
+const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall]], [[ip]])%>';
|
||||
+
|
||||
+let statusBar = document.querySelector(".status-bar");
|
||||
+let mc = document.getElementById("maincontent");
|
||||
+
|
||||
+function resize() {
|
||||
+ statusBar.style.width = document.getElementById("maincontent").offsetWidth + 'px';
|
||||
+ statusBar.style.width = mc.offsetWidth + 'px';
|
||||
+ let flagElement = statusBar.querySelector(".flag");
|
||||
+ flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
|
||||
+
|
||||
@@ -376,7 +377,9 @@ index 000000000000..a00fff9c79b3
|
||||
+});
|
||||
+
|
||||
+window.addEventListener('resize', resize);
|
||||
+if (window.getComputedStyle(mc).getPropertyValue("contain")=== "paint") {
|
||||
+document.body.appendChild(statusBar);
|
||||
+}
|
||||
+</script>
|
||||
|
||||
--- a/luci-app-passwall/root/usr/share/passwall/0_default_config
|
||||
|
||||
Reference in New Issue
Block a user