-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
35 lines (34 loc) · 861 Bytes
/
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 lang="en">
<head>
<meta charset="UTF-8">
<title>Chain Connection</title>
<link href="bootstrap.min.css" rel="stylesheet">
</head>
<body>
<script type="text/javascript">
var game;
var appendFile = function(file, callback)
{
var external = document.createElement(file.tag);
var keys = Object.keys(file)
for (var i = keys.length - 1; i >= 0; i--)
{
if(keys[i] == 'tag') continue;
external[keys[i]] = file[keys[i]];
};
if(callback) external.onload = callback
document.body.appendChild(external);
};
appendFile(
{
tag:'script',
type:'text/javascript',
src:'bundle.js?'+new Date().getTime()/1000
}, function()
{
game = new Connect4();
})
</script>
</body>
</html>