aboutsummaryrefslogtreecommitdiff
path: root/public/index.html
blob: a57c5c25eb696c4f578fb460724ebec2473dc7b3 (plain)
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
<!doctype html>
<html lang="fr">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Tabata Timer</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>