-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
228 lines (228 loc) · 13.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>PushPush.html by: Sam Benedict</title>
<meta name="google-site-verification" content="qKHEqquLm_JhhtbQcBH1ue_dT73LvtnrVOcOPCDVaBk" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/localforage/0.8.1/localforage.min.js"></script>
<script language="javascript" src="levels.js"></script>
<script language="javascript" src="gameengine.js"></script>
<script language="javascript" src="ui.js"></script>
<link rel="stylesheet" href="master.css" type="text/css" />
<style id="styleDynamic">
.clsGameBoard img
{
width: 30px;
height: 30px;
}
</style>
</head>
<body>
<div class="clsBody">
<div class="clsTitle">
<div class="clsTitleTextShadow">
<div class="clsTitleTextSmall"><b>P</b>USH <b>P</b>USH</div>
</div>
<div class="clsTitleTextHilite">
<div class="clsTitleTextSmall"><b>P</b>USH <b>P</b>USH</div>
</div>
<div class="clsTitleText">
<div class="clsTitleTextSmall"><b>P</b><i>U</i>S<i>H</i> <b><i>P</i></b>U<i>S</i>H</div>
</div>
</div><br />
<div class="clsMenu">
<div>
<a href="#" onclick="menuUndoBtn(); return false;"><u>U</u>ndo</a>
<a href="#" onclick="menuResetBtn(); return false;"><u>R</u>eset</a>
</div>
<div>
<a href="#" onclick="menuSelectLevelBtn(); return false;">Select <u>L</u>evel</a>
<a href="#" onclick="menuBestsBtn(); return false;"><u>B</u>ests</a>
<a href="#" onclick="menuOptionsBtn(); return false;"><u>O</u>ptions</a>
</div>
<div>
<a href="#" onclick="menuHelpBtn(); return false;"><u>H</u>elp</a>
<a href="#" onclick="menuAboutBtn(); return false;"><u>A</u>bout</a>
</div>
</div><br />
<div class="clsBoard">
<div id="divBoardContainer">
<div id="divLoadingMsg">L O A D I N G . . .</div>
</div>
</div><br />
<div id="divStatus" class="clsStatus" style="display: none;">
<table id="tblMainBottom" class="clsStatusBar" width="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="1"></td>
<td width="8" nowrap><span id="spanStatusLevel">Level X</span></td>
<td width="1"></td>
<td width="8" nowrap id="tdStatusBest">Best: <span id="spanStatusBestMoves">Level X</span>
in <span id="spanStatusBestTime">Level X</span></td>
<td width="1" id="tdStatusBest2"></td>
<td width="8" nowrap>Moves: <span id="spanStatusMoveCount" xstyle="position: absolute;">
0</span><!--span style="visibility:hidden;">0000</span--></td>
<td width="1"></td>
<td width="8" nowrap>Time: <span id="spanStatusTime" xstyle="position: absolute;">0:00</span><!--span style="visibility:hidden;">00:00:00</span--></td>
<td width="1"></td>
</tr>
</table>
</div><br />
</div>
<div id="divDialogCover" class="clsDialogCover" style="display: none;"></div>
<div id="divDialogFrame" class="clsDialogFrame" style="display: none;">
<div class="clsDialogTitle">
<span id="spanDialogTitleText"></span>
<button onclick="dialogBoxCloseBtn()">X</button>
</div>
<div id="divDialogBody" class="clsDialogBody"></div>
</div>
<div id="dialogContents" style="display: none;">
<div id="divLevelSelectDialog">
<div>Select a level to play...</div>
<div>
<table width="100%" cellpadding="0" cellspacing="8">
<tr>
<td align="left" style="font-size: smaller;">Level:<br>
<select id="selLevels" size="10">
</select>
</td>
<td id="tdLevelSelectPreview" width="100%" align="center">
</td>
</tr>
</table>
<div style="text-align:center; padding: 0px 8px 8px; font-size: smaller;">
<i>There are a total of 50 levels!!<br>
Solving a level opens up the next one!!</i>
</div>
<div class="clsDialogBodyButtons">
<button onclick="dialogLevelSelectPlayBtn()">Play</button>
<button onclick="dialogBoxHide()">Cancel</button>
</div>
</div>
</div>
<div id="divBestsDialog">
<div>Your best performances</div>
<div>
<table width="100%" cellpadding="0" cellspacing="8" style="font-size: smaller;">
<tr><td><div style="position: relative; height: 230px; overflow-y: scroll;"
onscroll="trBestsHeaders.style.top = this.scrollTop;">
<table id="tblBests" width="100%" border=2 cellpadding="0" cellspacing="0" style="font-size: smaller; border: 0px solid #00000;">
<tr id="trBestsHeaders" style="background: #EEEEEE; position: relative; left: 0px;">
<th style="border-style: outset;">Level</th>
<th style="border-style: outset;">Moves</th>
<th style="border-style: outset;">Time</th>
</tr>
</table>
</div></td></tr>
</table>
<div class="clsDialogBodyButtons">
<button onclick="dialogBoxHide()">Close</button>
</div>
</div>
</div>
<div id="divOptionsDialog">
<div>Change the options...</div>
<div>
<div>
Size: <select id="selOptionsSize" size="1">
<option value="1">Smallest</option>
<option value="2">Smaller</option>
<option value="3" selected>Normal</option>
<option value="4">Larger</option>
<option value="6">Largest</option>
</select>
</div>
<div>
Theme: <select id="selOptionsTheme" size="1" onchange="selOptionsThemeOnChange();">
<option value="PushPush.dhtml" selected>PushPush.dhtml</option>
<option value="SCH-T300">Samsung SCH-T300</option>
<option value="how.to.pushpush">http://how.to/PushPush</option>
<!--option value="www.cs.ualberta.ca">http://www.cs.ualberta.ca/~games/Sokoban/</option-->
<!--option value="pimpernel">http://www.pipernel.com/sokoban/sokoban.html</option-->
</select>
</div>
<div style="text-align: center;">
<a id="aOptionsThemeInfo" href="" target="_blank"></a>
</div>
<div class="clsDialogBodyButtons">
<button onclick="dialogOptionsApplyBtn()">OK</button>
<button onclick="dialogBoxHide()">Cancel</button>
</div>
</div>
</div>
<div id="divHelpDialog">
<div>How the heck do you play PushPush.dhtml??</div>
<div>
<div class="clsHelpDialogText">
You move the <img src="images/PushPush.dhtml/Cursor.gif" width="20" height="20">
cursor around with the arrow keys on your keyboard. The cursor will push the <img src="images/PushPush.dhtml/Rock.gif" width="20" height="20">
balls around when it bumps into them. Try to get all the balls onto the <img src="images/PushPush.dhtml/Goal.gif" width="20" height="20">
goals without getting trapped!<br>
<br>
<i>If you are truly stuck, you can find solutions <a href="https://web.archive.org/web/20091027095235/http://geocities.com/namster2k/pushpush/index.html" target="_blank">here</a> or maybe <a href="https://www.oocities.org/namster2k/pushpush/index.html" target="_blank">here</a>.</i><br>
<br>
If you lose your saved progress, you can click <a href="javascript:GetLevelsBack();">here</a> to get back to the last level you were on.<br>
<b>(But remember, cheaters never win!)</b>
</div>
<div class="clsDialogBodyButtons">
<button onclick="dialogBoxHide()">Let me try it!!</button>
</div>
</div>
</div>
<div id="divAboutDialog">
<div>About...</div>
<div>
<table cellpadding="0" cellspacing="0">
<tr>
<td style="vertical-align: top; font-size: 0px; width: 120px;">
<img src="images/PushPush.dhtml/Wall.gif" width="30" height="30"><img src="images/PushPush.dhtml/Wall.gif" width="30" height="30"><img src="images/PushPush.dhtml/Wall.gif" width="30" height="30"><img src="images/PushPush.dhtml/Wall.gif" width="30" height="30">
<br />
<img src="images/PushPush.dhtml/Wall.gif" width="30" height="30">
<img src="images/PushPush.dhtml/Cursor.gif" width="30" height="30" style="position: absolute;"><img src="images/PushPush.dhtml/Floor.gif" width="30" height="30"><img src="images/PushPush.dhtml/Goal.gif" width="30" height="30">
<img src="images/PushPush.dhtml/Wall.gif" width="30" height="30">
<br />
<img src="images/PushPush.dhtml/Wall.gif" width="30" height="30">
<img src="images/PushPush.dhtml/Rock.gif" width="30" height="30" style="position: absolute;"><img src="images/PushPush.dhtml/Floor.gif" width="30" height="30"><img src="images/PushPush.dhtml/GoalOccupied.gif" width="30" height="30">
<img src="images/PushPush.dhtml/Wall.gif" width="30" height="30">
<br />
<img src="images/PushPush.dhtml/Wall.gif" width="30" height="30"><img src="images/PushPush.dhtml/Wall.gif" width="30" height="30"><img src="images/PushPush.dhtml/Wall.gif" width="30" height="30"><img src="images/PushPush.dhtml/Wall.gif" width="30" height="30">
</td>
<td style="text-align: left; padding: 0px 10px; font-size: smaller;">
©2002-2022 Sam Benedict<br />
Source Code: <a href="https://github.com/sbenedict/PushPush/" target="_blank">github.com/sbenedict/PushPush</a>
<br />
Original concept and level designs found on the Samsung SCH-T300 mobile phone copyrighted by <a href="http://www.samsungmobile.com/" target="_blank"> Samsung, Inc.</a><br />
<br />
Theme graphics are copyrighted by individual or organization as noted on the Options screen.<br />
</td>
</tr>
</table>
<div class="clsDialogBodyButtons">
<button onclick="dialogBoxHide()">Close</button>
</div>
</div>
</div>
<div id="divCongratsDialog">
<div>Congratulations!!!</div>
<div><form name="formCongrats" onsubmit="return false;">
<table width="100%" cellpadding="0" cellspacing="8">
<tr>
<td></td>
<td align="left">Great Job!!<br>
It took you <span id="spanCongratsMoveCount">0</span> moves and <span id="spanCongratsTime">
0:00</span> to figure out that puzzle.<br>
<span id="spanCongratsExtraMsg"></span>
</td>
</tr>
</table>
<div align="right" style="padding: 0px 8px;">
<input type="submit" onclick="dialogBoxHide(); menuResetBtn()" value=" Continue ">
</div>
</form>
</form></div>
</div>
</div>
</body>
<script language="javascript">
Init();
</script>
</html>