-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (53 loc) · 1.27 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html>
<title>It starts...</title>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-25975548-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-25975548-1');
</script>
</head>
<body>
<style>
html, body {
background: #000;
}
video {
width: 100%;
}
.flex {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
@media (min-width: 768px) {
.flex-center {
max-width: 50%;
flex: 1;
}
}
</style>
<div class='flex'>
<div class='flex-center'>
<video>
<source src="it-starts.mkv" type="video/mp4" autoplay>
</video>
</div>
</div>
<script>
var events = ['click', 'mouseover', 'touchstart'];
events.forEach(function(evname) {
document.addEventListener(evname, function() {
var elem = document.querySelector("video");
elem.play();
});
});
</script>
</body>
</html>