-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
36 lines (32 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en" manifest="offlinecache.manifest">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Coderbunker Video</title>
</head>
<body style="background:#000;">
<video loop id='video' style="position:fixed;left:0;top:0;width:100vw;height: 100vh;" preload="auto">
<source src="start.mp4" type="video/mp4">
</video>
<script>
var video = document.getElementById("video");
(function () {
video.play();
goFullscreen("video");
})();
function goFullscreen(id) {
var element = document.getElementById(id);
if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
} else if (element.msRequestFullScreen) {
element.msRequestFullScreen();
}
}
</script>
</body>
</html>