-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (48 loc) · 1.66 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
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<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>Mini Music Wesbite</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="navbar">
<img src="media/logo1.png" class="logo" alt="logo">
<ul>
<li><a href="#">Again by Yui <span> (Fullmetal Alchemist Brotherhood's Opening Song)</span> </a></li>
<!-- <li><a href="#">ABOUT</a></li>
<li><a href="#">SPECIFICATIONS</a></li>
<li><a href="#">PRODUCTS</a></li>
<li><a href="#">CONNECT</a></li> -->
</ul>
</div>
<div class="content">
<div class="left-col">
</div>
<div class="right-col">
<p>Click Here To Listen</p>
<img src="media/play5.png" alt="" id="icon">
</div>
</div>
</div>
<audio id="mysong">
<source src="media/Again.mp3" type="audio/mp3">
</audio>
<script>
var mysong = document.getElementById("mysong");
var icon = document.getElementById("icon");
icon.onclick = function(){
if(mysong.paused){
mysong.play();
icon.src = "media/pause5.png";
}else{
mysong.pause();
icon.src = "media/play5.png";
}
}
</script>
</body>
</html>