aboutsummaryrefslogtreecommitdiff
path: root/public/index.html
diff options
context:
space:
mode:
authorJoris2021-05-29 19:24:41 +0200
committerJoris2021-05-29 19:24:41 +0200
commitd48cafebb277e4ad4b31e883cbe4f55eef9ea4a4 (patch)
tree7f04fb49defa5fbc7984b0eee60bb7ce16a37ae2 /public/index.html
parent4e3cd92a8063a70dab9ae0ccafd0552c78c6e005 (diff)
Rewrite in TypeScript
Diffstat (limited to 'public/index.html')
-rw-r--r--public/index.html38
1 files changed, 26 insertions, 12 deletions
diff --git a/public/index.html b/public/index.html
index 1639d26..27b8470 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,13 +1,27 @@
<!doctype html>
-<html>
- <head>
- <title>Glycémie</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
- <link rel="stylesheet" href="main.css">
- <link rel="icon" href="icon.png">
- </head>
- <body>
- <script src="main.js"></script>
- </body>
-</html>
+<html lang="fr">
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Glycémie</title>
+<link rel="stylesheet" href="/main.css">
+<link rel="icon" href="/icon.png">
+
+<body>
+ <script>
+ // https://github.com/al6x/stupid&#45;simple&#45;typescript&#45;web&#45;starter
+ window.define = function(name, required, moduleFn) {
+ var require = function() { throw new Error("AMD require not supported!")}
+ var exports = window.define.modules[name] = {}
+ var resolved = [require, exports]
+ for (var i = 2; i < required.length; i++) {
+ var m = window.define.modules[required[i]]
+ if (!m) throw new Error("AMD module `" + required[i] + "` not found!")
+ resolved.push(m)
+ }
+ moduleFn.apply(null, resolved)
+ }
+ window.define.modules = {}
+ </script>
+
+ <script src="main.js"></script>
+</body>