-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnew_way.html
executable file
·67 lines (56 loc) · 1.68 KB
/
new_way.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Background video with overlay image</title>
<!-- Styles for Video -->
<link href="css/video.css" rel="stylesheet">
</head>
<body>
<section class="full-size-page">
<div id="video-overlay" style="background-image:url(images/overlay.jpg);"></div>
<div class="background-video">
<div class="foreground-video">
<div id="player"></div>
</div>
</div>
</section>
<script type="text/javascript" src="https://www.youtube.com/iframe_api"></script>
<script type="text/javascript">
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
videoId: 'zFwL301vd4A',
playerVars: {
mute: 1,
autoplay: 1,
loop: 1,
controls: 0,
showinfo: 0,
autohide: 0,
enablejsapi: 1,
modestbranding: 1,
playlist: 'zFwL301vd4A',
vq: 'hd1080'
},
allowfullscreen: 1,
events: {
'onStateChange': onPlayerStateChange
}
});
}
function onPlayerStateChange(el) {
if(el.data === 1) {
jQuery('#video-overlay').hide();
}
}
</script>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/tether/tether.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>