-
Notifications
You must be signed in to change notification settings - Fork 1
/
music.html
48 lines (35 loc) · 2.25 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
<!DOCTYPE html>
<html>
<head>
<title>Music Player</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>
<a href="main.html"><button type="button" class="btn btn-default btn-lg">MENU</button></a>
</p>
<br />
<div class="media">
<div id="spotify" onclick="addSpotifyPlayer()"></div>
<div id="radio" onclick="addRadio()"></div>
</div>
<script type="">
var spotify = document.getElementById("spotify");
var radio = document.getElementById("radio");
spotify.innerHTML = '<button type="button" class="btn btn-default btn-lg main"><figure><img src="https://image.flaticon.com/icons/png/512/49/49097.png" class="logo"/><figcaption>SPOTIFY</figcaption></figure></button>';
radio.innerHTML = '<button type="button" class="btn btn-default btn-lg main"><figure><img src="https://cdn1.iconfinder.com/data/icons/social-productivity-line-art-4/128/broadcast-512.png" class="logo"/><figcaption>RADIO</figcaption></figure></button>';
function addSpotifyPlayer() {
spotify.innerHTML = '<iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Aspotify%3Aplaylist%3A3oAhVve3NUD2lf3IUH9Yzh" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>';
radio.innerHTML = '<button type="button" class="btn btn-default btn-lg main"><figure><img src="https://cdn1.iconfinder.com/data/icons/social-productivity-line-art-4/128/broadcast-512.png" class="logo"/><figcaption>RADIO</figcaption></figure></button>';
}
function addRadio() {
radio.innerHTML = '<audio src="http://new-webstream.wmfo.org/;" controls></audio>';
spotify.innerHTML = '<button type="button" class="btn btn-default btn-lg main"><figure><img src="https://image.flaticon.com/icons/png/512/49/49097.png" class="logo"/><figcaption>SPOTIFY</figcaption></figure></button>';
}
</script>
</body>
</html>