-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcrong.html
62 lines (59 loc) · 2.66 KB
/
crong.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
<!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" />
<title>시험지를 훔쳤다 - 마스터 책상</title>
<link rel="stylesheet" href="./css/crong.css" />
</head>
<body>
<div class="container" id="app">
<div class="mini-map">
<div class="crong inner" onclick="window.location.href='./crong.html';">
<span class="inner-text">마스터<br />책상</span>
</div>
<div class="front-end inner" onclick="window.location.href='./front.html';">
<span class="inner-text">프론트<br />자리</span>
</div>
<div class="class-room inner" onclick="window.location.href='./room.html';">
<span class="inner-text">강의실<br />자리</span>
</div>
</div>
<div class="main">
<img src="./photo/crong.jpeg" class="main-image" />
<div @click="activeChat('\'최저임금\'에 대한 책을 읽고 계시는군.')" class="desk info"></div>
<div @click="activeChat('가방 안에는 아무것도 없다.')" class="bag info"></div>
<div
@click="activeChat('서랍이 잠겨있다. 자물쇠를 풀려면 문제를 맞혀야 할 것 같다.')"
class="cabinet info"
></div>
<div @click="activeChat('...윽. 저건 만지고 싶지 않다.')" class="under info"></div>
<div @click="openModal" class="lock"></div>
</div>
<div class="chat" v-show="showChat"><span class="chat-text"></span></div>
<div class="modal" v-if="showModal" @click="closeModal">
<div class="modal-body" @click.stop :class="{'modal-body-wrong': wrongAnswer}">
<button class="modal-btn-close" @click="closeModal">x</button>
<div class="modal-question" v-for="question in questions">
<label class="modal-question-label">{{ question.question }}</label>
<input type="text" class="modal-question-input" v-model="question.input" />
</div>
<button class="modal-btn-submit" @click="submitAnswer">열기</button>
</div>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", (_) => {
const footStepSound = new Audio("./sound/footStep.mp3");
footStepSoundPlay(footStepSound);
});
function footStepSoundPlay(footStepSound) {
footStepSound.play();
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="./js/rooms.js"></script>
</body>
</html>