-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpoppoppoppop.html
32 lines (31 loc) · 1.06 KB
/
poppoppoppop.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>pop pop pop pop - webm from shampooh</title>
<script src="https://use.typekit.net/asw3wve.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<link type="text/css" rel="stylesheet" href="webbums.css">
</head>
<body onLoad="autoscaleVideo()">
<center>
<h1>pop pop pop pop</h1>
<button type="button" onMouseUp="nativeRes()">Native Res</button> <button type="button" onMouseUp="autoscaleVideo()">Autoscale Video</button><br /><br />
<video src="https://my.mixtape.moe/jsvarf.webm" height="720" id="webmLoop" autoplay controls loop />
</center>
<script>
function autoscaleVideo(){
if (window.innerHeight < window.innerWidth) {
document.getElementById("webmLoop").height = ( window.innerHeight - 100 )
} else {
document.getElementById("webmLoop").width = window.innerWidth - 40;
}
window.scrollTo(0,document.body.scrollHeight);
}
function nativeRes(){
document.getElementById("webmLoop").height = 720
window.scrollTo(0,document.body.scrollHeight);
}
</script>
</body>
</html>