-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
133 lines (128 loc) · 6.74 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
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Radio Player</title>
<link rel="icon" type="image/png" href="img/cover.png" />
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/animate.css">
<link rel="stylesheet" href="css/style.css">
<link rel="manifest" href="/manifest.json">
</head>
<body>
<div class="cover-site">
<div id="bgCover"></div>
<div class="bg-mask"></div>
</div>
<main>
<section id="player">
<div class="container">
<div class="row web-player">
<div class="col-12 col-lg-10">
<div class="row">
<div class="col-12 col-md-5">
<div class="cover-album">
<div id="currentCoverArt"></div>
<div class="watermark"></div>
</div>
</div>
<div class="col-12 ml-md-auto col-md-6">
<div class="row">
<div class="col-12">
<div class="info-current-song">
<h2 id="currentSong" class="current-song text-uppercase">Música</h2>
<h3 id="currentArtist" class="current-artist text-captalize">Artista</h3>
</div>
</div>
<div class="col-12">
<div class="row">
<div class="play-pause col-12 col-md-6 text-center">
<button type="button" class="btn-play" onclick="togglePlay()">
<i id="playerButton" class="fa fa-play"></i> <span id="buttonPlay">PLAY</span>
</button>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6 text-center">
<div class="row volume-control">
<div class="volume-icon col-1">
<i class="fa fa-volume-up"></i>
</div>
<div class="volume-slide col-10 text-center">
<input type="range" id="volume" step="1" min="0" max="100" value="80" onchange="updateVolume(this.value)">
<label for="volume">Volume:</label>
<span id="volIndicator">80</span> %
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6 text-center call-lyrics">
<a href="#" class="lyrics" data-target="#modalLyrics">Letra da música</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row historic hidden">
<div class="col-12">
<h2>MÚSICAS RECENTES</h2>
<div class="row" id="historicSong">
<article class="col-12 col-md-6">
<div class="cover-historic" id="cover-historic-1"></div>
<div class="music-info">
<div class="song">Música</div>
<div class="artist">Artista</div>
</div>
</article>
<article class="col-12 col-md-6">
<div class="cover-historic" id="cover-historic-2"></div>
<div class="music-info">
<div class="song">Música</div>
<div class="artist">Artista</div>
</div>
</article>
</div>
</div>
</div>
</div>
</section>
</main>
<div class="modal fade" id="modalLyrics" tabindex="-1" role="dialog" aria-labelledby="lyricsSong" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="lyricsSong">Letra</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Fechar">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="lyric"></div>
<div class="modal-footer">
<button type="button" class="btn btn-success" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js')
.then(function(registration) {
console.log('Service Worker registrado com sucesso:', registration);
}, function(err) {
console.log('Falha ao registrar o Service Worker:', err);
});
});
}
</script>
</body>
</html>