-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (49 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="initial-scale=1, width=device-width">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
<link href="styles.css" rel="stylesheet">
<title>My Webpage</title>
<!--music-->
<audio id="bgMusic" src="music/wii.mp3" loop></audio>
<script>
var bgMusic = document.getElementById('bgMusic');
document.addEventListener("DOMContentLoaded", function() {
bgMusic.play();
bgMusic.volume = 0.25;
});
function toggleMusic() {
if (bgMusic.paused) {
bgMusic.play();
} else {
bgMusic.pause();
}
}
</script>
</head>
<body>
<!-- Music button -->
<div class="music-button">
<button onclick="toggleMusic()" class="btn btn-light rounded-circle p-2">
<svg width="24" height="24" viewBox="0 0 24 24">
<path d="M3 9v6h4l5 5V4L7 9H3z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>
</button>
</div>
<div class="center">
<h1 id="main-title">Hello, my name is Yujison</h1>
</div>
<div class="center-column">
<h3>My Hobbies are:</h3>
<h5>(click on the hobby to know more!)</h5>
<ol class="hobby-list">
<li><a href="basketball.html">Basketball</a></li>
<li><a href="video_games.html">Video games</a></li>
<li><a href="anime.html">Watch Anime</a></li>
</ol>
</div>
</body>
</html>