-
Notifications
You must be signed in to change notification settings - Fork 151
/
index.html
34 lines (34 loc) · 1.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>DBMON</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="dbmon.css" rel="stylesheet" type="text/css">
<!-- <script src="/dist/main.mjs" type="module"></script>
<script src="/dist/main.js" nomodule defer></script> -->
<!-- This comment block is intended to make it easier to test both the script module and nomodule path -->
<!-- Comment either block to enable module/nomodule or disable it. -->
<script src="/dist/main.js" defer></script>
</head>
<body>
<div src="dbmon.js" id="upgrade-me"></div>
<!-- <script type="module">
import {upgradeElement} from '/dist/main.mjs';
upgradeElement(document.getElementById('upgrade-me'), '/dist/worker/worker.mjs');
</script>
<script nomodule async=false defer>
document.addEventListener('DOMContentLoaded', function() {
MainThread.upgradeElement(document.getElementById('upgrade-me'), '/dist/worker/worker.js');
}, false);
</script> -->
<!-- This comment block is intended to make it easier to test both the script module and nomodule path -->
<!-- Comment either block to enable module/nomodule or disable it. -->
<script async=false defer>
document.addEventListener('DOMContentLoaded', function() {
MainThread.upgradeElement(document.getElementById('upgrade-me'), '/dist/worker/worker.js');
}, false);
</script>
<script src="monitor.js"></script>
</body>
</html>