-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcountdownBetweenGames.html
56 lines (47 loc) · 1.93 KB
/
countdownBetweenGames.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
54
55
56
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<script type="text/javascript" src="jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="chainjam.css">
</head>
<body style="margin: 0px; padding: 0px; background-color: #ADBECF;">
<div id="countDown">
<div class="logo"></div>
<div id="countDownWrapper">
<div id="gameName">Dot Collector Extreme: Supreme Block Commanders</div>
<div id="gameCreditsWrapper">
<div style="font-weight: bold;">By:</div>
<div id="gameCredits">These Are People Who Made It</div>
</div>
<div id="gameCountdown">5</div>
<div id="gameInstructionsWrapper">
<div>Instructions</div>
<div id="gameInstructions">Game instructions goes here shfdg kjdfhgkjshdgfk jasdhgfakjsdhgf kajhsdfg kajsdg fkasdg fkajshdfg jkasdfg kjashdfg kjasdg fkjahsgd sdahgf </div>
</div>
<script type="text/javascript">
// how many seconds should the countdown last?
var hash = window.location.hash.substring(1);
if (hash == "") parent.LoadNextGame();
else
{
$("#gameName").empty().append(parent._currentGame.name);
$("#gameInstructions").empty().append(parent._currentGame.instructions);
$("#gameCredits").empty().append(parent._currentGame.credits);
setTimeout("parent.LoadNextGame()", hash * 1000);
setInterval("CountDown()", 1 * 1000);
setInterval("UpdateCountdown()", 100);
}
function UpdateCountdown()
{
$("#gameCountdown").empty().append(hash);
}
function CountDown()
{
hash--;
}
</script>
</div>
</div>
</body>
</html>