-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·210 lines (210 loc) · 9.1 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
<!DOCTYPE html>
<html>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# ozymaxx: http://ogp.me/ns/fb/ozymaxx#">
<meta property="fb:app_id" content="341581059326257" />
<meta property="og:type" content="ozymaxx:second" />
<meta property="og:url" content="http://ozymaxx.github.io/lamps" />
<meta property="og:title" id="ogtitle" content="LAMPS" />
<meta property="og:image" content="fav.png" />
<meta http-equiv="Content-Type" value="text/html; charset=utf-8;" />
<meta name="description" content="A simple color marking game." />
<link rel="stylesheet" type="text/css" href="main.css" media="screen" />
<link rel="shorcut icon" href="fav.ico" />
<link rel="icon" type="image/png" href="fav.png" />
<title>LAMPS</title>
<!--[if lt IE 10]>
<script type="text/javascript">
window.location="compatibility.html";
</script>
<![endif]-->
<script src="jquery.js" type="text/javascript"></script>
<script src="main.js" type="text/javascript"></script>
<script src="solver.js" type="text/javascript"></script>
<!-- LAMPS ads removed -->
</head>
<body>
<div class="helpLayer" id="welcome">
<div class="cont" style="margin-top: 120px; color: #061539; font-size: 20px; font-weight: bold;">
<div class="close" onclick="$( '#welcome').fadeOut( 'slow', function() { $('#helpSection').fadeIn('slow');} );"><a href="#">x</a></div>
<p>LAMPS is available on Google Play!</p>
<a href="https://play.google.com/store/apps/details?id=com.ozymaxx.lamps">
<img alt="Get it on Google Play"
src="play.png" />
</a>
<br />
Don't worry, the iOS and WindowsPhone versions are coming ;)<br />
(To automatically view the help, press close icon on the top-left side)<br />
<div class="fb-like-box" data-href="https://www.facebook.com/lamps.game" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false"></div><br />
<a href="#" onclick="shareOnFB();"><img src="share_facebook.png" style="width: 126px; height: 30px;" /></a>
<div
class="fb-login-button"
data-show-faces="true"
data-width="200"
data-max-rows="1"
data-scope="publish_actions">
</div>
<br style="clear: both;" />
<a href="https://twitter.com/share" class="twitter-share-button" text="I closed all lamps, you can do it too on http://ozymaxx.github.io/lamps" data-size="large" data-lang="en">Tweet</a>
</div>
</div>
<div class="helpLayer" id="helpSection">
<div class="close" id="closeHelp"><a href="#">x</a></div>
<div class="cont" style="margin-top: 120px; color: #061539; font-size: 23px; font-weight: bold;">
<p>The instructions are very very simple, when you click on a hole, the color of the hole you clicked and 2 of
its neighbours will be toggled. The toggling sequence of the lamps: <br /> <br />
Lamp lighting -> Yellow lamp -> Red lamp -> Lamp turned off
<br /> <br /> When all the lamps are turned off, the game is completed.
<br />Additionally, you can use the keyboard.<br />
Ctrl+Z -> Undo
<br />R -> Restart
<br />Up Key or W -> Rotate L
<br />(Rotation button is on the left side of the timer)
<br />H -> Help</p>
</div>
</div>
<div class="helpLayer" id="completed">
<div class="close" id="closeHelpx"><a href="#" onclick="$( '#completed').fadeOut( 'slow');">x</a></div>
<div class="cont" style="margin-top: 120px; color: #061539; font-size: 30px; font-weight: bold;">
<p>You completed the game in <span id="secsspan"></span> seconds! Share your performance.</p>
<a href="#" onclick="shareOnFB();"><img src="share_facebook.png" style="width: 126px; height: 30px;" /></a>
<div
class="fb-login-button"
data-show-faces="true"
data-width="200"
data-max-rows="1"
data-scope="publish_actions">
</div>
<br style="clear: both;" />
<a href="https://twitter.com/share" class="twitter-share-button" text="I closed all lamps, you can do it too on http://ozymaxx.github.io/lamps" data-size="large" data-lang="en">Tweet</a><br />
<div class="fb-like-box" data-href="https://www.facebook.com/lamps.game" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false"></div><br />
<a href="https://play.google.com/store/apps/details?id=com.ozymaxx.lamps">
<img alt="Get it on Google Play"
src="play.png" />
</a>
<br />
</div>
</div>
<div class="cont">
<span class="header"> LAMPS</span>
<span id="telapsed" class="utility"></span>
<span class="utility" onclick="changeAngle();" style="width: 22px; height: 22px; padding: 1px; margin-right: 6px;"><img src="" id="symButton" style="width: 20px; height: 20px; display: block; margin: 0px;" /></span>
<input type="button" class="utility" onclick="oneStepBack();" id="goBack" style="width: 80px; height: 22px; margin-right: 6px;" value="UNDO" />
<input type="button" class="utility" onclick="switchSound();" id="soundSwitch" style="width: 80px; height: 22px; margin-right: 6px; font-size: 13px;" value="SOUND ON" />
<span class="utility" style="width: 100px; height: 22px; margin-right: 5px;" id="renew"><a href="#">RESTART</a></span>
<br style="clear: both;" />
<table>
<tr>
<td><button id="b1"></button></td>
<td><button id="b2"></button></td>
<td><button id="b3"></button></td>
<td><button id="b4"></button></td>
<td><button id="b5"></button></td>
<td><button id="b6"></button></td>
<td><button id="b7"></button></td>
<td><button id="b8"></button></td>
<td><button id="b9"></button></td>
</tr>
<tr>
<td><button id="b10"></button></td>
<td><button id="b11"></button></td>
<td><button id="b12"></button></td>
<td><button id="b13"></button></td>
<td><button id="b14"></button></td>
<td><button id="b15"></button></td>
<td><button id="b16"></button></td>
<td><button id="b17"></button></td>
<td><button id="b18"></button></td>
</tr>
<tr>
<td><button id="b19"></button></td>
<td><button id="b20"></button></td>
<td><button id="b21"></button></td>
<td><button id="b22"></button></td>
<td><button id="b23"></button></td>
<td><button id="b24"></button></td>
<td><button id="b25"></button></td>
<td><button id="b26"></button></td>
<td><button id="b27"></button></td>
</tr>
<tr>
<td><button id="b28"></button></td>
<td><button id="b29"></button></td>
<td><button id="b30"></button></td>
<td><button id="b31"></button></td>
<td><button id="b32"></button></td>
<td><button id="b33"></button></td>
<td><button id="b34"></button></td>
<td><button id="b35"></button></td>
<td><button id="b36"></button></td>
</tr>
<tr>
<td><button id="b37"></button></td>
<td><button id="b38"></button></td>
<td><button id="b39"></button></td>
<td><button id="b40"></button></td>
<td><button id="b41"></button></td>
<td><button id="b42"></button></td>
<td><button id="b43"></button></td>
<td><button id="b44"></button></td>
<td><button id="b45"></button></td>
</tr>
<tr>
<td><button id="b46"></button></td>
<td><button id="b47"></button></td>
<td><button id="b48"></button></td>
<td><button id="b49"></button></td>
<td><button id="b50"></button></td>
<td><button id="b51"></button></td>
<td><button id="b52"></button></td>
<td><button id="b53"></button></td>
<td><button id="b54"></button></td>
</tr>
<tr>
<td><button id="b55"></button></td>
<td><button id="b56"></button></td>
<td><button id="b57"></button></td>
<td><button id="b58"></button></td>
<td><button id="b59"></button></td>
<td><button id="b60"></button></td>
<td><button id="b61"></button></td>
<td><button id="b62"></button></td>
<td><button id="b63"></button></td>
</tr>
<tr>
<td><button id="b64"></button></td>
<td><button id="b65"></button></td>
<td><button id="b66"></button></td>
<td><button id="b67"></button></td>
<td><button id="b68"></button></td>
<td><button id="b69"></button></td>
<td><button id="b70"></button></td>
<td><button id="b71"></button></td>
<td><button id="b72"></button></td>
</tr>
<tr>
<td><button id="b73"></button></td>
<td><button id="b74"></button></td>
<td><button id="b75"></button></td>
<td><button id="b76"></button></td>
<td><button id="b77"></button></td>
<td><button id="b78"></button></td>
<td><button id="b79"></button></td>
<td><button id="b80"></button></td>
<td><button id="b81"></button></td>
</tr>
</table>
<div class="help"><a id="openHelp" href="#">help</a></div>
<div class="goHome"><a href="http://ozymaxx.github.io" target="_blank">ozymaxx-web</a></div>
<!-- LAMPS Ads -->
<!-- removed :) -->
<audio id="winSound">
<source src="sounds/click.ogg" type="audio/ogg" />
<source src="sounds/click.mp3" type="audio/mpeg" />
</audio>
<audio id="clickSound">
<source src="sounds/win.ogg" type="audio/ogg" />
<source src="sounds/win.mp3" type="audio/mpeg" />
</audio>
</div>
</body>
</html>