-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
200 lines (188 loc) · 9 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
<!DOCTYPE html>
<html>
<head>
<title>Tetris</title>
<meta name="Author" content="Robbie Bardijn" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta
name="keywords"
content="Tetris, blocks, Game, Make Rows, Canvas, Javascript"
/>
<meta
name="description"
content="Check out this Tetris game. Try to score as hight as you can by making lines."
/>
<link
rel="shortcut icon"
type="image/png"
href="images/tetris/tetris_ico.png"
/>
<link rel="stylesheet" type="text/css" href="css/tetrisstyle.css" />
<link rel="stylesheet" type="text/css" href="css/browsererror.css" />
<script type='text/javascript' src='js/jquery/jQuery_.js'></script>
<script type='text/javascript' src='js/preloading/jquery.preload.js'></script>
<script type="text/javascript" src="js/modernizer/modernizr.js"></script>
<script type="text/javascript" src="js/easing/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/backgroundposition/jquery.backgroundPosition.js"></script>
<script type="text/javascript" src="js/util/utilFunctions.js"></script>
<script type='text/javascript' src='js/MasterTetris.js'></script>
<script type="text/javascript" src="js/tetris/Game.js"></script>
<script type="text/javascript" src="js/tetris/Block.js"></script>
<script type="text/javascript" src="js/tetris/ScoreMarker.js"></script>
</head>
<body>
<div id="fb-root"></div>
<div id="canvasloader-container" class="wrapper"></div>
<div id="content">
<div id="browser-error">
<h2>Download a better browser</h2>
<h1>Browser too old or too stupid</h1>
<div id="browser-error-container">
<a href="http://www.mozilla.org/en-US/firefox/new/" target="_blank" id="browser-l-1"><span class="hide">Firefox</span></a>
<a href="http://www.apple.com/safari/" target="_blank" id="browser-l-2"><span class="hide">Safari</span></a>
<a href="https://www.google.com/chrome" target="_blank" id="browser-l-3"><span class="hide">Chrome</span></a>
<a href="http://www.opera.com/download/" target="_blank" id="browser-l-4"><span class="hide">Opera</span></a>
</div>
</div>
<div id="intro">
<div id="buttons-introscreen">
<a href="#" id="btn-1"><span class="hide">Play game</span></a>
<a href="#" id="btn-2"><span class="hide">Instructions</span></a>
</div>
</div>
<div id="game">
<div id="previewfield">
<canvas id="canvas-previewfield" width="120" height="120">Your Browser does not support HTML5 Canvas.</canvas>
</div>
<div id="scorefield">
<p>Level : <span>2</span></p>
<p>Lines : <span>25</span></p>
<p>Score : <span>2.232.245</span></p>
</div>
<div id="controls">
<a href="#" id="btn-3" class="replay"><span class="hide">Play again</span></a>
<a href="#" id="btn-4"><span class="hide">Pause</span></a>
</div>
<div id="shares">
<a href="<?php echo $url_facebook ?>" id="btn-5"><span class="hide">Facebook</span></a>
<a href="<?php echo $url_twitter ?>" id="btn-6"><span class="hide">Twitter</span></a>
<!--<a href="#" id="btn-7"><span class="hide">Google+</span></a>-->
</div>
<div id="fallingfield">
<canvas id="canvas-fallingfield" width="300" height="540">Your Browser does not support HTML5 Canvas.</canvas>
</div>
</div>
<div id="mask"></div>
<div id="htp">
<a href="#" id="htp-close"><span class="hide">Close</span></a>
<div id="topic-1" class="topic">
<img src="images/tetris/arrows.png" alt="arrows">
<p>Move and rotate the blocks with your <span>arrow keys</span>.</p>
</div>
<div id="topic-2" class="topic">
<img src="images/tetris/line.png" alt="arrows">
<p>Make as many lines as possible <span>1=50</span>, <span>2=125</span>, <span>3=250</span>, <span>4=500</span>.</p>
</div>
<div id="topic-3" class="topic">
<div id="slideshow-htp">
<div id="slideshow-htp-container">
<img src="images/tetris/blocks/1.png" alt="block-1">
<img src="images/tetris/blocks/2.png" alt="block-2">
<img src="images/tetris/blocks/3.png" alt="block-3">
<img src="images/tetris/blocks/4.png" alt="block-4">
<img src="images/tetris/blocks/5.png" alt="block-5">
<img src="images/tetris/blocks/6.png" alt="block-6">
<img src="images/tetris/blocks/7.png" alt="block-7">
<img src="images/tetris/blocks/8.png" alt="block-8">
<img src="images/tetris/blocks/9.png" alt="block-9">
<img src="images/tetris/blocks/10.png" alt="block-10">
<img src="images/tetris/blocks/11.png" alt="block-11">
<img src="images/tetris/blocks/12.png" alt="block-12">
<img src="images/tetris/blocks/13.png" alt="block-13">
<img src="images/tetris/blocks/14.png" alt="block-14">
<img src="images/tetris/blocks/15.png" alt="block-15">
<img src="images/tetris/blocks/16.png" alt="block-16">
</div>
<a href="#" id="slideshow-htp-left"></a>
<a href="#" id="slideshow-htp-right"></a>
</div>
<p>Each block has an <span>individual</span> score.</p>
</div>
<div id="topic-4" class="topic">
<img src="images/tetris/123.png" alt="score multiplier">
<p>
The higher the blocks are placed, the more points they earn you.<br />
The playfield is divided by 3 so: at the bottom you get a <span>normal</span> <br />
score, in the middle <span>double</span> score and at the top <span>triple</span> score.
</p>
</div>
<div id="topic-5" class="topic">
<img src="images/tetris/share-fb-twit.png" alt="Facebook and twitter shares">
<p>
When you login with <span>Facebook</span> scores will be posted<br />
to Facebook to compare with your friends.<br />
Try to beat the highscores and get <span>first</span> place to impress your friends!<br />
With the sharing buttons at the end of the game <br />
you can post your score on your <span>wall</span> or <span>tweet</span> them.
</p>
</div>
<div id="topic-6" class="topic">
<img src="images/tetris/no-fb-htp.png" alt="When you have no facebook">
<p>You can also <span>play for fun</span> without when you have no facebook.</p>
</div>
</div>
<div id="enter-name">
<p>Who are you?</p>
<div id="fb-bg"><fb:login-button show-faces="false" scope="publish_actions" data-size="medium"></fb:login-button></div>
<a href="#" id="btn-8"><span class="hide">I have no facebook</span></a>
</div>
<div id="pp">
<a href="#" id="btn-14"><span class="hide">Pause / Play</span></a>
</div>
<div id="game-over">
<div id="marker-cont">
<img src="images/tetris/place-1.png" alt="First Place" class="highscoreMarker first">
<img src="images/tetris/place-2.png" alt="Second Place" class="highscoreMarker second">
<img src="images/tetris/place-3.png" alt="Third Place" class="highscoreMarker third">
<img src="images/tetris/place-up.png" alt="New Highscores" class="highscoreMarker up">
</div>
<div id="badges">
<img src="images/tetris/badge-1.png" alt="First Place badge" class="Badge first">
<img src="images/tetris/badge-2.png" alt="Second Place badge" class="Badge second">
<img src="images/tetris/badge-3.png" alt="Third Place badge" class="Badge third">
</div>
<p>231.345</p>
</div>
<div id="score-board">
<table id="tbl-head">
<tr>
<th class="col1">Rank</th>
<th class="col2">Score</th>
<th class="col3">Name</th>
<th class="col4">Entry</th>
</tr>
</table>
<div id="tbl-container">
Disabled for now, sorry.
<!-- <table id="tbl-body">
</table>
<a href="#" id="up"></a>
<a href="#" id="down"></a> -->
</div>
<div id="score-board-btns">
<a href="#" id="btn-9" class="replay"><span class="hide">Replay</span></a>
<!-- <a href="<?php echo $url_facebook ?>" id="btn-10"><span class="hide">Facebook</span></a>
<a href="<?php echo $url_twitter ?>" id="btn-11"><span class="hide">Twitter</span></a> -->
</div>
</div>
<div id="sure">
<p>Are you sure?</p>
<p class="smaller">The game wil restart! Scores will be lost</p>
<div id="sure-btns">
<a href="#" id="btn-12"><span class="hide">Yes</span></a>
<a href="#" id="btn-13"><span class="hide">No</span></a>
</div>
</div>
</div>
</body>
</html>