-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (62 loc) · 2.1 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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>I love️ it! Ship it! soundboard</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #f7fafc;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.wrapper {
display: flex;
color: #4a5568;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 8rem;
height: 100vh;
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
align-content: center;
}
p {
position: absolute;
top: 0;
font-size: 1rem;
color: #718096;
}
.row {
cursor: pointer;
user-select: none;
flex: 1;
display: flex;
align-items: flex-end;
}
.row:last-child{
align-items: flex-start;
}
.audio {
position: absolute;
left: 0;
top: 0;
display: none;
}
</style>
</head>
<body>
<div class="wrapper">
<p>Click the icons to play the sounds</p>
<div class="row" onclick="document.getElementById('loveit').play()">❤️ it!</div>
<div class="row" onclick="document.getElementById('shipit').play()">🛳 it!</div>
</div>
<div class="audio">
<audio id="loveit">
<source src="iloveit.mp3">
</audio>
<audio id="shipit">
<source src="shipit.mp3">
</audio>
</div>
</body>
</html>