-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3rd_floor.html
510 lines (399 loc) · 20.5 KB
/
3rd_floor.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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="./css/reset.css">
<link rel="stylesheet" type="text/css" href="./css/common.css">
<link rel="stylesheet" type="text/css" href="./css/loader.css">
<link rel="stylesheet" type="text/css" href="./css/3rd_floor.css">
<link href="https://fonts.googleapis.com/css?family=Noto+Serif+KR:400,700&display=swap&subset=korean" rel="stylesheet">
<script src="https://kit.fontawesome.com/296406b34b.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="script/loader.js"></script>
<title>3층 리조트 :: 센티멘탈 호텔</title>
</head>
<body>
<div class="container">
<div class="dialogue-box"></div>
<div id="reset-bg" class="transparent-background"></div>
<div id="fade-box" class="fade-box"></div>
<div class="fade-box__sound"><img class="soundicon" src="image/3rd_floor/soundicon.gif"><!--<i class="fas fa-volume-up"></i>--></div>
<div class="reset">
<i class="fas fa-redo-alt icon reset-icon gifhover"></i>
<div class="dialogue-box-reset">
<h1 class="name"> </h1>
<p class="line top-line first-line">게임을 재시작하시겠습니까?</p>
<p class="line bottom-line fast-yes-line two-toplines"><a id="reset" href="index.html"><span class="clicker clicker-reset-1">✔️ 예</span></a></p>
<p class="line bottom-line fast-no-line next-line"><span class="clicker clicker-reset-2">❌ 아니오</span></p>
</div>
</div>
<!-- preloader -->
<div class="preloader">
<div class="circle"></div>
<div class="chain__upwards">
<img class="chain chain-1" src="image/loader/chain.png">
<img class="chain chain-2" src="image/loader/chain.png">
</div>
<img class="elevator" src="image/loader/elevator.png">
</div>
<!-- items -->
<div class="items">
<div class="item map">
<img class="icon map-icon" src="image/icon/mapicon.png">
<div class="map-contents">
<div id="item-background" class="transparent-background"></div>
<img class="map-image" src="image/1st_floor_lobby/설명-맵.png">
<span class="close-x">✕</span>
</div>
</div>
</div>
<!-- scores -->
<div class="scores">
<img class="scoreboard" src="image/icon/점수판.png">
<span class="score__text">점수</span>
<span class="score"></span>
</div>
<!-- arrows -->
<div class="arrows">
<img class="movingarrow movingarrow__swimming" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__fitness" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__spa" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__movie" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__restaurant" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__elevator" src="image/icon/arrow.png">
</div>
<!-- gif -->
<div class="logo-gif">
<img class="gif gifhover logo logo1" src="image/3rd_floor/logo1.png">
<img class="gif gifhover logo logo2" src="image/3rd_floor/logo2.png">
<img class="gif gifhover logo logo3" src="image/3rd_floor/logo3.png">
</div>
<div class="popcorn-gif">
<img class="gif gifhover popcorn popcorn1" src="image/3rd_floor/popcorn1.png">
<img class="gif gifhover popcorn popcorn2" src="image/3rd_floor/popcorn2.png">
<img class="gif gifhover popcorn popcorn3" src="image/3rd_floor/popcorn3.png">
<img class="gif gifhover popcorn popcorn4" src="image/3rd_floor/popcorn4.png">
<img class="gif gifhover popcorn popcorn5" src="image/3rd_floor/popcorn5.png">
<img class="gif gifhover popcorn popcorn6" src="image/3rd_floor/popcorn6.png">
</div>
<div class="picture-gif">
<img class="gif gifhover picture picture1" src="image/3rd_floor/picture1.png">
<img class="gif gifhover picture picture2" src="image/3rd_floor/picture2.png">
<img class="gif gifhover picture picture3" src="image/3rd_floor/picture3.png">
</div>
<div class="couple">
<img class="gif gifhover couple couple1" src="image/3rd_floor/couple1.png">
<img class="gif gifhover couple couple2" src="image/3rd_floor/couple2.png">
<img class="gif gifhover couple couple3" src="image/3rd_floor/couple3.png">
<img class="gif gifhover couple couple4" src="image/3rd_floor/couple4.png">
</div>
<div class="dialogue-box2 foundallgif">
<h1 class="name"> </h1>
<p class="line top-line first-line">움직이는 요소를 모두 찾았다! </p>
<p class="line bottom-line fast-yes-line"><span class="clicker clicker-100">(보너스 10점!)</span></p>
</div>
<div class="start">
<div class="dialogue-box2 dialogue-0-1">
<h1 id="big-hyun__start" class="name">리조트 직원</h1>
<p class="line top-line first-line">센티멘탈 리조트에 오신 것을 진심으로 환영합니다!</p>
<p class="line top-line second-line next-line">저희 센티멘탈 리조트의 멋지고 다양한 시설은 최고의 휴식과 감동을 선사합니다.</p>
<p class="line top-line third-line next-line">무엇을 망설이시나요? 지금 당장 체험해 보세요!</p>
<p class="line bottom-line fourth-line three-toplines">- 음... 지배인님이 오기 전까지 리조트나 들어가 봐야겠다. <span class="clicker clicker-0-1">(확인)</span></p>
</div>
</div>
<div class="swimming">
<img class="gif gifhover swimming__gif" src="image/3rd_floor/swimming.gif">
<img class="gif-in swimming-in" src="image/3rd_floor/swimming_in.png">
<audio id="swimming">
<source src="sound/3rd_floor/swimming.mp3" type="audio/mpeg">
</audio>
</div>
<div class="fitness">
<img class="gif gifhover fitness__gif" src="image/3rd_floor/fitness.gif">
<img class="gif-in fitness-in" src="image/3rd_floor/fitness.png">
<audio id="fitness">
<source src="sound/3rd_floor/fitness.mp3" type="audio/mpeg">
</audio>
</div>
<div class="spa">
<img class="gif gifhover spa__gif" src="image/3rd_floor/spa.gif">
<img class="gif-in spa-in" src="image/3rd_floor/spa.png">
<audio id="spa">
<source src="sound/3rd_floor/spa.mp3" type="audio/mpeg">
</audio>
</div>
<div class="big-hyun">
<img class="gif gifhover big-hyun__gif" style="display: none;" src="image/3rd_floor/big-hyun.gif">
<img class="avatar big-hyun__avatar" src="image/1st_floor_lobby/큰현.png">
<div class="dialogue-box2 dialogue-1-1">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">아, 거기 계셨군요 <span class="player-name"></span> 씨.</p>
<p class="line top-line second-line next-line">인사를 드리고 오느라 조금 늦었네요. 저에겐 정말 중요한 분이셔서... (지배인의 얼굴이 발그래졌다.)</p>
<p class="line bottom-line third-line two-toplines">- 엇, 지배인님 얼굴이 좀 <span class="clicker clicker-1-1">빨개지신 것 같은데요...?</span></p>
</div>
<div class="dialogue-box2 dialogue-1-2">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">... 그, 그나저나 3층은 좀 둘러보셨나요? 3층엔 리조트 시설들이 많아요, 하하하.</p>
<p class="line top-line second-line next-line">아, 특히 <strong>영화관에서 상영 중인 영화 제목</strong>과 <strong>레스토랑의 오늘의 메뉴</strong>는 반드시 기억해야 해요.</p>
<p class="line top-line third-line next-line">지나가다가 손님들이 물어보시거든요.</p>
<p class="line top-line fourth-line next-line">그, 그럼 3층을 마저 둘러보시고 4층으로 올라와 주세요.</p>
<p class="line bottom-line fifth-line four-toplines">지배인은 후다닥 4층으로 올라갔다... <span class="clicker clicker-1-2">(확인)</span></p>
</div>
</div>
<div class="movie">
<img class="gif gifhover movie__gif" src="image/3rd_floor/movie.gif">
<img class="gif-in movie-in" src="image/3rd_floor/movie.png">
<audio id="movie">
<source src="sound/3rd_floor/movie.mp3" type="audio/mpeg">
</audio>
</div>
<div class="restaurant">
<img class="gif gifhover restaurant__gif" src="image/3rd_floor/restaurant.gif">
<img class="gif-in restaurant-in" src="image/3rd_floor/restaurant.png">
<audio id="restaurant">
<source src="sound/3rd_floor/restaurant.mp3" type="audio/mpeg">
</audio>
</div>
<div class="3rdfloor-elevator">
<audio id="elevatorBellRing">
<source src="sound/Elevator Bell Ring.mp3" type="audio/mpeg">
</audio>
<img class="gif gifhover elevator__button button-off" src="image/2nd_floor/엘베버튼off.png">
<img class="gif gifhover elevator__button button-on" src="image/2nd_floor/엘베버튼on.png">
<img class="elevator__alarm alarm-off" src="image/2nd_floor/엘베알람off.png">
<img class="elevator__alarm alarm-on" src="image/2nd_floor/엘베알람on.png">
<div class="dialogue-box2 dialogue-2-1">
<h1 class="name"> </h1>
<p class="line top-line first-line">4층으로 올라가시겠습니까?</p>
<p class="line bottom-line fast-yes-line two-toplines">- <a id="nextStage" href="4th_floor.html"><span class="clicker clicker-3-1">올라간다</span></a></p>
<p class="line bottom-line fast-no-line next-line">- <span class="clicker clicker-3-2">더 둘러본다</span></p>
</div>
</div>
</div>
<script src="script/score.js"></script>
<script src="script/reset.js"></script>
<script src="script/playerName.js"></script>
<script src="script/item.js"></script>
<script>
function start () {
setTimeout(function() {$('.dialogue-0-1, .dialogue-0-1 .line, .dialogue-box').show();}, 7000);
}
$('.fade-box').fadeOut(1000);
$('.preloader').show();
let fade = $('.fade-box__sound');
let hasClickedSwimmingpool = false;
let hasClickedFitness = false;
let hasClickedSpa = false;
let hasClickedMovie = false;
let hasClickedRestaurant = false;
let hasClickedElevator = false;
let bigHyun = false;
let hasClickedLogo = false;
let hasClickedPopcorn = false;
let hasClickedPicture = false;
let hasClickedCouple = false;
function alertFoundAllGif() {
if (hasClickedLogo=== true && hasClickedPopcorn === true && hasClickedPicture === true && hasClickedCouple === true) {
$('.foundallgif, .foundallgif .line, .dialogue-box').show();
alertFoundAllGif = function(){};
}
}
// gif
// found all gifs
$('.clicker-100').click(function() {
$('.foundallgif, .foundallgif .line, .dialogue-box').hide();
addScore(10);
})
// logo
$('.logo1').on('click', function() {
hasClickedLogo = true;
alertFoundAllGif();
let t = 200;
let logogif = function() {
setTimeout(function(){$('.logo1').hide();}, t);
setTimeout(function(){$('.logo2').show();}, t);
setTimeout(function(){$('.logo2').hide();}, t*2);
setTimeout(function(){$('.logo3').show();}, t*2);
setTimeout(function(){$('.logo3').hide();}, t*3);
setTimeout(function(){$('.logo1').show();}, t*3);
};
let repeat = setInterval(logogif, t*3);
setTimeout(function() {clearInterval(repeat);}, t*3*2);
});
// popcorn
$('.popcorn1').on('click', function() {
hasClickedPopcorn = true;
alertFoundAllGif();
let t = 150;
setTimeout(function(){$('.popcorn1').hide();}, t);
setTimeout(function(){$('.popcorn2').show();}, t);
setTimeout(function(){$('.popcorn2').hide();}, t*2);
setTimeout(function(){$('.popcorn3').show();}, t*2);
setTimeout(function(){$('.popcorn3').hide();}, t*3);
setTimeout(function(){$('.popcorn4').show();}, t*3);
setTimeout(function(){$('.popcorn4').hide();}, t*4);
setTimeout(function(){$('.popcorn5').show();}, t*4);
setTimeout(function(){$('.popcorn5').hide();}, t*5);
setTimeout(function(){$('.popcorn6').show();}, t*5);
setTimeout(function(){$('.popcorn6').hide();}, t*6);
setTimeout(function(){$('.popcorn1').show();}, t*6);
});
// picture
$('.picture1').on('click', function() {
hasClickedPicture = true;
alertFoundAllGif();
let t = 200;
setTimeout(function(){$('.picture1').hide();}, t*3);
setTimeout(function(){$('.picture2').show();}, t*3);
setTimeout(function(){$('.picture2').hide();}, t*6);
setTimeout(function(){$('.picture3').show();}, t*6);
setTimeout(function(){$('.picture3').hide();}, t*7);
setTimeout(function(){$('.picture2').show();}, t*7);
setTimeout(function(){$('.picture2').hide();}, t*8);
setTimeout(function(){$('.picture3').show();}, t*8);
setTimeout(function(){$('.picture3').hide();}, t*9);
setTimeout(function(){$('.picture2').show();}, t*9);
setTimeout(function(){$('.picture2').hide();}, t*10);
setTimeout(function(){$('.picture3').show();}, t*10);
setTimeout(function(){$('.picture3').hide();}, t*11);
setTimeout(function(){$('.picture2').show();}, t*11);
setTimeout(function(){$('.picture2').hide();}, t*15);
setTimeout(function(){$('.picture1').show();}, t*15);
});
// couple
$('.couple1').on('click', function() {
hasClickedCouple = true;
alertFoundAllGif();
let t = 200;
let couplegif = function() {
setTimeout(function(){$('.couple1').hide();}, t);
setTimeout(function(){$('.couple2').show();}, t);
setTimeout(function(){$('.couple2').hide();}, t*2);
setTimeout(function(){$('.couple3').show();}, t*2);
setTimeout(function(){$('.couple3').hide();}, t*3);
setTimeout(function(){$('.couple4').show();}, t*3);
setTimeout(function(){$('.couple4').hide();}, t*4);
setTimeout(function(){$('.couple1').show();}, t*4);
};
let repeat = setInterval(couplegif, t*4);
setTimeout(function() {clearInterval(repeat);}, t*4*3);
});
// start
//quick view
$('.dialogue-0-1').click(function() {
$(event.currentTarget).children().removeClass('first-line second-line third-line fourth-line fifth-line sixth-line');})
//close
$('.clicker-0-1').on('click', function() {
$('.dialogue-0-1, .dialogue-0-1 .line, .dialogue-box').hide();
$('.movingarrow__swimming, .movingarrow__fitness, .movingarrow__spa').show();})
// swimming
$('.swimming__gif').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
$('.movingarrow__swimming').hide();
hasClickedSwimmingpool = true;
fade.fadeIn(1000).delay(12000).fadeOut(1000);
$('.swimming-in').delay(2000).fadeIn(2000).delay(8000).fadeOut(1000);
setTimeout(function() {$('#swimming')[0].play();}, 2000);
if (hasClickedSwimmingpool === true && hasClickedFitness === true && hasClickedSpa === true) {
$('.big-hyun__gif, .big-hyun__avatar, .dialogue-1-1, .dialogue-1-1 .line, .dialogue-box').delay(15000).fadeIn(0);
} else {}
} else {}
})
// fitness
$('.fitness__gif').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
$('.movingarrow__fitness').hide();
hasClickedFitness = true;
fade.fadeIn(1000).delay(12000).fadeOut(1000);
$('.fitness-in').delay(2000).fadeIn(2000).delay(8000).fadeOut(1000);
setTimeout(function() {$('#fitness')[0].play();}, 2000);
if (hasClickedSwimmingpool === true && hasClickedFitness === true && hasClickedSpa === true) {
$('.big-hyun__gif, .big-hyun__avatar, .dialogue-1-1, .dialogue-1-1 .line, .dialogue-box').delay(15000).fadeIn(0);
} else {}
} else {}
})
// spa
$('.spa__gif').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
$('.movingarrow__spa').hide();
hasClickedSpa = true;
fade.fadeIn(1000).delay(12000).fadeOut(1000);
$('.spa-in').delay(2000).fadeIn(2000).delay(8000).fadeOut(1000);
setTimeout(function() {$('#spa')[0].play();}, 2000);
if (hasClickedSwimmingpool === true && hasClickedFitness === true && hasClickedSpa === true) {
$('.big-hyun__gif, .big-hyun__avatar, .dialogue-1-1, .dialogue-1-1 .line, .dialogue-box').delay(15000).fadeIn(0);
} else {}
} else {}
})
// big-hyun
//quick view
$('.dialogue-1-1, .dialogue-1-2').click(function() {
$(event.currentTarget).children().css('animation', 'none');})
$('.clicker-1-1').click(function() {
$('.dialogue-1-1, .dialogue-1-1 .line').hide();
$('.dialogue-1-2, .dialogue-1-2 .line').show();})
//close
$('.clicker-1-2').click(function() {
$('.dialogue-1-2, .dialogue-1-2 .line, .big-hyun__gif, .big-hyun__avatar, .dialogue-box').hide();
$('.movingarrow__movie, .movingarrow__restaurant').show();
bigHyun = true;
})
// movie
$('.movie__gif').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
if (hasClickedSwimmingpool === true && hasClickedFitness === true && hasClickedSpa === true && bigHyun === true) {
hasClickedMovie = true;
$('.movingarrow__movie').hide();
fade.fadeIn(1000).delay(12000).fadeOut(1000);
$('.movie-in').delay(2000).fadeIn(2000).delay(8000).fadeOut(1000);
setTimeout(function() {$('#movie')[0].play();}, 2000);
if (hasClickedMovie === true && hasClickedRestaurant === true) {
$('.movingarrow__elevator').show();
} else {}
} else {}
} else {}
})
// restaurant
$('.restaurant__gif').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
if (hasClickedSwimmingpool === true && hasClickedFitness === true && hasClickedSpa === true && bigHyun === true) {
hasClickedRestaurant = true;
$('.movingarrow__restaurant').hide();
fade.fadeIn(1000).delay(14000).fadeOut(1000);
setTimeout(function() {$('#restaurant')[0].play();}, 2000);
$('.restaurant-in').delay(2000).fadeIn(2000).delay(10000).fadeOut(1000);
if (hasClickedMovie === true && hasClickedRestaurant === true) {
$('.movingarrow__elevator').show();
} else {}
} else {}
} else {}
})
// elevator
$('.button-off').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
if (hasClickedSwimmingpool === true && hasClickedFitness === true && hasClickedSpa === true && hasClickedMovie === true && hasClickedRestaurant === true) {
$('.movingarrow__elevator').hide();
$('.button-on, .dialogue-2-1, .dialogue-2-1 .line, .alarm-on, .dialogue-box').show();
hasClickedElevator = true;
$('#elevatorBellRing')[0].play();
} else {}
} else {}
})
//quick view
$('.dialogue-2-1').click(function() {
$(event.currentTarget).children().removeClass('first-line fast-yes-line fast-no-line');
})
// close
$('.clicker-3-2').click(function(){
$('.button-on, .dialogue-2-1, .dialogue-2-1 .line, .alarm-on, .dialogue-box').hide();
})
$('.clicker-3-1').click(function(){
event.preventDefault();
$('#fade-box').fadeIn(2000);
setTimeout(function() {window.location = $('#nextStage').attr('href');}, 2000);
})
</script>
</body>
</html>