-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
274 lines (262 loc) · 8.76 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE html>
<html>
<head>
<title>
Wizard Hunter
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="desktop/desktop.css"/>
<link rel="stylesheet" type="text/css" href="overlay/overlay.css"/>
<link rel="stylesheet" type="text/css" href="browser/browser.css"/>
<link rel="stylesheet" type="text/css" href="window/window.css"/>
<link rel="stylesheet" type="text/css" href="installer/installer.css"/>
<link rel="stylesheet" type="text/css" href="website/website.css"/>
<link rel="stylesheet" type="text/css" href="fullscreen/fullscreen.css"/>
<link rel="stylesheet" type="text/css" href="dialog/dialog.css"/>
<link rel="stylesheet" type="text/css" href="game/game.css"/>
<link rel="stylesheet" type="text/css" href="layout/layout.css"/>
</head>
<body>
<section class="desktop" data-background="original" role="navigation">
<section class="desktop-buttons">
<button
type="button"
class="desktop-button hidden"
onclick="openBrowser()"
data-button="web-browser">
<img class="desktop-button-icon" src="desktop/web-browser.png"/>
<div class="desktop-button-text">Web Browser</div>
</button>
<button
type="button"
class="desktop-button hidden"
onclick="onClickHobbit(event)"
data-button="the-hobbit">
<img class="desktop-button-icon" src="desktop/the-hobbit.png"/>
<div class="desktop-button-text">The Hobbit</div>
</button>
<button
type="button"
class="desktop-button hidden"
onclick="onClickWizardHunter(event)"
data-button="wizard-hunter">
<img class="desktop-button-icon" src="desktop/wizard-hunter.png"/>
<div class="desktop-button-text">The Wizard Hunter</div>
</button>
</section>
</section>
<section class="fullscreen fullscreen-hobbit hidden">
<div class="game-guide niko">
<img class="" src="images/niko.1.png"/>
</div>
</section>
<section class="fullscreen fullscreen-wizard hidden" data-background="DarkForse">
<div class="game-guide niko">
<img class="" src="images/niko.1.png"/>
</div>
<div class="game-guide wizard hidden">
<img class="" src="images/gandalf.png"/>
</div>
</section>
<section class="overlay hidden">
<section class="dialog dialog-alert hidden">
<form action="" name="dialogAlertForm" class="dialog-form">
<fieldset class="dialog-input-group">
<div class="dialog-message"></div>
</fieldset>
<fieldset class="dialog-button-group">
<button
type="submit"
class="dialog-button-ok">
OK
</button>
</fieldset>
</form>
</section>
<section class="dialog dialog-prompt hidden">
<form action="" name="dialogPromptForm" class="dialog-form">
<fieldset class="dialog-input-group">
<div class="dialog-message"></div>
<input
type="text"
name="answer"
class="dialog-input-text"
size="30"
required="true"
placeholder="Type your answer here.."
/>
</fieldset>
<fieldset class="dialog-button-group">
<button
type="submit"
class="dialog-button-ok">
OK
</button>
<button
type="button"
class="dialog-button-cancel">
Cancel
</button>
</fieldset>
</form>
</section>
<section class="dialog dialog-confirm hidden">
<form action="" name="dialogConfirmForm" class="dialog-form">
<fieldset class="dialog-input-group">
<div class="dialog-message"></div>
</fieldset>
<fieldset class="dialog-button-group">
<button
type="submit"
class="dialog-button-ok">
OK
</button>
<button
type="button"
class="dialog-button-cancel">
Cancel
</button>
</fieldset>
</form>
</section>
<section class="window browser hidden">
<div class="window-header">
<button
type="button"
class="window-close-button"
onclick="closeBrowser(event)">
</button>
<div class="window-header-title">Web Browser</div>
</div>
<div class="window-location">
<span class="window-location-link">https://google.com</span>
</div>
<div class="window-body">
<section class="website download-page">
<div class="website-game">
<img class="website-game-image" src="desktop/the-hobbit.png"/>
<button
type="button"
class="website-game-download-button"
onclick="onClickDownloadGame(event)">
Download
</button>
</div>
</div>
</div>
<div class="window-footer">
<div class="browser-downloads hidden">
<script type="text/template" id="browser-downloads-item-template">
<button
type="button"
class="browser-downloads-button"
data-button="the-hobbit"
onclick="onClickInstallTheHobbit(event)">
HobbitGameInstaller.js
</button>
</script>
<div class="browser-downloads-items"></div>
<button
type="button"
class="browser-downloads-close"
onclick="onClickDownloadsClose(event)">
</button>
</div>
</div>
</section>
<section class="window installer hidden">
<div class="window-header">
<button
type="button"
class="window-close-button"
onclick="closeInstaller(event)">
</button>
<div class="window-header-title">
Installer for The Hobbit Game
</div>
</div>
<div class="window-body installer-body-welcome">
<div class="installer-body-main">
<h1>Installation</h1>
<hr />
<div>
Welcome to this installation wizard.
To proceed with the installation you need to have 42 KB free
memory.
</div>
</div>
<div class="installer-body-buttons">
<button
type="button"
class="installer-button-next"
onclick="installationProceed(event)"
>
Next
</button>
</div>
</div>
<div class="window-body installer-body-progress hidden">
<div class="installer-body-main">
<h1>Installation</h1>
<hr />
<div>
Installing... please wait
</div>
</div>
<div class="installer-body-buttons">
<button
type="button"
class="installer-button-next"
onclick="installationProceed(event)"
disabled="true"
>
Next
</button>
</div>
</div>
<div class="window-body installer-body-error hidden">
<div class="installer-body-main">
<h1>ERROR</h1>
<hr />
<div>
An error occurred. The Wizard must be stopped.
</div>
</div>
<div class="installer-body-buttons">
<button
type="button"
class="installer-button-next"
onclick="finishInstaller(event)" >
Ok
</button>
</div>
</div>
<div class="window-footer">
</div>
</section>
</section>
<script src="desktop/desktop.js"></script>
<script src="installer/installer.js"></script>
<script src="game/game.js"></script>
<script src="game/hobbit.js"></script>
<script src="game/wizard.js"></script>
<script src="dialog/dialog.js"></script>
<script src="flexibility.js"></script>
<script>
'use strict'
let imagesToPreload = [
'images/DarkForse.jpg',
'images/desktop-bg-broken.jpg',
'images/desktop-bg-original.jpg',
'images/errors.jpeg',
'images/gandalf.png',
'images/kkkk.jpg',
'images/niko.1.png',
]
imagesToPreload.forEach(function (src) {
let image = new Image()
image.src = src
})
</script>
</body>
</html>