-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
34 lines (34 loc) · 1.1 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 lang="en">
<head>
<title>No-build ToDo app</title>
<link rel="stylesheet" href="https://unpkg.com/todomvc-common@1.0.5/base.css" />
<link rel="stylesheet" href="https://unpkg.com/todomvc-app-css@2.4.2/index.css" />
<link rel="manifest" href="./manifest.json">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="importmap">
{
"imports": {
"uuid": "https://esm.sh/uuid",
"preact": "https://esm.sh/preact",
"preact/": "https://esm.sh/preact/",
"htm": "https://esm.sh/htm",
"valtio": "https://esm.sh/*valtio?alias=react:preact/compat",
"proxy-compare": "https://esm.sh/proxy-compare",
"use-sync-external-store/shim/index.js": "https://esm.sh/use-sync-external-store?alias=react:preact/compat"
}
}
</script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js');
} else {
console.error('Service worker is not supported');
}
</script>
</head>
<body>
<script type="module" src="js/App.mjs"></script>
</body>
</html>