aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-04 23:27:59 +0100
committerJoris Guyonvarch2015-03-05 00:27:32 +0100
commit4d007f6802246c6411a2838e68e957c2b4d56d3d (patch)
tree70519a5a2d6825bf2b64f6a8950a003b2ff4f150 /index.html
parentd37a301ed39bac823e0f2223b8d229b417e128c7 (diff)
downloadcatchvoid-4d007f6802246c6411a2838e68e957c2b4d56d3d.tar.gz
catchvoid-4d007f6802246c6411a2838e68e957c2b4d56d3d.tar.bz2
catchvoid-4d007f6802246c6411a2838e68e957c2b4d56d3d.zip
Adapt the game to elm version 0.14.1
Diffstat (limited to 'index.html')
-rw-r--r--index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/index.html b/index.html
index 5a380b5..00ff90a 100644
--- a/index.html
+++ b/index.html
@@ -6,8 +6,7 @@
<title>cAtchVoid</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
- <script src="resources/elm-runtime.js"></script>
- <script src="src/build/Main.js"></script>
+ <script src="elm.js"></script>
</head>
<body>
@@ -25,9 +24,10 @@
</p>
<script type="text/javascript">
- var myModule = Elm.Main;
- var myContainer = document.getElementById('game');
- Elm.embed(myModule, myContainer);
+ var input = {
+ initialTime: new Date().getTime()
+ };
+ Elm.embed(Elm.Main, document.getElementById('game'), input);
</script>
<a href="https://github.com/guyonvarch/catchvoid">