summaryrefslogtreecommitdiff
path: root/web/js/kvm/main.js
blob: fe6b595cd9a19b0beb1b971c30c8c8aef4cb03b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var ui;

function main() {
	if (checkBrowser()) {
		ui = new Ui();

		tools.setOnClick($("show-about-button"), () => ui.showWindow($("about-window")));
		tools.setOnClick($("show-keyboard-button"), () => ui.showWindow($("keyboard-window")));
		tools.setOnClick($("show-stream-button"), () => ui.showWindow($("stream-window")));
		tools.setOnClick($("open-log-button"), () => window.open("/kvmd/log?seek=3600&follow=1", "_blank"));

		ui.showWindow($("stream-window"));

		new Session();
	}
}