summaryrefslogtreecommitdiff
path: root/kvmd/web/js/session.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-28 13:23:27 +0300
committerDevaev Maxim <[email protected]>2018-07-28 13:23:27 +0300
commit01e5a8caeeeba2772acf5f888278e891aea09608 (patch)
treecad2c19d5ff7a9f086b3078069c4e483bcbacde4 /kvmd/web/js/session.js
parentc3939214bf07742b2e5a5c27d89dcd42dc94cb4a (diff)
interactive hid leds
Diffstat (limited to 'kvmd/web/js/session.js')
-rw-r--r--kvmd/web/js/session.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/web/js/session.js b/kvmd/web/js/session.js
index 756b5437..02847120 100644
--- a/kvmd/web/js/session.js
+++ b/kvmd/web/js/session.js
@@ -28,6 +28,7 @@ var session = new function() {
};
var __wsOpenHandler = function(event) {
+ $("link-led").className = "led-on";
tools.debug("WebSocket opened:", event);
atx.loadInitialState();
msd.loadInitialState();
@@ -62,6 +63,7 @@ var session = new function() {
};
var __wsCloseHandler = function(event) {
+ $("link-led").className = "led-off";
tools.debug("WebSocket closed:", event);
if (__ping_timer) {
clearInterval(__ping_timer);