diff options
author | Maxim Devaev <[email protected]> | 2022-10-28 02:32:41 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-10-28 02:32:41 +0300 |
commit | 6ea60321b04120a847700a384792388bf60bbfa8 (patch) | |
tree | 2e154ca1e962ee9d6ef9157ecbdbeaad5c245a73 /web/kvm | |
parent | 5eaf2aa2478789a339ac3f78193cef281c06a676 (diff) |
improved sliders in the system menu
Diffstat (limited to 'web/kvm')
-rw-r--r-- | web/kvm/index.html | 36 | ||||
-rw-r--r-- | web/kvm/navbar-system.pug | 36 |
2 files changed, 36 insertions, 36 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index 9c956003..329d6117 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -141,7 +141,7 @@ </div> <li class="right" id="system-dropdown"><a class="menu-button" href="#"><img class="led-gray" id="link-led" src="/share/svg/led-link.svg"><img class="led-gray" id="stream-led" src="/share/svg/led-stream.svg"><img class="led-gray" id="hid-keyboard-led" src="/share/svg/led-hid-keyboard.svg"><img class="led-gray" id="hid-mouse-led" src="/share/svg/led-hid-mouse.svg"><span>System</span></a> <div class="menu" id="system-menu"> - <table class="kv" style="width: calc(100% - 20px)"> + <table class="kv"> <tr> <td class="value">Runtime settings & tools</td> <td class="feature-disabled" id="system-tool-webterm"> @@ -181,7 +181,7 @@ </div> <hr> </div> - <table class="kv" style="width: calc(100% - 20px)"> + <table class="kv"> <tr class="feature-disabled" id="stream-resolution"> <td>Resolution:</td> <td> @@ -190,24 +190,24 @@ </tr> <tr class="feature-disabled" id="stream-quality"> <td>JPEG quality:</td> - <td> + <td class="value-slider"> <input class="slider" disabled type="range" id="stream-quality-slider"> </td> - <td class="value" id="stream-quality-value" style="min-width: 30px; max-width:30px"></td> + <td class="value-number" id="stream-quality-value"></td> </tr> <tr class="feature-disabled" id="stream-h264-bitrate"> <td>H.264 kbps:</td> - <td> + <td class="value-slider"> <input class="slider" disabled type="range" id="stream-h264-bitrate-slider"> </td> - <td class="value" id="stream-h264-bitrate-value" style="min-width: 30px; max-width:30px"></td> + <td class="value-number" id="stream-h264-bitrate-value"></td> </tr> <tr> <td>Max FPS:</td> - <td> + <td class="value-slider"> <input class="slider" disabled type="range" id="stream-desired-fps-slider"> </td> - <td class="value" id="stream-desired-fps-value" style="min-width: 30px; max-width:30px"></td> + <td class="value-number" id="stream-desired-fps-value"></td> </tr> <tr class="feature-disabled" id="stream-mode"> <td>Video <a target="_blank" href="https://docs.pikvm.org/webrtc">mode</a>:</td> @@ -222,10 +222,10 @@ </tr> <tr class="feature-disabled" id="stream-audio"> <td>Audio volume:</td> - <td> + <td class="value-slider"> <input class="slider" type="range" id="stream-audio-volume-slider"> </td> - <td class="value" id="stream-audio-volume-value" style="min-width: 30px; max-width:30px"></td> + <td class="value-number" id="stream-audio-volume-value"></td> </tr> </table> <hr> @@ -256,21 +256,21 @@ <div class="spoiler"> <table class="kv"> <tr> - <td>Mouse polling rate:</td> - <td> + <td>Polling rate:</td> + <td class="value-slider"> <input class="slider" type="range" id="hid-mouse-rate-slider"> </td> - <td class="value" id="hid-mouse-rate-value" style="min-width: 30px; max-width:30px"></td> + <td class="value-number" id="hid-mouse-rate-value"></td> </tr> <tr class="feature-disabled" id="hid-mouse-sens"> - <td>Relative mouse sensitivity:</td> - <td> + <td>Relative sensitivity:</td> + <td class="value-slider"> <input class="slider" disabled type="range" id="hid-mouse-sens-slider"> </td> - <td class="value" id="hid-mouse-sens-value" style="min-width: 30px; max-width:30px"></td> + <td class="value-number" id="hid-mouse-sens-value"></td> </tr> <tr class="feature-disabled" id="hid-mouse-squash"> - <td>Squash relative mouse moves:</td> + <td>Squash relative moves:</td> <td align="right"> <div class="switch-box"> <input checked type="checkbox" id="hid-mouse-squash-switch"> @@ -279,7 +279,7 @@ </td> </tr> <tr> - <td>Reverse mouse scrolling:</td> + <td>Reverse scrolling:</td> <td align="right"> <div class="switch-box"> <input type="checkbox" id="hid-mouse-reverse-scrolling-switch"> diff --git a/web/kvm/navbar-system.pug b/web/kvm/navbar-system.pug index 7dbd3ebf..207c1841 100644 --- a/web/kvm/navbar-system.pug +++ b/web/kvm/navbar-system.pug @@ -6,7 +6,7 @@ li(id="system-dropdown" class="right") +navbar_led("hid-mouse-led", "led-hid-mouse") span System div(id="system-menu" class="menu") - table(class="kv" style="width: calc(100% - 20px)") + table(class="kv") tr td(class="value") Runtime settings & tools td(id="system-tool-webterm" class="feature-disabled") #[button(data-force-hide-menu data-show-window="webterm-window" class="small") • Term] @@ -22,22 +22,22 @@ li(id="system-dropdown" class="right") div(id="stream-message-no-h264" class="hidden") +menu_message("warning", "H.264 is not supported by this browser") hr - table(class="kv" style="width: calc(100% - 20px)") + table(class="kv") tr(id="stream-resolution" class="feature-disabled") td Resolution: td #[select(disabled id="stream-resolution-selector")] tr(id="stream-quality" class="feature-disabled") td JPEG quality: - td #[input(disabled type="range" id="stream-quality-slider" class="slider")] - td(id="stream-quality-value" class="value" style="min-width: 30px; max-width:30px") + td(class="value-slider") #[input(disabled type="range" id="stream-quality-slider" class="slider")] + td(id="stream-quality-value" class="value-number") tr(id="stream-h264-bitrate" class="feature-disabled") td H.264 kbps: - td #[input(disabled type="range" id="stream-h264-bitrate-slider" class="slider")] - td(id="stream-h264-bitrate-value" class="value" style="min-width: 30px; max-width:30px") + td(class="value-slider") #[input(disabled type="range" id="stream-h264-bitrate-slider" class="slider")] + td(id="stream-h264-bitrate-value" class="value-number") tr td Max FPS: - td #[input(disabled type="range" id="stream-desired-fps-slider" class="slider")] - td(id="stream-desired-fps-value" class="value" style="min-width: 30px; max-width:30px") + td(class="value-slider") #[input(disabled type="range" id="stream-desired-fps-slider" class="slider")] + td(id="stream-desired-fps-value" class="value-number") tr(id="stream-mode" class="feature-disabled") td Video #[a(target="_blank" href="https://docs.pikvm.org/webrtc") mode]: td @@ -48,8 +48,8 @@ li(id="system-dropdown" class="right") label(for="stream-mode-radio-janus") H.264 / WebRTC tr(id="stream-audio", class="feature-disabled") td Audio volume: - td #[input(type="range" id="stream-audio-volume-slider" class="slider")] - td(id="stream-audio-volume-value" class="value" style="min-width: 30px; max-width:30px") + td(class="value-slider") #[input(type="range" id="stream-audio-volume-slider" class="slider")] + td(id="stream-audio-volume-value" class="value-number") hr div(class="buttons buttons-row") button(data-force-hide-menu data-show-window="stream-window" class="row33") • Show stream @@ -69,17 +69,17 @@ li(id="system-dropdown" class="right") div(class="spoiler") table(class="kv") tr - td Mouse polling rate: - td #[input(type="range" id="hid-mouse-rate-slider" class="slider")] - td(id="hid-mouse-rate-value" class="value" style="min-width: 30px; max-width:30px") + td Polling rate: + td(class="value-slider") #[input(type="range" id="hid-mouse-rate-slider" class="slider")] + td(id="hid-mouse-rate-value" class="value-number") tr(id="hid-mouse-sens" class="feature-disabled") - td Relative mouse sensitivity: - td #[input(disabled type="range" id="hid-mouse-sens-slider" class="slider")] - td(id="hid-mouse-sens-value" class="value" style="min-width: 30px; max-width:30px") + td Relative sensitivity: + td(class="value-slider") #[input(disabled type="range" id="hid-mouse-sens-slider" class="slider")] + td(id="hid-mouse-sens-value" class="value-number") tr(id="hid-mouse-squash" class="feature-disabled") - +menu_switch_notable("hid-mouse-squash-switch", "Squash relative mouse moves", true, true) + +menu_switch_notable("hid-mouse-squash-switch", "Squash relative moves", true, true) tr - +menu_switch_notable("hid-mouse-reverse-scrolling-switch", "Reverse mouse scrolling", true, false) + +menu_switch_notable("hid-mouse-reverse-scrolling-switch", "Reverse scrolling", true, false) table(class="kv") tr(id="hid-connect" class="feature-disabled") +menu_switch_notable("hid-connect-switch", "Connect HID to Server", true, true) |