-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMusic.html
142 lines (113 loc) · 5.59 KB
/
Music.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<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">
<!-- <link rel="stylesheet" href="Bootstrap-5.0.0-Home/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="CSS Proyect/Music.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="images/Extras/BrawlStars-Icon_3.png" type="image/x-icon">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Brawl Stars Music</title>
</head>
<body>
<!----------------------- Scroll To Top Button --------------------------->
<div class="scrollTop" onclick="scrollToTop();"></div>
<!----------------------- Scroll Bar ------------------------------------->
<div id="progressBar"></div>
<div id="scrollPath"></div>
<div class="wrapper">
<div class="container">
<header>
<h1>Brawl Stars PlayList</h1>
<p>Muy buenas brawlfan! Soy el administrador Royal, y aquí te traigo la mejor biblioteca de música de Brawl Stars que jamás habías visto! Prueba a escuchar alguna canción, y si te gusta mucho puedes descargarla.</p>
<nav>
<ul class="left">
<li><a href="#">Recently added</a></li>
<li><a href="#">Top pop</a></li>
<li><a href="#">Best of the year</a></li>
<li><a href="#">Highly recommand</a></li>
</ul>
<ul class="right">
<li><a href="#">About</a></li>
<li><a href="#">Request</a></li>
<li><a href="#">Contact</a></li>
<li class="autoplay_btn"><a href="#">
<label>
<h5>AUTOPLAY</h5>
<input type="checkbox">
<span></span>
</label>
</a></li>
</ul>
</nav>
</header>
<div class="body_content">
<div class="title">
<span></span>
<span>TITLE</span>
<span>ARTIST</span>
<span>GENRE</span>
<span>DURATION</span>
<span></span>
<span></span>
</div>
<div class="list">
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- <script src="popper/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script> -->
<!-- <script src="Bootstrap-5.0.0-Home/js/bootstrap.min.js"></script> -->
<script src="JS Proyect/Data.js"></script>
<script src="JS Proyect/Music.js"></script>
<!---------------------- Scroll To Top Button ------------------------>
<script type="text/javascript">
window.addEventListener('scroll', function(){ //para definir la altura a la que quiero que aparezca el botón
var scroll = document.querySelector('.scrollTop');
scroll.classList.toggle("active", window.scrollY > 500)
});
function scrollToTop(){
window.scrollTo({
top: 0,
behavior: 'smooth'
});
}
</script>
<!-- -------------------- Scroll Bar ---------------------------------->
<script type="text/javascript">
let progress = document.getElementById('progressBar');
let totalHeight = document.body.scrollHeight - window.innerHeight;
window.onscroll = function(){
let progressHeight = (window.pageYOffset / totalHeight) * 100;
progress.style.height = progressHeight + "%";
}
</script>
<!-- -------------------- Full Screen mode ------------------ -->
<script>
function getFullscreenElement(){
return document.fullscreenElement
|| document.webkitFullscreenElement
|| document.mozFullscreenElement
|| document.msFullscreenElement;
}
function toggleFullscreen(){
if(getFullscreenElement()){
document.exitFullscreen();
}else{
document.documentElement.requestFullscreen().catch(console.log);
// document.getElementById("#").requestFullscreen().catch(console.log); //para que se active clickeando en un solo elemento
}
}
document.addEventListener("dblclick", () => {
toggleFullscreen();
});
document.addEventListener("fullscreenchange", () => {
console.log("full screen changed");
});
</script>
</body>
</html>