forked from mdehghani/2147483648
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
249 lines (243 loc) · 15.6 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>2147483648</title>
<link href="style/tiles.css" rel="stylesheet" type="text/css">
<link href="style/main.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="meta/apple-touch-icon.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
<div class="container">
<div class="heading">
<h1 class="title">2147483648</h1>
<div class="scores-container">
<div class="score-container" id="score-container">0</div>
<div class="best-container">0</div>
</div>
</div>
<p class="game-intro" id="game-intro">Join the numbers and get to the <strong>2147483648 tile!</strong></p>
<div class="game-container">
<div class="game-message">
<p></p>
<div class="lower">
<a class="retry-button">Try again</a>
</div>
</div>
<div class="grid-container" id="grid-container">
</div>
<div class="tile-container" id="tile-container">
</div>
</div>
<hr>
<p>
Time rush: <br>
<button name="time_rush" type="button" onclick="timeRush(60);">60s Time Rush</button>
<button name="time_rush" type="button" onclick="timeRush(300);">300s Time Rush</button>
</p>
<hr>
<p>
My GitHub: <a href="https://github.com/TheAstronomer/">TheAstronomer</a> <br>
Creator's GitHub: <a href="https://github.com/CyberZHG/">CyberZHG</a> <br>
Contributors to original 2147483648 site: <a href="https://github.com/jiangtyd/">jiangtyd</a>|
<a href="https://github.com/allbinbin/">allbinbin</a>
</p>
<hr/>
<p>
Save & Load: <br>
<button name="save_board" type="button" onclick="saveBoard();">Save Board</button>
<button name="load_board" type="button" onclick="loadBoard();">Load Board</button>
</p>
<hr>
<p>
Auto move: <br>
<button name="automove" type="button" onclick="doMovementPattern(corner);">Corner</button>
<button name="automove" type="button" onclick="doMovementPattern(swing);">Swing</button>
<button name="automove" type="button" onclick="doMovementPattern(swirl);">Swirl</button>
<button name="automove" type="button" onclick="doMovementPattern(random);">Random</button>
<br/>
<button type="button" onclick="stopMovement();">Stop</button>
</p>
<hr>
<p>
Special Mode: <br>
<button type="button" onclick="changeMode('normal');">Normal</button>
<button type="button" onclick="changeMode('alwaysTwo');">Always 1</button>
<button type="button" onclick="changeMode('fibonacci');">Fibonacci</button>
<button type="button" onclick="changeMode('threes');">Threes!</button>
<button type="button" onclick="changeMode('mergeAny');">Merge Any</button>
<button type="button" onclick="changeMode('powerTwo');">Power 2</button>
<button type="button" onclick="changeMode('tileZero');">Tile 0</button>
<button type="button" onclick="changeMode('tileNegative');">Negative</button>
<button type="button" onclick="changeMode('gravity');">Gravity</button>
<button type="button" onclick="window.location.href='auto_flappy.html';">Auto Flappy</button>
</p>
<hr>
<p>
Size: <br>
<button type="button" onclick="changeSize(1);">1×1</button>
<button type="button" onclick="changeSize(2);">2×2</button>
<button type="button" onclick="changeSize(3);">3×3</button>
<button type="button" onclick="changeSize(4);">4×4</button>
<button type="button" onclick="changeSize(5);">5×5</button>
<button type="button" onclick="changeSize(6);">6×6</button>
<button type="button" onclick="changeSize(7);">7×7</button>
<button type="button" onclick="changeSize(8);">8×8</button>
<button type="button" onclick="changeSize(9);">9×9</button>
<button type="button" onclick="changeSize(10);">10×10</button>
<button type="button" onclick="changeSize(11);">11×11</button>
<button type="button" onclick="changeSize(12);">12×12</button>
<button type="button" onclick="changeSize(13);">13×13</button>
<button type="button" onclick="changeSize(14);">14×14</button>
<button type="button" onclick="changeSize(15);">15×15</button>
<button type="button" onclick="changeSize(16);">16×16</button>
</p>
<hr>
<p>
Other 2048 variants made by me: <br>
<button type="button" onclick="window.location.href='size2.html';">8</button>
<button type="button" onclick="window.location.href='size3.html';">256</button>
<button type="button" onclick="window.location.href='size4.html';">2048</button>
<button type="button" onclick="window.location.href='size5.html';">65536</button>
<button type="button" onclick="window.location.href='size6.html';">4194304</button>
<button type="button" onclick="window.location.href='size8.html';">137438953472</button>
<button type="button" onclick="window.location.href='size16.html';">18446744073709551616</button>
<button type="button" onclick="window.location.href='2584.html';">Fibonacci</button>
<button type="button" onclick="window.location.href='fibonacci-3x3.html';">233</button>
<button type="button" onclick="window.location.href='fibonacci.html';">2584</button>
<button type="button" onclick="window.location.href='fibonacci-5x5.html';">75025</button>
<button type="button" onclick="window.location.href='fibonacci-6x6.html';">5702887</button>
<button type="button" onclick="window.location.href='fibonacci-8x8.html';">139583862445</button>
<button type="button" onclick="window.location.href='fibonacci-16x16.html';">8944394323791464</button>
<button type="button" onclick="window.location.href='threes-3x3.html';">384</button>
<button type="button" onclick="window.location.href='threes.html';">3072</button>
<button type="button" onclick="window.location.href='threes-5x5.html';">98304</button>
<button type="button" onclick="window.location.href='threes-6x6.html';">6291456</button>
<button type="button" onclick="window.location.href='threes-8x8.html';">402653184</button>
<button type="button" onclick="window.location.href='threes-16x16.html';">1610612736</button>
<button type="button" onclick="window.location.href='power3-3x3.html';">243</button>
<button type="button" onclick="window.location.href='power3.html';">2187</button>
<button type="button" onclick="window.location.href='power3-5x5.html';">59049</button>
<button type="button" onclick="window.location.href='power3-6x6.html';">4782969</button>
<button type="button" onclick="window.location.href='power3-8x8.html';">282429536481</button>
<button type="button" onclick="window.location.href='power3-16x16.html';">5559060566555523</button>
<button type="button" onclick="window.location.href='negative-3x3.html';">-256</button>
<button type="button" onclick="window.location.href='negative.html';">-2048</button>
<button type="button" onclick="window.location.href='negative-5x5.html';">-65536</button>
<button type="button" onclick="window.location.href='negative-6x6.html';">-4194304</button>
<button type="button" onclick="window.location.href='negative-8x8.html';">-137438953472</button>
<button type="button" onclick="window.location.href='negative-16x16.html';">-18446744073709551616</button>
<button type="button" onclick="window.location.href='diagonal-3x3.html';">Diagonal 3×3</button>
<button type="button" onclick="window.location.href='diagonal.html';">Diagonal</button>
<button type="button" onclick="window.location.href='diagonal-5x5.html';">Diagonal 5×5</button>
<button type="button" onclick="window.location.href='diagonal-6x6.html';">Diagonal 6×6</button>
<button type="button" onclick="window.location.href='diagonal-8x8.html';">Diagonal 8×8</button>
<button type="button" onclick="window.location.href='to-n-3x3.html';">To 256</button>
<button type="button" onclick="window.location.href='to-n.html';">To 2048</button>
<button type="button" onclick="window.location.href='to-n-5x5.html';">To 65536</button>
<button type="button" onclick="window.location.href='to-n-6x6.html';">To 4194304</button>
<button type="button" onclick="window.location.href='to-n-8x8.html';">To 137438953472</button>
<button type="button" onclick="window.location.href='finals-3x3.html';">Finals 3×3</button>
<button type="button" onclick="window.location.href='finals.html';">Finals</button>
<button type="button" onclick="window.location.href='finals-5x5.html';">Finals 5×5</button>
<button type="button" onclick="window.location.href='finals-6x6.html';">Finals 6×6</button>
<button type="button" onclick="window.location.href='finals-8x8.html';">Finals 8×8</button>
<button type="button" onclick="window.location.href='reverse-3x3.html';">1 3×3</button>
<button type="button" onclick="window.location.href='reverse.html';">1</button>
<button type="button" onclick="window.location.href='reverse-5x5.html';">1 5×5</button>
<button type="button" onclick="window.location.href='reverse-6x6.html';">1 6×6</button>
<button type="button" onclick="window.location.href='reverse-8x8.html';">1 8×8</button>
<button type="button" onclick="window.location.href='zen-3x3.html';">Zen 3×3</button>
<button type="button" onclick="window.location.href='zen.html';">Zen</button>
<button type="button" onclick="window.location.href='zen-5x5.html';">Zen 5×5</button>
<button type="button" onclick="window.location.href='zen-6x6.html';">Zen 6×6</button>
<button type="button" onclick="window.location.href='zen-6x6.html';">Zen 8×8</button>
<button type="button" onclick="window.location.href='dontmake256.html';">Don't make 256</button>
<button type="button" onclick="window.location.href='dontmake2048.html';">Don't make 2048</button>
<button type="button" onclick="window.location.href='dontmake65536.html';">Don't make 65536</button>
<button type="button" onclick="window.location.href='dontmake4194304.html';">Don't make 4194304</button>
<button type="button" onclick="window.location.href='dontmake137438953472.html';">Don't make 137438953472</button>
<button type="button" onclick="window.location.href='puzzle.html';">Puzzle</button>
<button type="button" onclick="window.location.href='ai.html';">AI</button>
<button type="button" onclick="window.location.href='144.html';">144</button>
<button type="button" onclick="window.location.href='hex.html';">16384 Hex</button>
<button type="button" onclick="window.location.href='hex-2.html';">2048 Hex</button>
<button type="button" onclick="window.location.href='hex-2.html';">2048 Hex 2</button>
<button type="button" onclick="window.location.href='cross1.html';">Cross 2048</button>
<button type="button" onclick="window.location.href='cross2.html';">Cross 2048 2</button>
<button type="button" onclick="window.location.href='double.html';">Double 2048</button>
<button type="button" onclick="window.location.href='line.html';">1D</button>
<button type="button" onclick="window.location.href='cube.html';">3D</button>
<button type="button" onclick="window.location.href='tesseract.html';">4D</button>
<button type="button" onclick="window.location.href='hypercube.html';">5D</button>
<button type="button" onclick="window.location.href='mode_negative.html';">Zero Sum 2048</button>
<button type="button" onclick="window.location.href='delirium.html';">2K48</button>
<button type="button" onclick="window.location.href='dive.html';">DIVE</button>
<button type="button" onclick="window.location.href='animated2048.html';">Animated 2048</button>
</p>
<hr>
Skin: <br>
<button type="button" onclick="window.location.href='skin_santi.html';">死神永生</button>
<button type="button" onclick="window.location.href='skin_shito.html';">使徒</button>
<button type="button" onclick="window.location.href='skin_bkb.html';">兵庫北</button>
<button type="button" onclick="window.location.href='skin_chemistry.html';">Chemistry</button>
<hr>
<p>
CSS: <br>
<button type="button" onclick="window.location.href='http://theastronomer.github.io/2147483648/style/main.css';">Misho M. Petkovic</button>
<button type="button" onclick="window.location.href='http://theastronomer.github.io/2147483648/style/2147483648.css';">Noel Cendana</button>
<button type="button" onclick="window.location.href='http://theastronomer.github.io/2147483648/style/tiles.css';">Aarex Tiaokhiao</button>
<button type="button" onclick="window.location.href='http://theastronomer.github.io/2147483648/style/tiles2.css';">Gabriele Cirulli</button>
<hr>
<p>
2048 with Auto Move: <br>
<button type="button" onclick="window.location.href='9007199254740992.html';">9007199254740992</button>
<button type="button" onclick="window.location.href='8944394323791464.html';">8944394323791464</button>
<button type="button" onclick="window.location.href='5559060566555523.html';">5559060566555523</button>
<button type="button" onclick="window.location.href='±9007199254740992.html';">±9007199254740992</button>
<button type="button" onclick="window.location.href='1610612736.html';">1610612736</button>
<hr>
<p>
Check out other 2048 variants here:
<button type="button" onclick="window.location.href='allthe2048.html';">ALL THE 2048</button>
</p>
<p class="game-explanation">
<strong class="important">How to play:</strong> Use your <strong>arrow keys</strong> to move the tiles. When two tiles with the same number touch, they <strong>merge into one!</strong>
</p>
<hr>
<p>
<strong class="important">Note:</strong> This site is <strong>NOT</strong> the official version of 2048. You can play it on your phone via <a href="http://git.io/2048">http://git.io/2048.</a> All other apps or sites are derivatives or fakes, and should be used with caution.
</p>
<hr>
<p>
Created by <a href="http://gabrielecirulli.com" target="_blank">Gabriele Cirulli.</a> Based on <a href="https://itunes.apple.com/us/app/1024!/id823499224" target="_blank">1024 by Veewo Studio</a> and conceptually similar to <a href="http://asherv.com/threes/" target="_blank">Threes by Asher Vollmer.</a>
</p>
<hr>
<p>
External links: Those are some of my other 2048 variants - different sizes and different goals.
</p>
<hr>
</div>
<script src="js/animframe_polyfill.js"></script>
<script src="js/keyboard_input_manager.js"></script>
<script src="js/html_actuator.js"></script>
<script src="js/grid.js"></script>
<script src="js/tile.js"></script>
<script src="js/local_score_manager.js"></script>
<script src="js/game_manager.js"></script>
<script src="js/application.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-49094472-1', 'cyberzhg.github.io');
ga('send', 'pageview');*/
</script>
</body>
</html>