-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
148 lines (129 loc) · 5.33 KB
/
test.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
<!DOCTYPE HTML>
<html lang="en-US" >
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Astroids</title>
<link rel="stylesheet" href="style/main.css"/>
<link rel="stylesheet" href="style/mobile.css"
media="screen and (max-device-width: 768px) and (orientation: portrait),
screen and (max-device-width: 1024px) and (orientation:landscape)"/>
<!--icons for apple shortcuts screen-->
<!--<link rel="apple-touch-icon" href="icon.png"/>-->
<link rel="apple-touch-icon-precomposed" href="images/ios-icon.png"/>
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/ios-icon-ipad.png"/>
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/ios-icon-iphone4.png"/>
<!--images for apple startup images-->
<link media="screen and (min-device-width: 768px) and (orientation:landscape)" rel="apple-touch-startup-image"
href="images/ios-startup-748x1024.png"/>
<link media="screen and (min-device-width: 768px) and (orientation:portrait)" rel="apple-touch-startup-image"
href="images/ios-startup-768x1004.png"/>
<link media="screen and (max-device-width: 320px)" rel="apple-touch-startup-image"
href="images/ios-startup-320x460.png"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<script src="scripts/game.js"></script>
<script>
window.addEventListener("load", function () {
// if( jewel.isStandalone() ){
// jewel.load('scripts/dom.js');
// jewel.load('scripts/screen.splash.js');
// jewel.load('scripts/input.js');
// jewel.load('scripts/screen.main-menu.js');
// if( jewel.hasWebWorker() ){
// jewel.preload('scripts/board.worker.js');
// jewel.load('scripts/board.worker-interface.js', jewel.setup);
// }else{
game.load('scripts/pices.js');
game.load('scripts/board.js');
// }
// jewel.load('scripts/screen.game.js');
// jewel.load('scripts/display.canvas.js');
// jewel.load('scripts/audio.js');
// jewel.load('scripts/storage.js');
// jewel.load('scripts/screen.high-scores.js');
// jewel.load('scripts/screen.about.js');
// }else{
// jewel.load("scripts/screen.install.js",jewel.setup)
// }
});
</script>
</head>
<body>
<div id="game">
<!--SPLASH SCREEN-->
<div class="screen" id="splash-screen">
<h1 class="logo">
<span>T</span>
<span>e</span>
<span>t</span>
<span>r</span>
<span>i</span>
<span>s</span>
</h1>
<span class="continue">Click to continue</span>
<div class="progress">
<div class="indicator"></div>
</div>
</div>
<!--MENU-->
<div class="screen" id="main-menu">
<h1 class="logo">
<span>T</span>
<span>e</span>
<span>t</span>
<span>r</span>
<span>i</span>
<span>s</span>
</h1>
<ul class="menu">
<li><button name="game-screen">Play</button></li>
<li><button name="high-scores">High score</button></li>
<li><button name="about">About</button></li>
<li><button name="exit-screen">Exit</button></li>
</ul>
</div>
<div class="screen" id="game-screen">
<div class="game-board jewel-size">
<div class="announcement"></div>
</div>
<div class="game-info">
<label class="level" for="">Level: <span></span></label>
<label class="score" for="">Score: <span></span></label>
<div class="time progress">
<div class="indicator"></div>
</div>
</div>
<footer>
<button class="exit">Exit</button>
<button class="pause">pause</button>
<button class="reset">reset</button>
</footer>
<div class="pause-overlay">
<div class="pause-text">pause</div>
</div>
</div>
<div class="screen" id="high-scores">
<h2 class="logo">high score</h2>
<ol class="score-list"></ol>
<footer>
<button name="back">Back</button>
</footer>
</div>
<div class="screen" id="about">
<h3>
<a href="https://github.com/perymimon?tab=repositories">pery mimon</a>
<address>isreal</address>
</h3>
from the book<span class="book"> HTML5 GAMES</span>
</div>
<div class="screen" id="install-screen">
<h1 class="logo">Jewel<br>Warrior</h1>
<span>
Click the<img icon="" src="images/install-icon.png" alt="install"/>
button to install the game to your home screen
</span>
</div>
</div>
</body>
</html>