-
Notifications
You must be signed in to change notification settings - Fork 7
/
game.html
113 lines (102 loc) · 3.66 KB
/
game.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<head>
<title>Inverter</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/viewmodel.js"></script>
<script type="text/javascript" src="js/controller.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-52810526-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="container">
<div class="heading">
<h1 class="title">Inverter</h1>
<div class="scoresContainer">
<div class="currLevel"></div>
<div class="best"></div>
<div class="score"></div>
<div class="total"></div>
</div>
</div>
<div class="aboveGame">
<p class="gameInfo"></p>
<a class="reset btn btn-primary">Restart Level</a>
<a class="newgame btn btn-primary">New Game</a>
<a class="instruct btn btn-primary">Instructions</a>
</div>
<div class="board"></div>
</div>
<div id="instructions" class="modal fade">
<div class="modal-dialog">
<div class="modal-content" id="pullThisHeight">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span><span class="sr-only">Close</span>
</button>
<h4 class="modal-title">Instructions</h4>
</div>
<div class="modal-body">
<p>How to win: Make the board blue. <br>
How to play: Click a square to flip its color and the color of all tiles that share an edge with it.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" data-dismiss="modal">Lets go!</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div id="newLevel" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="cheesyGoodJob"></h4>
</div>
<div class="modal-body">
<p id="levelDescriptor"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" data-dismiss="modal">Go</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div id="newGame" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Are you sure?</h4>
</div>
<div class="modal-body">
<p>Do you really want to start over</p>
</div>
<div class="modal-footer">
<button id="newGameConfirm" type="button" class="btn btn-success" data-dismiss="modal">New Game</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div id="restartLevel" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="cheesyGoodJob">Are you sure?</h4>
</div>
<div class="modal-body">
<p>Do you really want to start over</p>
</div>
<div class="modal-footer">
<button id="resetLevelConfirm" type="button" class="btn btn-success" data-dismiss="modal">Restart Level</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>