-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
31 lines (28 loc) · 1.15 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>daxy.lol | Tupac</title>
<link rel="icon" href="./media/icons/2pac.jpg">
<meta property="og:title" content="daxy.lol">
<meta property="og:description" content="tuc pa ☠️">
<meta property="og:image" content="./media/2pac2x.gif">
<audio id="sound" src="./media/2pac.mp3" loop="true"></audio>
</head>
<body bgcolor="#BADA55">
<center>
<button id="songbutton" onclick="playsong()" style="display: block; size: 80px; background-color: #bada55; color: #008080;">click me</button>
</center>
<script>
function playsong() {
const sound = document.getElementById('sound');
sound.play();
document.getElementById("2pac-div").style.display = 'block'
document.getElementById("songbutton").style.display = 'none'
}
</script>
<div id="2pac-div" style="pointer-events: none; display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999;">
<img id="gif" style="object-fit:fill; width: 100%; height: 100%; pointer-events: none;" src="./media/2pac.gif" loop="false"/>
</div>
</body>
</html>