-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathintro.html
45 lines (43 loc) · 1.53 KB
/
intro.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
<!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/intro.css" />
</head>
<body>
<div class="container" id="app" @click="addIndex">
<div class="scroll-guide">
<img src="./photo/icons/bidi-arrow.svg" alt="bidirection arrow icon" />
화면을 좌우로 움직여보세요
</div>
<div class="intro" v-for="(story, index) in stories" v-if="index === activeIndex">
<div class="main">
<img
v-bind:src="'./photo/' + story.imageUrl + '.jpeg'"
class="main-image"
@load="loadFunc"
/>
<div class="main-icon"></div>
</div>
<div class="chat"><span class="chat-text"></span></div>
</div>
</div>
<!-- <div class="skip-button" @click.stop="skipIntro()">Skip</div> -->
<script>
document.addEventListener("DOMContentLoaded", () => {
const background = new Audio("./sound/background.mp3");
backgroundMusicPlay(background);
});
function backgroundMusicPlay(background) {
background.play();
background.loop = true;
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="./js/intro.js"></script>
</body>
</html>