-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (74 loc) · 2.33 KB
/
Copy pathindex.html
File metadata and controls
83 lines (74 loc) · 2.33 KB
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
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>Presko Fan</title>
<style>
body {
margin: 0
}
#content {
position: absolute;
top: 0;
padding: 30px;
color: #FFF;
text-shadow: #000 2px 2px;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
background-color: rgba(0, 0, 0, .75);
}
.videoContainer {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.videoDiv {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
iframe {
/* optional */
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="videoDiv" class="videoDiv">
<iframe class="videoContainer__video" width="1920" height="1080" src="https://www.youtube.com/embed/XEfDYMngJeE?t=6m33s&modestbranding=1&autoplay=1&controls=0&fs=0&loop=1&rel=0&showinfo=0&disablekb=1&playlist=PLZ76asJNhZqETvrDLplbk3oJCwmJuaVh6&mute=1"
frameborder="0" autoplay="true" muted="true"></iframe>
</div>
<div id="content">
<h1 style="font-size:5em">Blockchain Technologies</h1>
<h2>Coming soon</h2>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function () {
$('#videoDiv').muted = true;
$('#video').css({ width: $(window).innerWidth() + 'px', height: $(window).innerHeight() + 'px' });
$(window).resize(function () {
$('#video').css({ width: $(window).innerWidth() + 'px', height: $(window).innerHeight() + 'px' });
});
});
(function () {
var vid = document.getElementById("videoDiv");
vid.muted = true;
})();
</script>
</body>
</html>