-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
36 lines (35 loc) · 829 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Nice meme!</title>
<style type="text/css">
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
h1 {
font-size: 5em;
margin: 0.67em 0;
text-align: center;
}
audio:not([controls]) {
display: none;
height: 0;
}
</style>
</head>
<body>
<h1>Nice meme!</h1>
<audio id="audio" src="nicememe.mp3" type="audio/mpeg" preload="auto" autoplay>
<script type="text/javascript">
// autoplay is disabled on mobile web
document.addEventListener('touchend', function handleTouch () {
document.getElementById('audio').play();
});
</script>
</body>
</html>