summaryrefslogtreecommitdiff
path: root/web/js/kvm/main.js
blob: 5c6d775ab8d0ddbf47d8142d05d46cfd41c37dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();
	}
}