-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2nd_floor.html
653 lines (529 loc) · 32 KB
/
2nd_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
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
<!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/2nd_floor.css">
<link href="https://fonts.googleapis.com/css?family=Noto+Serif+KR:400,700&display=swap&subset=korean" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" 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>2층 비즈니스 센터 :: 센티멘탈 호텔</title>
</head>
<body>
<div class="fade-box"></div>
<div class="container">
<div class="dialogue-box"></div>
<div id="room-bg" class="transparent-background"></div>
<div id="reset-bg" class="transparent-background"></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__businesscenter" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__big-hyun" src="image/icon/arrow.png">
<img class="movingarrow movingarrow__elevator" src="image/icon/arrow.png">
</div>
<!-- gifs -->
<div class="clock-gif">
<img class="gif gifhover clock clock1" src="image/2nd_floor/시계1.png">
<img class="gif gifhover clock clock2" src="image/2nd_floor/시계2.png">
<img class="gif gifhover clock clock3" src="image/2nd_floor/시계3.png">
<img class="gif gifhover clock clock4" src="image/2nd_floor/시계4.png">
<img class="gif gifhover clock clock5" src="image/2nd_floor/시계5.png">
<img class="gif gifhover clock clock6" src="image/2nd_floor/시계6.png">
<img class="gif gifhover clock clock7" src="image/2nd_floor/시계7.png">
<img class="gif gifhover clock clock8" src="image/2nd_floor/시계8.png">
<img class="gif gifhover clock clock9" src="image/2nd_floor/시계9.png">
<img class="gif gifhover clock clock10" src="image/2nd_floor/시계10.png">
<img class="gif gifhover clock clock11" src="image/2nd_floor/시계11.png">
<img class="gif gifhover clock clock12" src="image/2nd_floor/시계12.png">
</div>
<div class="handshake-gif">
<img class="gif gifhover handshake handshake1" src="image/2nd_floor/악수1.png">
<img class="gif gifhover handshake handshake2" src="image/2nd_floor/악수2.png">
<img class="gif gifhover handshake handshake3" src="image/2nd_floor/악수3.png">
</div>
<div class="copier-gif">
<img class="gif gifhover copier" src="image/2nd_floor/복사기.png">
<img class="gif gifhover paper paper1" src="image/2nd_floor/복사기1.png">
<img class="gif gifhover paper paper2" src="image/2nd_floor/복사기2.png">
<img class="gif gifhover paper paper3" src="image/2nd_floor/복사기3.png">
<img class="gif gifhover paper paper4" src="image/2nd_floor/복사기4.png">
<img class="gif gifhover paper paper5" src="image/2nd_floor/복사기5.png">
<img class="gif gifhover paper paper6" src="image/2nd_floor/복사기6.png">
<img class="gif gifhover paper paper7" src="image/2nd_floor/복사기7.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">
<img class="avatar big-hyun__avatar" src="image/1st_floor_lobby/큰현.png">
<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">무사히 1층을 통과하셨군요.</p>
<p class="line top-line third-line next-line">격려의 의미로 <strong>50점</strong>을 드리겠습니다.</p>
<p class="line top-line fourth-line next-line">그럼 앞으로 이어지는 교육도 열심히 참여해 주세요~</p>
<p class="line bottom-line fifth-line four-toplines">- <span class="clicker clicker-0-1">와, 감사합니다! (클릭 시 50점 획득!)</span></p>
</div>
<div class="dialogue-box2 dialogue-0-2">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">2층에는 비즈니스 센터가 자리하고 있어요.</p>
<p class="line top-line second-line next-line">각종 강의와 행사를 가질 수 있는 <strong>강의실</strong>과 <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-0-2">(다음)</span></p>
</div>
<div class="dialogue-box2 dialogue-0-3">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line next-line">아 참, 오늘 호텔에 <strong>중요한 손님</strong>이 오신다고 해서 인사드리려 했는데,</p>
<p class="line top-line second-line next-line">아무리 찾아도 보이질 않네요.</p>
<p class="line top-line third-line next-line">아마 2층 비즈니스 센터 어딘가에 계실 것 같은데...</p>
<p class="line top-line fourth-line next-line"><span class="player-name"></span> 씨가 한번 찾아주시겠어요?</p>
<p class="line bottom-line fifth-line four-toplines">- 네, <span class="clicker clicker-0-3">물론이죠!</span></p>
</div>
<div class="dialogue-box2 dialogue-0-4">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">2층 로비에 없으신걸 보니 <strong>안쪽 어딘가</strong>로 들어가신 것 같아요. </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 bottom-line fourth-line three-toplines">- 네, <span class="clicker clicker-0-4">알겠습니다!</span></p>
</div>
</div>
<div class="receptions">
<img class="gif gifhover reception__gif" src="image/2nd_floor/직원.gif">
<div class="dialogue-box2 reception">
<h1 class="name">비즈니스 센터</h1>
<p class="line top-line first-line">비즈니스 센터에 오신 것을 환영합니다. 어디로 안내해 드릴까요?</p>
<p class="line top-line next-line" style="animation: typing 1.5s 1.5s linear backwards;">👩🏫 <span class="clicker clicker-1-1">강의실</span></p>
<p class="line top-line next-line" style="animation: typing 1.5s 1.8s linear backwards;">🤵 <span class="clicker clicker-1-2">연회장</span></p>
<p class="line top-line next-line" style="animation: typing 1.5s 2.1s linear backwards;">💻 <span class="clicker clicker-1-3">회의실 1</span>
</p>
<p class="line top-line next-line" style="animation: typing 1.5s 2.4s linear backwards;">💻 <span class="clicker clicker-1-4">회의실 2</span> </p>
<p class="line top-line next-line" style="animation: typing 1.5s 2.7s linear backwards;">💻 <span class="clicker clicker-1-5">회의실 3</span></p>
<p class="line bottom-line six-toplines" style="animation: typing 1.5s 3s linear backwards;"><span class="clicker clicker-1-6">(대화 그만하기)</span></p>
</div>
<img class="room lecture-room" src="image/2nd_floor/강의실.jpg">
<div class="dialogue-box2 lecture-room-d">
<h1 class="name">교수</h1>
<p class="line top-line first-line">"오늘은 대한민국 임시정부에 대해 알아보는 시간을 갖도록 하겠습니다.</p>
<p class="line top-line second-line">대한민국 임시정부는 1919년 4월 1일 중국 상하이에서 설립되어..."</p>
<p class="line bottom-line third-line two-toplines"><span class="clicker clicker-1-1-1">(돌아가기)</span></p>
</div>
<img class="room banquet-room" src="image/2nd_floor/연회장.jpg">
<div class="dialogue-box2 banquet-room-d">
<h1 class="name">학생회장</h1>
<p class="line top-line first-line">"자 여러분! 드디어 새 학기가 시작되었습니다. 모두 멋진 한 한기를 만들어 봅시다!</p>
<p class="line top-line second-line">그럼, 오늘 한번 달려 볼까요? 먼저 교수님의 건배사가 있겠습니다.</p>
<p class="line top-line third-line">교수님 나와주세요~!"</p>
<p class="line bottom-line third-line three-toplines"><span class="clicker clicker-1-2-1">(돌아가기)</span></p>
</div>
<img class="room meeting-room-1" src="image/2nd_floor/회의실1.jpg">
<div class="dialogue-box2 meeting-room-1-d">
<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">"아 맞다! 내가 그저께 치즈칠리치킨하고 치즈피자하고 같이 먹었는데... 진짜 핵. 꿀. 맛.</p>
<p class="line top-line fifth-line next-line">오늘... 치킨 각!?!?"</p>
<p class="line bottom-line sixth-line five-toplines"><span class="clicker clicker-1-3-1">(돌아가기)</span></p>
</div>
<img class="room meeting-room-2" src="image/2nd_floor/회의실2.jpg">
<div class="dialogue-box2 meeting-room-2-d">
<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 bottom-line fourth-line three-toplines"><span class="clicker clicker-1-4-1">(돌아가기)</span></p>
</div>
<img class="room meeting-room-3" src="image/2nd_floor/회의실3.jpg">
<div class="dialogue-box2 meeting-room-3-d">
<h1 class="name"> </h1>
<p class="line top-line first-line">"음... 링크를 눌렀을 때 페이지를 지연되게 띄우려면...</p>
<p class="line top-line second-line next-line"><span class="code">event.preventDefault</span> 함수를 써서... <span class="code">a</span> 태그의 <span class="code">href</span> 특성을 불러온 다음에...</p>
<p class="line top-line third-line next-line"><span class="code">setTimeout</span> 함수 안에 시간을 넣으면... 됐다!</p>
<p class="line top-line fourth-line next-line">그나저나 그림작가는 언제 오려나...</p>
<p class="line top-line fifth-line next-line">이제 마감이 얼마 남지 않았는데..."</p>
<p class="line bottom-line sixth-line five-toplines"><span class="clicker clicker-1-5-1">(돌아가기)</span></p>
</div>
</div>
<div class="big-hyun">
<img class="gif gifhover big-hyun__gif" src="image/2nd_floor/큰현.gif">
<img class="avatar big-hyun__avatar" src="image/1st_floor_lobby/큰현.png">
<div class="dialogue-box2 dialogue-2-0">
<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 bottom-line third-line two-toplines"><span class="clicker clicker-2-0">(확인)</span></p>
</div>
<div class="dialogue-box2 dialogue-2-1">
<h1 class="name">큰 현</h1>
<p class="line top-line first-line">목에 점이 있는 손님은 어디 있었나요?</p>
<p class="line top-line second-line"> </p>
<p class="line top-line next-line" style="animation: typing 0s 1.5s linear backwards;">☞ <span class="clicker clicker-2-1">강의실</span></p>
<p class="line top-line next-line" style="animation: typing 0s 1.5s linear backwards;">☞ <span class="clicker clicker-2-2">연회장</span></p>
<p class="line top-line next-line" style="animation: typing 0s 1.5s linear backwards;">☞ <span class="clicker clicker-2-3">회의실 1</span></p>
<p class="line top-line next-line" style="animation: typing 0s 1.5s linear backwards;">☞ <span class="clicker clicker-2-4">회의실 2</span></p>
<p class="line top-line next-line" style="animation: typing 0s 1.5s linear backwards;">☞ <span class="clicker clicker-2-5">회의실 3</span></p>
</div>
<div class="dialogue-box2 dialogue-2-2">
<h1 class="name">큰 현</h1>
<p id="wrong1" class="line top-line first-line">음... 강의실에 있진 않은 것 같은데... (-10점..)</p>
<p id="wrong2" class="line top-line first-line">음... 연회장에 있진 않은 것 같은데... (-10점..)</p>
<p id="wrong3" class="line top-line first-line">음... 회의실 1에 있진 않은 것 같은데... (-10점..)</p>
<p id="right" class="line top-line first-line">아, 회의실 2에 계셨군요...! (10점 획득!)</p>
<p id="wrong4" class="line top-line first-line">음... 회의실 3에 있진 않은 것 같은데... (-10점..)</p>
<p id="result-wrong" class="line top-line second-line">아무래도 제가 직접 가서 찾아봐야 할것 같군요. <span class="player-name"></span> 씨는 먼저 3층을 둘러보고 계세요.</p>
<p id="result-right" class="line top-line second-line">저는 회의실 2로 가서 인사를 드리고 올 테니, <span class="player-name"></span> 씨는 먼저 3층을 둘러보고 계세요.</p>
<p class="line bottom-line third-line two-toplines">- 네, <span class="clicker clicker-2-6">알겠습니다.</span></p>
</div>
</div>
<div class="lounge-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-3-1">
<h1 class="name"> </h1>
<p class="line top-line first-line">3층으로 올라가시겠습니까?</p>
<p class="line bottom-line fast-yes-line two-toplines">- <a id="nextStage" href="3rd_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, .big-hyun__avatar').show();}, 7000);
}
$('.fade-box').fadeOut(1000);
$('.preloader').show();
let block = {display: 'block'};
let none = {display: 'none'};
let hasClickedLectureRoom = false;
let hasClickedBanquetRoom = false;
let hasClickedMeetingRoom1 = false;
let hasClickedMeetingRoom2 = false;
let hasClickedMeetingRoom3 = false;
let hasSolvedQuestion = false;
let hasClickedElevator = false;
let hasClickedClock = false;
let hasClickedHandshake = false;
let hasClickedCopier = false;
function alertFoundAllGif() {
if (hasClickedClock=== true && hasClickedHandshake === true && hasClickedCopier === true) {
$('.foundallgif, .foundallgif .line, .dialogue-box').show();
alertFoundAllGif = function(){};
}
}
//quick view
$('.dialogue-0-1, .dialogue-0-2, .dialogue-0-3, .dialogue-0-4').click(function() {
$(event.currentTarget).children().css('animation', 'none');})
// gif
// found all gifs
$('.clicker-100').click(function() {
$('.foundallgif, .foundallgif .line, .dialogue-box').hide();
addScore(10);
})
// clock
$('.clock1').on('click', function() {
hasClickedClock = true;
alertFoundAllGif();
let t = 100;
setTimeout(function(){$('.clock1').hide();}, t);
setTimeout(function(){$('.clock2').show();}, t);
setTimeout(function(){$('.clock2').hide();}, t*2);
setTimeout(function(){$('.clock3').show();}, t*2);
setTimeout(function(){$('.clock3').hide();}, t*3);
setTimeout(function(){$('.clock4').show();}, t*3);
setTimeout(function(){$('.clock4').hide();}, t*4);
setTimeout(function(){$('.clock5').show();}, t*4);
setTimeout(function(){$('.clock5').hide();}, t*5);
setTimeout(function(){$('.clock6').show();}, t*5);
setTimeout(function(){$('.clock6').hide();}, t*6);
setTimeout(function(){$('.clock7').show();}, t*6);
setTimeout(function(){$('.clock7').hide();}, t*7);
setTimeout(function(){$('.clock8').show();}, t*7);
setTimeout(function(){$('.clock8').hide();}, t*8);
setTimeout(function(){$('.clock9').show();}, t*8);
setTimeout(function(){$('.clock9').hide();}, t*9);
setTimeout(function(){$('.clock10').show();}, t*9);
setTimeout(function(){$('.clock10').hide();}, t*10);
setTimeout(function(){$('.clock11').show();}, t*10);
setTimeout(function(){$('.clock11').hide();}, t*11);
setTimeout(function(){$('.clock12').show();}, t*11);
setTimeout(function(){$('.clock12').hide();}, t*12);
setTimeout(function(){$('.clock1').show();}, t*12);
})
// handshake
$('.handshake1').on('click', function() {
hasClickedHandshake = true;
alertFoundAllGif()
let t = 150;
let handshakegif = function() {
setTimeout(function(){$('.handshake1').hide();}, t);
setTimeout(function(){$('.handshake2').show();}, t);
setTimeout(function(){$('.handshake2').hide();}, t*2);
setTimeout(function(){$('.handshake3').show();}, t*2);
setTimeout(function(){$('.handshake3').hide();}, t*3);
setTimeout(function(){$('.handshake1').show();}, t*3);
};
let repeat = setInterval(handshakegif, t*3);
setTimeout(function() {clearInterval(repeat);}, t*3*3);
});
// copier
$('.copier').on('click', function() {
hasClickedCopier = true;
alertFoundAllGif()
let t = 150;
setTimeout(function(){$('.paper1').hide();}, t);
setTimeout(function(){$('.paper2').show();}, t);
setTimeout(function(){$('.paper2').hide();}, t*2);
setTimeout(function(){$('.paper3').show();}, t*2);
setTimeout(function(){$('.paper3').hide();}, t*3);
setTimeout(function(){$('.paper4').show();}, t*3);
setTimeout(function(){$('.paper4').hide();}, t*4);
setTimeout(function(){$('.paper5').show();}, t*4);
setTimeout(function(){$('.paper5').hide();}, t*5);
setTimeout(function(){$('.paper6').show();}, t*5);
setTimeout(function(){$('.paper6').hide();}, t*6);
setTimeout(function(){$('.paper7').show();}, t*6);
setTimeout(function(){$('.paper7').hide();}, t*20);
})
// start dialogue
$('.clicker-0-1').click(function(){
$('.dialogue-0-1, .dialogue-0-1 .line').hide();
$('.dialogue-0-2, .dialogue-0-2 .line').show();
addScore(50);
})
$('.clicker-0-2').click(function(){
$('.dialogue-0-2, .dialogue-0-2 .line').hide();
$('.dialogue-0-3, .dialogue-0-3 .line').show();
})
$('.clicker-0-3').click(function(){
$('.dialogue-0-3, .dialogue-0-3 .line').hide();
$('.dialogue-0-4, .dialogue-0-4 .line').show();
})
$('.clicker-0-4').click(function(){
$('.dialogue-0-4, .dialogue-0-4 .line, .big-hyun__avatar, .dialogue-box').hide();
$('.movingarrow__businesscenter').show();
})
//reception
//quick view
$('.reception, .lecture-room-d, .banquet-room-d, .meeting-room-1-d, .meeting-room-2-d, .meeting-room-3-d').click(function() {
$(event.currentTarget).children().css('animation', 'none')
})
$('.reception__gif').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
$('.reception, .reception .line, .dialogue-box').show();
$('.movingarrow__businesscenter').hide();
} else {}
})
//close
$('.clicker-1-6').on('click', function() {
$('.reception, .reception .line, .dialogue-box').hide();
})
$('.clicker-2-1, .clicker-2-2, .clicker-2-3, .clicker-2-4, .clicker-2-5').click(function(){
$(this).css('color', '#551A8B');
})
//lecture room
$('.clicker-1-1').on('click', function() {
hasClickedLectureRoom = true;
$('#room-bg, .lecture-room, .lecture-room-d, .lecture-room-d .line').show();
$('.reception, .reception .line').hide();
})
//close
$('.clicker-1-1-1').on('click', function() {
$('.lecture-room, .lecture-room-d, .lecture-room-d .line, #room-bg').hide();
$('.reception, .reception .line').show();
if (hasClickedLectureRoom === true && hasClickedBanquetRoom === true && hasClickedMeetingRoom1 === true && hasClickedMeetingRoom2 === true && hasClickedMeetingRoom3 === true && hasSolvedQuestion === false) {
$('.movingarrow__big-hyun').show();
}
})
//banquet room
$('.clicker-1-2').on('click', function() {
hasClickedBanquetRoom = true;
$('.banquet-room, .banquet-room-d, .banquet-room-d .line, #room-bg').show();
$('.reception, .reception .line').hide();
})
//close
$('.clicker-1-2-1').on('click', function() {
$('.banquet-room, .banquet-room-d, .banquet-room-d .line, #room-bg').hide();
$('.reception, .reception .line').show();
if (hasClickedLectureRoom === true && hasClickedBanquetRoom === true && hasClickedMeetingRoom1 === true && hasClickedMeetingRoom2 === true && hasClickedMeetingRoom3 === true && hasSolvedQuestion === false) {
$('.movingarrow__big-hyun').show();
}
})
//meeting-room-1
$('.clicker-1-3').on('click', function() {
hasClickedMeetingRoom1 = true;
$('.meeting-room-1, .meeting-room-1-d, .meeting-room-1-d .line, #room-bg').show();
$('.reception, .reception .line').hide();
})
//close
$('.clicker-1-3-1').on('click', function() {
$('.meeting-room-1, .meeting-room-1-d, .meeting-room-1-d .line, #room-bg').hide();
$('.reception, .reception .line').show();
if (hasClickedLectureRoom === true && hasClickedBanquetRoom === true && hasClickedMeetingRoom1 === true && hasClickedMeetingRoom2 === true && hasClickedMeetingRoom3 === true && hasSolvedQuestion === false) {
$('.movingarrow__big-hyun').show();
}
})
//meeting-room-2
$('.clicker-1-4').on('click', function() {
hasClickedMeetingRoom2 = true;
$('.meeting-room-2, .meeting-room-2-d, .meeting-room-2-d .line, #room-bg').show();
$('.reception, .reception .line').hide();
})
//close
$('.clicker-1-4-1').on('click', function() {
$('.meeting-room-2, .meeting-room-2-d, #room-bg').hide();
$('.reception, .reception .line').show();
if (hasClickedLectureRoom === true && hasClickedBanquetRoom === true && hasClickedMeetingRoom1 === true && hasClickedMeetingRoom2 === true && hasClickedMeetingRoom3 === true && hasSolvedQuestion === false) {
$('.movingarrow__big-hyun').show();
}
})
//meeting-room-3
$('.clicker-1-5').on('click', function() {
hasClickedMeetingRoom3 = true;
$('.meeting-room-3, .meeting-room-3-d, .meeting-room-3-d .line, #room-bg').show();
$('.reception, .reception .line').hide();
})
//close
$('.clicker-1-5-1').on('click', function() {
$('.meeting-room-3, .meeting-room-3-d, .meeting-room-3-d .line, #room-bg').hide();
$('.reception, .reception .line').show();
if (hasClickedLectureRoom === true && hasClickedBanquetRoom === true && hasClickedMeetingRoom1 === true && hasClickedMeetingRoom2 === true && hasClickedMeetingRoom3 === true && hasSolvedQuestion === false) {
$('.movingarrow__big-hyun').show();
}
})
// big-hyun
//quick view
$('.dialogue-2-0, .dialogue-2-1, .dialogue-2-2').click(function() {
$(event.currentTarget).children().css('animation', 'none');})
$('.big-hyun__gif').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
if (hasClickedLectureRoom === true && hasClickedBanquetRoom === true && hasClickedMeetingRoom1 === true && hasClickedMeetingRoom2 === true && hasClickedMeetingRoom3 === true) {
$('.movingarrow__big-hyun').hide();
$('.big-hyun__avatar, .dialogue-2-1, .dialogue-2-1 .line, .dialogue-box').show();
} else {
$('.big-hyun__avatar, .dialogue-2-0, .dialogue-2-0 .line, .dialogue-box').show();
}
} else {}
})
//close
$('.clicker-2-0').click(function(){
$('.big-hyun__avatar, .dialogue-2-0, .dialogue-2-0 .line, .dialogue-box').hide();
})
$('.clicker-2-1').click(function(){
$('.dialogue-2-1, .dialogue-2-1 .line').hide();
$('.dialogue-2-2, .dialogue-2-2 #result-wrong, .dialogue-2-2 .bottom-line, #wrong1').show();
addScore(-10);
})
$('.clicker-2-2').click(function(){
$('.dialogue-2-1, .dialogue-2-1 .line').hide();
$('#wrong2').show();
$('.dialogue-2-2, .dialogue-2-2 #result-wrong, .dialogue-2-2 .bottom-line').show();
addScore(-10);
})
$('.clicker-2-3').click(function(){
$('.dialogue-2-1, .dialogue-2-1 .line').hide();
$('#wrong3').show();
$('.dialogue-2-2, .dialogue-2-2 #result-wrong, .dialogue-2-2 .bottom-line').show();
addScore(-10);
})
$('.clicker-2-4').click(function(){
$('.dialogue-2-1, .dialogue-2-1 .line').hide();
$('#right').show();
$('.dialogue-2-2, .dialogue-2-2 #result-right, .dialogue-2-2 .bottom-line').show();
addScore(10);
})
$('.clicker-2-5').click(function(){
$('.dialogue-2-1, .dialogue-2-1 .line').hide();
$('#wrong4').show();
$('.dialogue-2-2, .dialogue-2-2 #result-wrong, .dialogue-2-2 .bottom-line').show();
addScore(-10);
})
//close
$('.clicker-2-6').click(function(){
$('.dialogue-2-2, .dialogue-2-2 .line, .big-hyun__gif, .big-hyun__avatar, .dialogue-box, .movingarrow__big-hyun').hide();
$('.movingarrow__elevator').show();
hasSolvedQuestion = true;
})
// elevator
$('.button-off').on('click', function() {
if (document.querySelector('.dialogue-box').style.display === 'none') {
if (hasClickedLectureRoom === true && hasClickedBanquetRoom === true && hasClickedMeetingRoom1 === true && hasClickedMeetingRoom2 === true && hasClickedMeetingRoom3 === true && hasSolvedQuestion === true) {
$('.movingarrow__elevator').hide();
$('.button-on').show();
$('.dialogue-3-1, .dialogue-3-1 .line, .dialogue-box').show();
$('.alarm-on').show();
hasClickedElevator = true;
$('#elevatorBellRing')[0].play();
} else {}
} else {}
})
//quick view
$('.dialogue-3-1').click(function() {
$(event.currentTarget).children().removeClass('first-line fast-yes-line fast-no-line');
})
// close
$('.clicker-3-2').click(function(){
$('.button-on').hide();
$('.dialogue-3-1, .dialogue-3-1 .line, .dialogue-box, .alarm-on').hide();
})
$('.clicker-3-1').click(function(){
event.preventDefault();
$('.fade-box').fadeIn(2000);
setTimeout(function() {
window.location = $('#nextStage').attr('href');
}, 2000);
})
</script>
</body>
</html>