-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsource code for MARSHMELLO website.
62 lines (51 loc) · 1.26 KB
/
source code for MARSHMELLO website.
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>
<title> Marshmello tribute.</title>
<style>
body {
background-color:black ;
}
h1 {
color: white;
text-align: center;
font-family:serif;
font-size: 50px;
}
p {
color:white;
font-family: verdana;
font-size: 21.5px;
text-align: center;
}
button {
font-family:Papyrus;
text-align: center;
}
img { padding-left: 10;
}
iframe { text-align: center;
}
</style>
<h1> Tribute to Marshmello. </h1>
<audio id="myAudio">
<source src="horse.ogg" type="audio/ogg">
<source src="https://codehs.com/uploads/52790c2b33a3db3de7cd9130a9c7085e" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<p>Click the buttons to play or pause the song.</p>
<button onclick="playAudio()" type="button">Start song!</button>
<button onclick="pauseAudio()" type="button">Pause song!</button>
<script>
var x = document.getElementById("myAudio");
function playAudio() {
x.play();
}
function pauseAudio() {
x.pause();
}
</script>
<p></p>
<iframe src="https://giphy.com/embed/Q5vOsoloXG5vk69QyO" width="400" height="480" frameBorder="0" class="giphy-embed" allowFullscreen></iframe><p><a href="https://giphy.com/gifs/marshmello-marshmallow-mello-happier-Q5vOsoloXG5vk69QyO"></a></p>
</iframe>
</body>
</html>