-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathplay.html
53 lines (50 loc) · 1.45 KB
/
play.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
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/play.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="globals.js"></script>
<script src="jcanvas.js"></script>
<script src="GCAPI.js"></script>
<script src="vvh.js"></script>
<script src="ui.js"></script>
<script src="app.js"></script>
<script src="play.js"></script>
<script src="foundation/js/vendor/jquery.cookie.js"></script>
<style type="text/css">
body {
margin: 0;
background:url('images/background.png') no-repeat;
background-size:100% 100%;
width: 100%;
height: 100%;
height: auto;
min-height: 100%;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
var gname = "games/"+vars['game']+".js";
$("head").append("<script src=\""+gname+"\" type=\"text/javascript\"></scr"+"ipt>");
$('#game').startGame();
});
</script>
</head>
<body>
<div id="game">
<canvas id='GCAPI-main' ></canvas>
<div id='GCAPI-noclick'></div>
<canvas id='GCAPI-control' ></canvas>
<canvas id='GCAPI-vvh' ></canvas>
<div id='GCAPI-status' ></div>
</div>
</body>
</html>