-
Notifications
You must be signed in to change notification settings - Fork 1
/
国风毒霸姬.html
84 lines (77 loc) · 2.18 KB
/
国风毒霸姬.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>国风毒霸姬</title>
</head>
<body>
<!--Full screen loop video-->
<div class="container" id="container">
<video autoplay loop muted>
<source src="vids/国风毒霸姬_x264.mp4" type="video/mp4">
</video>
</div>
<style>
/**
Responsive video fullscreen
*/
video {
width: 100%;
height: auto;
}
.container {
/** Full page*/
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: rgb(255, 255, 255);
/** Center video*/
display: flex;
justify-content: center;
align-items: center;
}
body {
/** No select*/
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/** No content menu*/
-webkit-touch-callout: none;
-webkit-user-drag: none;
/** No right click*/
-webkit-context-menu: none;
/** No scroll*/
overflow: hidden;
}
</style>
<script>
// On click, set full screen
document.getElementById("container").addEventListener("click", function () {
if (this.requestFullscreen) {
this.requestFullscreen();
} else if (this.mozRequestFullScreen) {
this.mozRequestFullScreen();
} else if (this.webkitRequestFullscreen) {
this.webkitRequestFullscreen();
} else if (this.msRequestFullscreen) {
this.msRequestFullscreen();
}
});
</script>
<!--prevent tiny pause when movies loop-->
<!--
<script>
var vid = document.getElementsByTagName("video")[0];
vid.addEventListener('ended', function () {
this.currentTime = 0;
this.play();
}, false);
</script>
-->
</body>
</html>