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

function main() {
	if (check_browser()) {
		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();
	}
}