-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
90 lines (80 loc) · 2.73 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
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
<!--
CandyCrush
Your Name: Edward Hughes
Collaborators: nobody
-->
<!DOCTYPE html>
<html>
<!--
/* Copyright (c) 2017 MIT 6.813/6.831 course staff, all rights reserved.
* Redistribution of original or derived work requires permission of course staff.
*/
-->
<head>
<meta charset="utf-8">
<title>Candy Crush</title>
<!-- Load style sheets -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.css">
<link rel="stylesheet" href="mainLayout.css">
<!-- Use mobile-aware viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Load any supplemental Javascript libraries here -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/seedrandom/2.4.2/seedrandom.js"></script>
<script src="candy.js"></script>
<script src="board.js"></script>
<script src="rules.js"></script>
<script src="handler.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-3" id="firstColumn">
<h1 id="gameTitle">Candy Crush</h1>
<label id="scoreLabel">0 points</label><br/>
<input class="btn btn-default" type="button" id="newGame" value="New Game"><br/>
<input class="btn btn-default" type="button" id="showMove" value="Show Move">
</div>
<div class="col-md-6" id="mainColumn">
<div id="cover"></div>
<div id="gameBoard"></div>
<canvas id="canvas" width="320" height="320">
<p>Canvas not supported on your browser.</p>
</canvas>
</div>
<div class="col-md-3" id="lastColumn"></div>
<!--
<div class="col-md-3" id="lastColumn">
<div class="col-md-12">
<form action="">
Move: <input type="text" id="moveInput" maxlength="3" value="" oninput="CheckInput()">
</form>
</div>
<div class="col-md-12">
<table id="arrowContainer">
<tr>
<td></td>
<td><input class="btn btn-default arrow" type="button" id="up" value="↑"></td>
<td></td>
</tr>
<tr>
<td><input class="btn btn-default arrow" type="button" id="left" value="←"></td>
<td></td>
<td><input class="btn btn-default arrow" type="button" id="right" value="→"></td>
</tr>
<tr>
<td></td>
<td><input class="btn btn-default arrow" type="button" id="down" value="↓"></td>
<td></td>
</tr>
</table>
</div>
<div class="col-md-12">
<input class="btn btn-default" type="button" id="crushOnce" value="Crush Once (spacebar)">
</div>
</div>
-->
</div> <!-- class="row" -->
</div> <!-- class="container" -->
</body>
</html>