-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (54 loc) · 1.68 KB
/
index.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Peach Game</title>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="bg">
<div class="wrapper">
<div class="title_wrap"><img src="img/title.png" alt=""></div>
<div class="bg_img_wrap wrap1"><img src="img/flower1.png" alt=""></div>
<div class="bg_img_wrap wrap2"><img src="img/flower1.png" alt=""></div>
<div class="btn_wrap">
<div class="play_btn">
<img src="img/peach.png" alt="">
<span>Play</span>
</div>
<div class="howtoplay_btn">
<img src="img/peach.png" alt="">
<span>How to<br>Play</span>
</div>
</div>
</div>
<div class="howtoplay">
<h2>How to Play</h2>
<img src="img/howtoplay.jpg" alt="">
<button type="button" class="close_btn">
<span></span>
<span></span>
</button>
<a href="play.html" class="start_btn"><span>PLAY</span></a>
</div>
</div>
<script>
const playBtn=document.querySelector('.play_btn');
const howtoplayBtn=document.querySelector('.howtoplay_btn');
const howtoplayWrap=document.querySelector('.howtoplay');
const closeBtn=document.querySelector('.close_btn');
playBtn.addEventListener('click',()=>{
window.location.href='play.html';
});
howtoplayBtn.addEventListener('click',()=>{
howtoplayWrap.classList.add('active');
});
closeBtn.addEventListener('click',()=>{
howtoplayWrap.classList.remove('active');
});
</script>
</body>
</html>