index.html 925 Bytes
Newer Older
1 2 3 4
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
5 6 7
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Visualize your life on a chart">

8 9 10
  <title>Lifechart</title>

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous">
11 12 13 14 15 16 17 18 19 20

  <style>
    input:invalid {
      box-shadow: 0 0 3px 1px red;
    }

    input:focus:invalid {
      outline: none;
    }
  </style>
21 22 23 24
</head>

<body class="m-1">
  <div class="container">
25
    <div id="elm-lifechart-app">Loading...</div>
26 27
  </div>

Cédric F.'s avatar
Cédric F. committed
28
  <script src="lifechart.min.js"></script>
29 30 31 32 33 34
  <script>
    const elmLifechartDiv = document.querySelector("#elm-lifechart-app");
    const elmLifechartApp = Elm.Lifechart.embed(elmLifechartDiv);
  </script>
</body>
</html>