wrb-timings/application/dist/index.html

37 lines
1.5 KiB
HTML
Raw Normal View History

2024-02-03 11:51:32 +01:00
<!DOCTYPE html><html lang="en"><head>
<meta charset="utf-8">
<title>WRB Clubkampioenschappen tijden</title>
<link rel="stylesheet" href="/index-773b5ab4d66865c2.css">
<link rel="preload" href="/wrb-timings-ec131dcf3bec641d_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="/wrb-timings-ec131dcf3bec641d.js"></head>
<body>
<script type="module">import init from '/wrb-timings-ec131dcf3bec641d.js';init('/wrb-timings-ec131dcf3bec641d_bg.wasm');</script><script>(function () {
var protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
var url = protocol + '//' + window.location.host + '/_trunk/ws';
var poll_interval = 5000;
var reload_upon_connect = () => {
window.setTimeout(
() => {
// when we successfully reconnect, we'll force a
// reload (since we presumably lost connection to
// trunk due to it being killed, so it will have
// rebuilt on restart)
var ws = new WebSocket(url);
ws.onopen = () => window.location.reload();
ws.onclose = reload_upon_connect;
},
poll_interval);
};
var ws = new WebSocket(url);
ws.onmessage = (ev) => {
const msg = JSON.parse(ev.data);
if (msg.reload) {
window.location.reload();
}
};
ws.onclose = reload_upon_connect;
})()
</script></body></html>