From 1e116782602b288c5a01913d9431b88a44df7d03 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 6 Oct 2024 20:14:07 +0300 Subject: fixed gpio platform-specific switches --- web/kvm/index.html | 6 +++--- web/kvm/navbar-system.pug | 2 +- web/kvm/navbar.pug | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/kvm/index.html b/web/kvm/index.html index cee8261d..95d4aa34 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -154,7 +154,7 @@ - + @@ -396,7 +396,7 @@ Connect main USB to Server:
- +
@@ -405,7 +405,7 @@ Enable locator LED:
- +
diff --git a/web/kvm/navbar-system.pug b/web/kvm/navbar-system.pug index 9c0c8014..d6cb31d5 100644 --- a/web/kvm/navbar-system.pug +++ b/web/kvm/navbar-system.pug @@ -13,7 +13,7 @@ li(id="system-dropdown" class="right") td(id="system-tool-about") #[button(data-force-hide-menu data-show-window="about-window" class="small") • About] td(id="system-tool-log") #[button(data-force-hide-menu id="open-log-button" class="small") • Log] td(id="system-tool-wol" class="feature-disabled") - button(data-force-hide-menu id="gpio-button-__wol__" class="gpio-button small" data-channel="__wol__" + button(data-force-hide-menu class="gpio-button-__wol__ gpio-button small" data-channel="__wol__" data-confirm="Are you sure to send Wake-on-LAN packet to the server?") • WoL hr div(id="stream-message-no-webrtc" class="hidden") diff --git a/web/kvm/navbar.pug b/web/kvm/navbar.pug index 498e27ae..47097bb0 100644 --- a/web/kvm/navbar.pug +++ b/web/kvm/navbar.pug @@ -17,7 +17,7 @@ mixin menu_switch_notable_gpio(channel, title, confirm_off="") td !{title}: td(align="right") div(class="switch-box") - input(disabled type="checkbox" id=`gpio-switch-${channel}` class="gpio-switch" + input(disabled type="checkbox" class="gpio-switch-${channel} gpio-switch" data-channel=channel data-confirm-off=confirm_off) label(for=`gpio-switch-${channel}`) span(class="switch-inner") -- cgit v1.2.3