-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.html
41 lines (34 loc) · 1.17 KB
/
Index.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title> Minefield </title>
<meta name="author" content="Alexander Novotny" />
<meta name="description" content="Blah" />
<meta name="keywords" content="I was bored" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body onload="init();">
<canvas id="canvas" width="200" height="200">
You need to update your browser to play this!
</canvas>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.socket.io/socket.io-1.3.5.js"></script>
<script type="text/javascript" src="Game/minefield.js"></script>
<script type="text/javascript">
var initCanvas = false;
$(document).ready(function() {
var canvas = document.getElementById("canvas");
if(initCanvas) initMinefield(canvas, true);
else initCanvas = true;
console.log("Ready");
});
function init() {
var canvas = document.getElementById("canvas");
if(initCanvas) initMinefield(canvas, true);
else initCanvas = true;
}
</script>
</body>
</html>