mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
v3 usb breaker
This commit is contained in:
@@ -196,6 +196,18 @@
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="feature-disabled" id="v3-usb-breaker">
|
||||
<table class="kv">
|
||||
<td>Connect main USB to Server:</td>
|
||||
<td align="right">
|
||||
<div class="switch-box">
|
||||
<input class="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>
|
||||
</table>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="buttons buttons-row">
|
||||
<button class="row50" data-force-hide-menu id="show-keyboard-button">• Show keyboard</button>
|
||||
<button class="row50" disabled id="hid-reset-button">Reset HID</button>
|
||||
|
||||
@@ -49,6 +49,19 @@ li(class="right")
|
||||
hr
|
||||
+menu_switch("hid-connect-switch", "Connect HID to Server", true, true)
|
||||
hr
|
||||
div(id="v3-usb-breaker" class="feature-disabled")
|
||||
table(class="kv")
|
||||
td Connect main USB to Server:
|
||||
td(align="right")
|
||||
div(class="switch-box")
|
||||
-let msg = "Turning off this switch will disconnect the main USB<br>from the server."
|
||||
-msg += " Are you sure you want to continue?"
|
||||
input(disabled type="checkbox" id="gpio-switch-__v3_usb_breaker__" class="gpio-switch"
|
||||
data-channel="__v3_usb_breaker__" data-confirm-off=msg)
|
||||
label(for="gpio-switch-__v3_usb_breaker__")
|
||||
span(class="switch-inner")
|
||||
span(class="switch")
|
||||
hr
|
||||
div(class="buttons buttons-row")
|
||||
button(data-force-hide-menu id="show-keyboard-button" class="row50") • Show keyboard
|
||||
button(disabled id="hid-reset-button" class="row50") Reset HID
|
||||
|
||||
Reference in New Issue
Block a user