diff options
author | Maxim Devaev <[email protected]> | 2024-10-18 08:28:30 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-10-18 13:25:03 +0300 |
commit | 3852d0a4568c3726d0182f3b00a9a3e8bb7e8af9 (patch) | |
tree | 72337307b3e7d00939dda731dd6e5b42fec582ac /web/kvm | |
parent | c1f408ea1addfed7e0a688a6e4be906ae6368e15 (diff) |
refactoring
Diffstat (limited to 'web/kvm')
-rw-r--r-- | web/kvm/index.html | 10 | ||||
-rw-r--r-- | web/kvm/navbar-system.pug | 2 | ||||
-rw-r--r-- | web/kvm/navbar.pug | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index c0a9a6dd..3bac7104 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -154,7 +154,7 @@ <button class="small" data-force-hide-menu id="open-log-button">• Log</button> </td> <td class="feature-disabled" id="system-tool-wol"> - <button class="gpio-button-__wol__ gpio-button small" data-force-hide-menu data-channel="__wol__" data-confirm="Are you sure to send Wake-on-LAN packet to the server?">• WoL</button> + <button class="__gpio-button-__wol__ __gpio-button small" data-force-hide-menu data-channel="__wol__" data-confirm="Are you sure to send Wake-on-LAN packet to the server?">• WoL</button> </td> </tr> </table> @@ -396,8 +396,8 @@ <td>Connect main USB to Server:</td> <td align="right"> <div class="switch-box"> - <input class="gpio-switch-__v3_usb_breaker__ gpio-switch" disabled type="checkbox" id="gpio-switch-__v3_usb_breaker__" data-channel="__v3_usb_breaker__" data-confirm-off="Turning off this switch will disconnect the main USB<br>from the server. Are you sure you want to continue?"> - <label for="gpio-switch-__v3_usb_breaker__"><span class="switch-inner"></span><span class="switch"></span></label> + <input class="__gpio-switch-__v3_usb_breaker__ gpio-switch" disabled type="checkbox" id="__gpio-switch-__v3_usb_breaker__" data-channel="__v3_usb_breaker__" data-confirm-off="Turning off this switch will disconnect the main USB<br>from the server. Are you sure you want to continue?"> + <label for="__gpio-switch-__v3_usb_breaker__"><span class="switch-inner"></span><span class="switch"></span></label> </div> </td> </tr> @@ -405,8 +405,8 @@ <td>Enable locator LED:</td> <td align="right"> <div class="switch-box"> - <input class="gpio-switch-__v4_locator__ gpio-switch" disabled type="checkbox" id="gpio-switch-__v4_locator__" data-channel="__v4_locator__" data-confirm-off=""> - <label for="gpio-switch-__v4_locator__"><span class="switch-inner"></span><span class="switch"></span></label> + <input class="__gpio-switch-__v4_locator__ gpio-switch" disabled type="checkbox" id="__gpio-switch-__v4_locator__" data-channel="__v4_locator__" data-confirm-off=""> + <label for="__gpio-switch-__v4_locator__"><span class="switch-inner"></span><span class="switch"></span></label> </div> </td> </tr> diff --git a/web/kvm/navbar-system.pug b/web/kvm/navbar-system.pug index d6cb31d5..d10dbee0 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 class="gpio-button-__wol__ 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 381fc067..b1c6b5eb 100644 --- a/web/kvm/navbar.pug +++ b/web/kvm/navbar.pug @@ -17,9 +17,9 @@ 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-${channel} gpio-switch` + input(disabled type="checkbox" id=`__gpio-switch-${channel}` class=`__gpio-switch-${channel} gpio-switch` data-channel=channel data-confirm-off=confirm_off) - label(for=`gpio-switch-${channel}`) + label(for=`__gpio-switch-${channel}`) span(class="switch-inner") span(class="switch") |