summaryrefslogtreecommitdiff
path: root/web/js/kvm/main.js
blob: 4565ce3c7f0284c179492543729d020075d6a940 (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"), () => ui.open("kvmd/log?seek=3600&follow=1", "_blank"));

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

		new Session();
	}
}