diff options
author | Devaev Maxim <[email protected]> | 2020-02-28 04:44:05 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-02-28 04:44:05 +0300 |
commit | 1470ebe6fa3900cb28266edf532d6e68707e1f24 (patch) | |
tree | 83d50dc80b178fc9658e346c7959ecbc8a251f2f /web | |
parent | a84b6bd31af52d13dcaf93717376852c784a2705 (diff) |
hid leds
Diffstat (limited to 'web')
-rw-r--r-- | web/kvm/index.html | 26 | ||||
-rw-r--r-- | web/share/js/kvm/keyboard.js | 5 |
2 files changed, 9 insertions, 22 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index 81d4d340..bd4ea1d4 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -314,7 +314,7 @@ <button data-force-hide-menu data-shortcut="CapsLock" class="row50"> • Caps Lock - <img class="inline-lamp hid-keyboard-leds hid-keyboard-caps-led led-gray feature-disabled" src="../share/svg/led-square.svg" /> + <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" /> </button> <button data-force-hide-menu data-shortcut="MetaLeft" class="row50">• Left Win</button> </div> @@ -433,10 +433,8 @@ <div class="keypad-row"> <div data-code="CapsLock" class="key wide-3 left small"> <div class="label"> - <span class="hid-keyboard-leds feature-disabled"> - <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" /> - <br> - </span> + <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" /> + <br> Caps Lock </div> </div> @@ -482,10 +480,8 @@ <div data-code="PrintScreen" class="modifier small"><div class="label"><b>•</b><br>Pt/Sq</div></div> <div data-code="ScrollLock" class="key small"> <div class="label"> - <span class="hid-keyboard-leds feature-disabled"> - <img class="inline-lamp hid-keyboard-scroll-led led-gray" src="../share/svg/led-square.svg" /> - <br> - </span> + <img class="inline-lamp hid-keyboard-scroll-led led-gray" src="../share/svg/led-square.svg" /> + <br> ScrLk </div> </div> @@ -537,10 +533,8 @@ <div data-code="PrintScreen" class="modifier margin-0 small"><div class="label"><b>•</b><br>Pt/Sq</div></div> <div data-code="ScrollLock" class="key margin-0 small"> <div class="label"> - <span class="hid-keyboard-leds feature-disabled"> - <img class="inline-lamp hid-keyboard-scroll-led led-gray" src="../share/svg/led-square.svg" /> - <br> - </span> + <img class="inline-lamp hid-keyboard-scroll-led led-gray" src="../share/svg/led-square.svg" /> + <br> ScrLk </div> </div> @@ -586,10 +580,8 @@ <div class="keypad-row"> <div data-code="CapsLock" class="key wide-3 left small"> <div class="label"> - <span class="hid-keyboard-leds feature-disabled"> - <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" /> - <br> - </span> + <img class="inline-lamp hid-keyboard-caps-led led-gray" src="../share/svg/led-square.svg" /> + <br> Caps Lock </div> </div> diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js index 0398baef..10c6ccc5 100644 --- a/web/share/js/kvm/keyboard.js +++ b/web/share/js/kvm/keyboard.js @@ -75,11 +75,6 @@ export function Keyboard() { __online = state.online; __updateOnlineLeds(); - for (let el of $$$(".hid-keyboard-leds")) { - console.log(el, state.features.leds); - el.classList.toggle("feature-disabled", !state.features.leds); - } - for (let led of ["caps", "scroll", "num"]) { for (let el of $$$(`.hid-keyboard-${led}-led`)) { if (state.leds[led]) { |