-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwinery.html
More file actions
25 lines (25 loc) · 754 Bytes
/
twinery.html
File metadata and controls
25 lines (25 loc) · 754 Bytes
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
<!DOCTYPE html>
<!-- CREATED 17.10.2022 13:16-->
<html>
<head>
<?=globals.tmp_head("twinery",input)?>
<style>body{background-color:black;margin: 50px;text-align: center;}</style>
</head>
<body onload="play();" onclick="play();" onmousemove="play();" onkeydown="play();">
<button style=font-size:25px id=btn onclick="play();" onmousemove="play();">Anzeigen</button>
<video id="video" src="/files/videos/NeverGonnaGiveYouUp-480p.mp4" onclick="play();" onmousemove="play();" autoplay autobuffer loop></video>
<script>
async function play(){
const video=GetId("video");
try{
await video.play();
}catch(e){
con.log("VIDEO CANT PLAY!");
return;
}
document.getElementById("btn").style.display="none";
}
play();
</script>
</body>
</html>