-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
164 lines (150 loc) · 6.82 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="lib/jquery.mobile-1.4.5.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="lib/jquery-1.10.2.min.js"></script>
<script src="lib/jquery.mobile-1.4.5.min.js"></script>
<script src="js/Utils.js"></script>
<script src="js/Image.js"></script>
<script src="js/Puzzle.js"></script>
</head>
<body>
<div data-role="page" id="pageone" data-theme="b">
<div data-role="header" data-position="fixed" data-tap-toggle="false">
<div data-role="controlgroup" data-type="horizontal" class="ui-btn-left">
<form>
<select data-wrapper-class="custom-size-flipswitch" data-role="flipswitch" id="mute" >
<option value="off">Mute</option>
<option value="on">Unmute</option>
</select>
</form>
</div>
<h1 class="ui-title" role="heading">Image puzzle</h1>
<div data-role="controlgroup" data-type="horizontal" class="ui-mini ui-btn-right">
<button class="loadChooseUI">Restart</button>
</div>
</div>
<div data-role="main" class="ui-content">
<div id="indexContainer">
<div class="centerHorizontally" data-role="controlgroup" data-type="horizontal">
<button class="loadChooseUI">Play game</button>
</div>
</div>
<div id="chooseContainer" style="display:none">
<h3 class="centerHorizontally">Choose an image or paste a url</h3>
<ul id="imageSelection" data-role="listview" data-inset="true">
<li data-icon="false">
<a href="#">
<img src="images/preview/scattered_moai.jpg" />
<h2>Scattered Moai</h2>
</a>
</li>
<li data-icon="false">
<a href="#">
<img src="images/preview/denmark.jpg" />
<h2>Denmark</h2>
</a>
</li>
<li data-icon="false">
<a href="#">
<img src="images/preview/thailand.jpg" />
<h2>Thailand</h2>
</a>
</li>
<li data-icon="false">
<a href="#">
<img src="images/preview/looking_at_sunset.jpg" />
<h2>Sunset</h2>
</a>
</li>
<li data-icon="false">
<a href="#">
<img src="images/preview/in_the_park.jpg" />
<h2>Park</h2>
</a>
</li>
<li data-icon="false">
<a href="#">
<img src="images/preview/morning_magic.jpg" />
<h2>Morning</h2>
</a>
</li>
<li data-icon="false">
<a href="#">
<img src="images/preview/tauranga_bridge.jpg" />
<h2>Tauranga bridge</h2>
</a>
</li>
<li data-icon="false">
<a href="#">
<img src="images/preview/pink_forest.jpg" />
<h2>Pink forest</h2>
</a>
</li>
</ul>
<div id="pieceSelection" class="centerHorizontally">
<div id="imageInput" data-role="fieldcontain">
<input data-theme="a" type="text" id="imageTextfield" name="image" value="images/preview/tauranga_bridge.jpg" title="Paste an image URL e.g http://server.com/path/to/image.jpg" />
</div>
<form class="centerHorizontally">
<fieldset id="gridSize" data-role="controlgroup" data-type="horizontal">
<input name="radio-choice-h-2" id="radio-choice-h-2a" value="2" checked="checked" type="radio">
<label for="radio-choice-h-2a">2x2</label>
<input name="radio-choice-h-2" id="radio-choice-h-2b" value="3" type="radio">
<label for="radio-choice-h-2b">3x3</label>
<input name="radio-choice-h-2" id="radio-choice-h-2c" value="4" type="radio">
<label for="radio-choice-h-2c">4x4</label>
<input name="radio-choice-h-2" id="radio-choice-h-2d" value="5" type="radio">
<label for="radio-choice-h-2d">5x5</label>
<input name="radio-choice-h-2" id="radio-choice-h-2e" value="6" type="radio">
<label for="radio-choice-h-2e">6x6</label>
<input name="radio-choice-h-2" id="radio-choice-h-2f" value="7" type="radio">
<label for="radio-choice-h-2f">7x7</label>
<input name="radio-choice-h-2" id="radio-choice-h-2g" value="8" type="radio">
<label for="radio-choice-h-2g">8x8</label>
<input name="radio-choice-h-2" id="radio-choice-h-2h" value="9" type="radio">
<label for="radio-choice-h-2h">9x9</label>
</fieldset>
</form>
<div class="centerHorizontally" data-role="controlgroup" data-type="horizontal">
<button id="submit">Play Game</button>
</div>
</div>
</div>
<div id="gameContainer" style="display:none">
<div id="gameContent">
<div id="gridContainer" class="centerHorizontally"></div>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
<div data-role="controlgroup" data-type="horizontal" class="ui-mini ui-btn-left">
<button id="help">Help</button>
</div>
<h1>Moves: <span id="moveCount">0</span>, Time: <span id="timer">00:00.0</span></h1>
</div>
<a data-transition="flow" style="display:none" id="playAgainLink" href="#playAgainDialog" data-rel="popup" data-position-to="window" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">Play again</a>
<div data-role="popup" id="playAgainDialog">
<div data-role="header">
<h1>Solved!</h1>
</div>
<div data-role="main" class="ui-content centerHorizontally">
<div>You've solved <span id="puzzlesSolved">0</span> puzzle(s)</div>
<h2>Restart?</h2>
<a id="restartButton" href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-b ui-icon-back ui-btn-icon-left" data-rel="back">Yes</a>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-b ui-btn-icon-left ui-icon-delete" data-rel="back">No</a>
</div>
</div>
</div>
</div>
<noscript>
<div id="javascriptDisabled-warning">This game requires Javascript to be enabled</div>
<style>
#container {
display: none;
}
</style>
</noscript>
</div>
</body>
</html>