-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (35 loc) · 1.28 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
<!DOCTYPE html>
<!-- <html manifest="manifest.appcache"> -->
<html>
<head>
<meta charset="utf-8">
<title>Mini Golf</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="styles/game.css" type="text/css" rel="stylesheet" />
<!-- <script src="ga.js"></script> -->
<script src="dojoConfig.js"></script>
<script src="deps/Box2d.min.js"></script>
<script src="dist/game.js"></script>
<script>
if(typeof define !== "function" || !define.amd){
console.log('Game not built, using dojo for loader');
var hd = document.getElementsByTagName("head")[0],
el = document.createElement("script");
el.async = true; // set it to async
el.src = 'deps/dojo/dojo.js';
hd.insertBefore(el, hd.firstChild); // insert it so it will load
}
</script>
</head>
<body>
<div id="gameArea">
<canvas id="canvas" width="1500" height="1000"></canvas>
<div id="status">
<span id="hole" class="ui"></span>
<span id="stroke" class="ui"></span>
<span id="score" class="ui"></span>
<span id="created-by">Mini Golf created with <a href="http://frozenjs.com">FrozenJS</a></span>
</div>
</div>
</body>
</html>