diff options
Diffstat (limited to 'web/share/js/kvm/main.js')
-rw-r--r-- | web/share/js/kvm/main.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/share/js/kvm/main.js b/web/share/js/kvm/main.js new file mode 100644 index 00000000..5c6d775a --- /dev/null +++ b/web/share/js/kvm/main.js @@ -0,0 +1,16 @@ +var wm; + +function main() { + if (checkBrowser()) { + wm = new WindowManager(); + + tools.setOnClick($("show-about-button"), () => wm.showWindow($("about-window"))); + tools.setOnClick($("show-keyboard-button"), () => wm.showWindow($("keyboard-window"))); + tools.setOnClick($("show-stream-button"), () => wm.showWindow($("stream-window"))); + tools.setOnClick($("open-log-button"), () => window.open("/kvmd/log?seek=3600&follow=1", "_blank")); + + wm.showWindow($("stream-window")); + + new Session(); + } +} |