-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path1st_floor_lobby.html
532 lines (420 loc) · 25.5 KB
/
1st_floor_lobby.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
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
<!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/1st_floor_lobby.css">
<link rel="stylesheet" type="text/css" href="./css/loader.css">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+KR&display=swap" rel="stylesheet">
<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" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<title>1층 로비 :: 센티멘탈 호텔</title>
<script src="script/loader.js"></script>
</head>
<body>
<div class="container">
<div class="fade-box"></div>
<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>
<div class="dialogue-box"></div>
<div id="dialogue-bg" class="transparent-background"></div>
<div id="reset-bg" class="transparent-background"></div>
<img class="movingarrow movingarrow__small-hyun" src="image/icon/arrow.png">
<div class="items">
<div class="item map">
<img class="icon gifhover 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>
<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>
<div class="scores">
<img class="scoreboard" src="image/icon/점수판.png">
<span class="score__text">점수</span>
<span class="score"></span>
</div>
<div class="start">
<div class="dialogue-box2 dialogue-0-1">
<h1 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 top-line fourth-line next-line"><span class="clicker clicker-0-1">(리셉션 데스크 안의 직원과 이야기해 보자.)</span> <strong>🡄 클릭!</strong></p>
<p class="line bottom-line fifth-line four-toplines">💬 대화가 나오는 중 대화상자를 누르면 대사를 빠르게 넘길 수 있습니다.</p>
</div>
</div>
<div class="small-hyun">
<img class="gif gifhover small-hyun__gif" src="image/1st_floor_lobby/작은현.gif">
<img class="avatar small-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">안녕? 네가 이번에 들어왔다는 신입이구나?</p>
<p class="line bottom-line second-line one-topline">- (어린아이가 나에게 반말을 하네...? 뭐, 첫날이니 그러려니 해야지.) <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">너 이름이 뭐야?</p>
<p class="line bottom-line second-line one-topline">- 제 이름은...<input id="playerName" type="text" name="player-name" placeholder="(최대 4글자)" maxlength="4"><input class="clicker clicker-1-2" type="submit" value="입니다!"></p>
</div>
<div class="dialogue-box2 dialogue-1-3">
<h1 class="name">작은 현</h1>
<p class="line top-line first-line">뭐? <strong><span class="player-name"></span></strong>? 얼굴만큼이나 웃긴 이름이네... 큭큭. 어쨌든 호텔에 온 걸 환영해.</p>
<p class="line top-line second-line next-line">난 <strong>작은 현</strong>이야.</p>
<p class="line top-line third-line next-line">날 부를 때는 그냥 <strong>'작은 지배인님'</strong>이라고 불러.</p>
<p class="line bottom-line fourth-line three-toplines">- (이 조그만 꼬마가 이 호텔의 지배인이라고…?) 아, 네 알겠습니다... <span class="clicker clicker-1-3">작은 지배인님.</span></p>
</div>
<div class="dialogue-box2 dialogue-1-4">
<h1 class="name">작은 현</h1>
<p class="line top-line first-line">넌 오늘부터 호텔 직원이 되기 위한 교육을 받을 거야. </p>
<p class="line top-line second-line next-line">교육은 저기 서 있는 <strong>큰 현</strong>이가 해.</p>
<p class="line top-line third-line next-line">큰 현이한테 가봐.</p>
<p class="line bottom-line fourth-line three-toplines">(로비를 보니 큰 현이 서 있다. <span class="clicker clicker-1-4">큰 현에게 가보자.</span>)</p>
</div>
</div>
<div class="big-hyun">
<img class="gif gifhover big-hyun__gif" src="image/1st_floor_lobby/큰현.gif">
<img class="big-hyun__mapimg" src="image/1st_floor_lobby/설명-맵.png">
<img class="avatar big-hyun__avatar" src="image/1st_floor_lobby/큰현.png">
<div class="dialogue-box2 dialogue-2-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">저는 오늘 신입 직원 교육을 진행할 이 호텔의 지배인, <strong>큰 현</strong>이라고 해요.</p>
<p class="line top-line third-line next-line"><span class="player-name"></span> 씨가 저를 부를 때는 <strong>‘큰 지배인님’</strong>이라고 부르면 돼요.</p>
<p class="line bottom-line fourth-line three-toplines">- (이 호텔은 지배인이 두 명...?) <span class="clicker clicker-2-1">네, 큰 지배인님!</span></p>
</div>
<div class="dialogue-box2 dialogue-2-2">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">좋아요. 먼저 말씀드릴 것은...
<p class="line top-line second-line next-line"><span class="player-name"></span> 씨는 아직 정식 채용된 것이 아니에요.</p>
<p class="line top-line third-line next-line">오늘 진행되는 <strong><센티멘탈 호텔 신입 직원 교육></strong>을 반드시 통과하셔야 정식 직원이 될 수 있어요.</p>
<p class="line bottom-line fourth-line three-toplines">- <span class="clicker clicker-2-2">센티멘탈 호텔 신입 직원 교육이요...?</span></p>
</div>
<div class="dialogue-box2 dialogue-2-3">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">네. 너무 걱정하진 마세요.</p>
<p class="line top-line second-line next-line"><strong>화살표</strong><img style="height:3vw" src="image/icon/arrow.png">를 따라 각 층을 체험하면 되니까요.</p>
<p class="line bottom-line third-line three-toplines"><span class="clicker clicker-2-3">(다음)</span></p>
</div>
<div class="dialogue-box2 dialogue-2-3-1">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">또한 <strong></strong>제가 내는 퀴즈</strong>를 잘 맞추시면 되요.</p>
<p class="line top-line second-line next-line">퀴즈는 <strong>스토리를 잘 읽는다면</strong> 충분히 맞출 수 있어요.</p>
<p class="line bottom-line third-line two-toplines">- <span class="clicker clicker-2-3">화면 우측 상단의 점수판은 뭔가요?</span></p>
</div>
<div class="dialogue-box2 dialogue-2-4">
<h1 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 top-line fourth-line next-line">0점에 다다를 시 <strong>게임 오버</strong> 및 <span style="color: red; font-weight: bold;">호텔 입사에 실패</span>하게 됩니다.</p>
<p class="line bottom-line fifth-line four-toplines">- <span class="clicker clicker-2-4">입..입사 실패요?!</span></p>
</div>
<div class="dialogue-box2 dialogue-2-5">
<h1 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">호텔 곳곳에는 <strong>클릭하면 움직이는 그림</strong>들이 있다.</p>
<p class="line top-line fourth-line next-line">그림들을 모두 찾아 클릭하면 <strong>보너스 10점</strong>을 얻을 수 있다.</p>
<p class="line top-line fifth-line"> </p>
<p class="line top-line sixth-line next-line">쉿! 이건 <span class="player-name"></span>씨를 위해 제가 특별히 알려 드린 거예요. 알겠죠?</p>
<p class="line bottom-line seventh-line six-toplines">- <span class="clicker clicker-2-5">네, 감사합니다!</span></p>
</div>
<div class="dialogue-box2 dialogue-2-6">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">좋아요. 그럼 먼저 센티멘탈 호텔에 대해 간략히 알아보겠습니다.</p>
<p class="line top-line second-line next-line">센티멘탈 호텔은 총 <strong>7층</strong>으로 이루어져 있어요.</p>
<p class="line top-line third-line next-line">1층 ~ 3층은 리셉션, 라운지 등의 편의 시설이 있습니다.</p>
<p class="line top-line fourth-line next-line">4층부터는 객실이 자리하고 있죠.</p>
<p class="line bottom-line fifth-line four-toplines"><span class="clicker clicker-2-6">(다음)</span></p>
</div>
<div class="dialogue-box2 dialogue-2-7">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">저희가 현재 있는 이곳은 <strong>센티멘탈 호텔의 1층 메인 로비</strong>예요. </p>
<p class="line top-line second-line next-line">1층 로비에는 접수를 할 수 있는 리셉션과 휴식 공간이 있어요.</p>
<p class="line bottom-line third-line two-toplines">- <span class="clicker clicker-2-7">(다음)</span></p>
</div>
<div class="dialogue-box2 dialogue-2-8">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">저는 <strong>라운지</strong>로 가서 <span class="player-name"></span>씨를 위한 음료를 준비해 놓을게요.</p>
<p class="line top-line second-line next-line"><strong>로비를 둘러보고 나서 라운지로 와 주세요.</strong></p>
<p class="line bottom-line third-line two-toplines">- <span class="clicker clicker-2-8">알겠습니다!</span></p>
</div>
</div>
<div class="gold-plate">
<img class="gif gifhover gold-plate__gif" src="image/1st_floor_lobby/금색판.gif">
<div class="dialogue-box2 gold-plate__mission-box">
<h1 class="name gold-plate__name">미션</h1>
<span class="line gold-plate__line line-24"><strong>하나.</strong></span>
<span class="line gold-plate__line line-25"> 우리는 모든 고객이 센티멘탈 호텔만의 섬세함을 경험하게 한다.</span>
<span class="line gold-plate__line line-26"><strong>둘.</strong></span>
<span class="line gold-plate__line line-27"> 우리는 센티멘탈 호텔의 직원으로서 각자의 자리에서 소중한 나의 마음을 어떠한 왜곡 없이</span>
<span class="line gold-plate__line line-28"> 고객에게 전달하기 위해 최선의 노력을 다한다.</span>
<span class="line gold-plate__line line-29"><strong>셋.</strong></span>
<span class="line gold-plate__line line-30"> 우리는 진심을 표현하기 위한 부단한 노력과 때묻지 않은 순수한 마음을 통해 현이 더 나은</span>
<span class="line gold-plate__line line-31"> 삶을 누릴 수 있도록 기여한다.</span>
</div>
<div class="dialogue-box2 dialogue-3-1">
<h1 class="name"><span class="player-name"></span></h1>
<p class="line top-line first-line">... 잠깐. 현이 더 나은 삶을 누릴 수 있도록 기여한다고...?</p>
<p class="line top-line second-line next-line">음... 뭔가 이상한데...</p>
<p class="line bottom-line third-line two-toplines"><span class="clicker clicker-3-1">(나가기)</span></p>
</div>
</div>
<div class="lounge-link">
<div class="clicker gifhover lounge-link__clicker" title="라운지로 가기"></div>
<div class="dialogue-box2 dialogue-4-1">
<h1 class="name"> </h1>
<p class="line top-line first-line">라운지로 이동하시겠습니까?</p>
<p class="line bottom-line fast-yes-line two-toplines">- <a id="nextStage" href="1st_floor_lounge.html"><span class="clicker clicker-4-1">이동한다</span></a></p>
<p class="line bottom-line fast-no-line next-line">- <span class="clicker clicker-4-2">더 둘러본다</span></p>
</div>
</div>
<div class="employee-gif">
<img class="gif employee employee1 gifhover" src="image/1st_floor_lobby/employee1.png">
<img class="gif employee employee3 gifhover" src="image/1st_floor_lobby/employee3.png">
</div>
<div class="boy-gif">
<img class="gif boy boy1 gifhover" src="image/1st_floor_lobby/boy1.png">
<img class="gif boy boy2 gifhover" src="image/1st_floor_lobby/boy2.png">
</div>
<div class="arrow-gif">
<img class="gif arrow arrow1 gifhover" src="image/1st_floor_lobby/arrow1.png">
<img class="gif arrow arrow2 gifhover" src="image/1st_floor_lobby/arrow2.png">
<img class="gif arrow arrow3 gifhover" src="image/1st_floor_lobby/arrow3.png">
</div>
<div class="dialogue-box2 dialogue__foundallgif">
<h1 class="name"> </h1>
<p class="line top-line first-line">모든 움직이는 요소를 찾았다! (보너스 <strong>10</strong>점!)</p>
<p class="line bottom-line fast-yes-line"><span class="clicker clicker-foundallgif">(확인)</span></p>
</div>
<img class="movingarrow movingarrow__small-hyun" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__big-hyun" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__gold-plate" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__link" src="image/icon/arrow.png">
</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 block = {display: 'block'};
let none = {display: 'none'};
let hasClickedSmallHyun = false;
let hasClickedBigHyun = false;
let hasClickedGoldplate = false;
let hasClickedEmployee = false;
let hasClickedBoy = false;
//when found all gifs
function alertFoundAllGif() {
if (hasClickedEmployee === true && hasClickedBoy === true) {
$('.dialogue-box, .dialogue__foundallgif, .dialogue__foundallgif .line').show();
addScore(10);
alertFoundAllGif = function(){};
}
}
$('.clicker-foundallgif').click(function() {
$('.dialogue-box, .dialogue__foundallgif, .dialogue__foundallgif.line').hide();
})
// fade-in to loader and fadeout
// $('.fade-box').fadeOut(1000);
// setTimeout(function() {$('.preloader').hide();}, 4000)
// setTimeout(function(){$('.fade-box').fadeIn(1000).fadeOut(2000);}, 3000);
//quick view
$('.dialogue-0-1, .dialogue-1-1, .dialogue-1-2, .dialogue-1-3, .dialogue-1-4, .dialogue-2-1, .dialogue-2-2, .dialogue-2-3, .dialogue-2-3-1, .dialogue-2-4, .dialogue-2-5, .dialogue-2-6, .dialogue-2-7, .dialogue-2-8, .dialogue-3-1, .dialogue-3-2, .dialogue-4-1').click(function() {
$(event.currentTarget).children().css('animation', 'none');
})
//start dialogue
//close
$('.clicker-0-1').on('click', function() {
$('.start, .dialogue-box').hide();
$('.movingarrow__small-hyun').css(block);
})
// small hyun
$('.small-hyun__gif').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none'){
if (hasClickedSmallHyun === true) {
$('.dialogue-1-4, .dialogue-1-4 .line, .small-hyun__avatar, .dialogue-box').children().css(block);
} else {
$('.dialogue-1-1, .dialogue-1-1 .line, .small-hyun__avatar, .dialogue-box').show();
$('.movingarrow__small-hyun').css(none);
}
} else {}
})
$('.clicker-1-1').on('click', function() {
$('.dialogue-1-1, .dialogue-1-1 .line').hide();
$('.dialogue-1-2, .dialogue-1-2 .line').show();
})
$('.clicker-1-2').on('click', function() {
getName();
$('.dialogue-1-2, .dialogue-1-2 .line').hide();
$('.dialogue-1-3, .dialogue-1-3 .line').show();
})
// also go next when press enter
$('#playerName').on('keyup', function (event) {
if (event.keyCode === 13) {
getName();
$('.dialogue-1-2, .dialogue-1-2 .line').hide();
$('.dialogue-1-3, .dialogue-1-3 .line').show();
}
})
$('.clicker-1-3').on('click', function() {
$('.dialogue-1-3, .dialogue-1-3 .line').hide();
$('.dialogue-1-4, .dialogue-1-4 .line').show();
})
//close
$('.clicker-1-4').on('click', function() {
hasClickedSmallHyun = true;
$('.dialogue-1-4, .dialogue-1-4 .line, .small-hyun__avatar, .dialogue-box, .movingarrow__small-hyun').hide();
$('.movingarrow__big-hyun').css(block);
})
//big hyun
$('.big-hyun__gif').click(function() {
// disappear arrow
$('.movingarrow__big-hyun').css(none);
if (document.querySelector('.dialogue-box').style.display === 'none'){
if (hasClickedSmallHyun === true) {
$('.dialogue-2-1, .dialogue-2-1 .line, .big-hyun__avatar, .dialogue-box').css(block);
} else {}
}
})
$('.clicker-2-1').click(function() {
$('.dialogue-2-1, .dialogue-2-1 .line').hide();
$('.dialogue-2-2, .dialogue-2-2 .line').show();
})
$('.clicker-2-2').click(function() {
$('.dialogue-2-2, .dialogue-2-2 .line').hide();
$('.dialogue-2-3, .dialogue-2-3 .line').show();
})
$('.clicker-2-3').click(function() {
$('.dialogue-2-3, .dialogue-2-3 .line').hide();
$('.dialogue-2-4, .dialogue-2-4 .line').show();
})
$('.clicker-2-3-1').click(function() {
$('.dialogue-2-3-1, .dialogue-2-3-1 .line').hide();
$('.dialogue-2-4, .dialogue-2-4 .line').show();
})
$('.clicker-2-4').click(function() {
$('.dialogue-2-4, .dialogue-2-4 .line').hide();
$('.dialogue-2-5, .dialogue-2-5 .line').show();
})
$('.clicker-2-5').click(function() {
$('.dialogue-2-5, .dialogue-2-5 .line').hide();
$('.dialogue-2-6, .dialogue-2-6 .line, .big-hyun__mapimg, #dialogue-bg').show();
})
$('.clicker-2-6').click(function() {
$('.dialogue-2-6, .dialogue-2-6 .line, .big-hyun__map').hide();
$('.dialogue-2-7, .dialogue-2-7 .line').show();
})
$('.clicker-2-7').click(function() {
$('.dialogue-2-7, .dialogue-2-7 .line').hide();
$('.dialogue-2-8, .dialogue-2-8 .line').show();
})
//close button
$('.clicker-2-8').click(function() {
$('.dialogue-2-8, .dialogue-2-8 .line, .big-hyun__gif, .big-hyun__avatar, .big-hyun__mapimg, #dialogue-bg, .dialogue-box').hide();
//appear arrow to lounge
$('.movingarrow__gold-plate').css(block);
hasClickedBigHyun = true;
})
//gold plate
$('.gold-plate__gif').on('click', function() {
// logic
if (document.querySelector('.dialogue-box').style.display === 'none'){
if (hasClickedSmallHyun === true && hasClickedBigHyun === true && hasClickedGoldplate === false) {
$('.movingarrow__gold-plate').css(none);
$('#dialogue-bg, .gold-plate__mission-box').css(block);
$('.line-24, .line-25, .line-26, .line-27, .line-28, .line-29, .line-30, .line-31').css('display', 'inline-block');
setTimeout(function() {
$('.dialogue-3-1, .dialogue-3-1 .line, .dialogue-box').css(block);
}, 12500);
}
if (hasClickedSmallHyun === true && hasClickedBigHyun === true && hasClickedGoldplate === true) {
$('.gold-plate__dialogue, #dialogue-bg, .gold-plate__mission-box, .dialogue-3-1, .dialogue-3-1 .line, .dialogue-box').css(block);
} else {}
} else {}
})
//close
$('.clicker-3-1').click(function() {
$('#dialogue-bg, .gold-plate__mission-box, .dialogue-3-1, .dialogue-box').css(none);
$('.movingarrow__link').css(block);
hasClickedGoldplate = true;
$('.gold-plate__name, .line-24, .line-25, .line-26, .line-27, .line-28, .line-29, .line-30, .line-31').css('animation', 'none');
})
//link to lounge
$('.lounge-link__clicker').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
if (hasClickedSmallHyun === true && hasClickedBigHyun === true && hasClickedGoldplate === true) {
$('.dialogue-4-1, .dialogue-4-1 .line, .dialogue-box').css(block);
} else {}
} else {}
})
$(".clicker-4-1").on('click', function(event) {
event.preventDefault();
$('.fade-box').fadeIn(2000);
setTimeout(function() {
window.location = $('#nextStage').attr('href');
}, 2000);
})
//close
$('.clicker-4-2').on('click', function() {
$('.dialogue-4-1, .dialogue-4-1 .line, .dialogue-box').css(none);
})
// gif animation script
//employee
let employee1 = document.querySelector('.employee1');
let employee3 = document.querySelector('.employee3');
employee1.addEventListener('click', function() {
let employeegif = function() {
setTimeout(function(){employee1.style.display = 'none';}, 120)
setTimeout(function(){employee3.style.display = 'block';}, 120)
setTimeout(function(){employee3.style.display = 'none';}, 240)
setTimeout(function(){employee1.style.display = 'block';}, 240)
}
let repeat = setInterval(employeegif, 240);
setTimeout(function() {clearInterval(repeat);}, 480)
hasClickedEmployee = true;
alertFoundAllGif()
})
//boy
let boy1 = document.querySelector('.boy1');
let boy2 = document.querySelector('.boy2');
boy1.addEventListener('click', function() {
let boygif = function() {
setTimeout(function(){boy1.style.display = 'none';}, 400)
setTimeout(function(){boy2.style.display = 'block';}, 400)
setTimeout(function(){boy2.style.display = 'none';}, 2000)
setTimeout(function(){boy1.style.display = 'block';}, 2000)
}
boygif();
hasClickedBoy = true;
alertFoundAllGif()
})
</script>
</body>
</html>