summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--snek.html4
-rw-r--r--snek.js1
2 files changed, 3 insertions, 2 deletions
diff --git a/snek.html b/snek.html
index 70b2504..072079c 100644
--- a/snek.html
+++ b/snek.html
@@ -4,11 +4,10 @@
<head>
<title> ANGRY SNEK </title>
<meta charset="utf-8">
- <script src="snek.js"></script>
<link rel="stylesheet" href="snek.css">
</head>
-<body onload="main()">
+<body>
<noscript>
<pre>
_____________________
@@ -31,6 +30,7 @@
</pre>
</noscript>
<canvas id="canvas1"></canvas>
+ <script src="snek.js"></script>
</body>
</html>
diff --git a/snek.js b/snek.js
index df66c18..6afe00e 100644
--- a/snek.js
+++ b/snek.js
@@ -471,3 +471,4 @@ function checkScore()
alert("You are winner!");
}
}
+main();