-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
127 lines (115 loc) · 4.54 KB
/
index.html
File metadata and controls
127 lines (115 loc) · 4.54 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>📺 Hunted By Elephants - Music Videos</title>
<meta name="description" content="Hunted by Elephants music video background">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/228006f19a.js" crossorigin="anonymous"></script>
<style>
html, body {
font-family: 'Lato', sans-serif;
color: #1d1d1d;
padding: 0px;
margin: 0px;
}
.example-marquee {
position: relative;
}
.content {
display: table;
width: 100%;
min-height: 100vh;
z-index: 1;
position: relative;
}
.content .inner {
display: table-cell;
vertical-align: middle;
text-align: center;
padding-left: 16px;
padding-right: 16px;
}
.content .inner h1,
.content .inner h2 {
color: white;
text-shadow: 0px 1px 3px rgba(0,0,0,0.5);
}
.content .inner h1 {
font-size: 62px;
}
.video-background-controls button {
font-size: 32px;
display: inline-block;
padding: 0px;
margin: 0px;
height: 32px;
width: 32px;
border-radius: 16px;
line-height: 32px;
border: none;
background: none;
-webkit-appearance: none;
color: white;
filter: drop-shadow(0px 0px 1px black);
cursor: pointer;
opacity: 1;
transition: all 250ms ease-in-out;
margin-left: 10px;
}
.video-background-controls button:hover {
opacity: 0.5;
}
iframe {
transition: opacity 500ms ease-in-out;
transition-delay: 250ms;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="jquery.youtube-background.js?v=1.0.8"></script>
</head>
<body>
<div class="container">
<main>
<div class="example-marquee">
<div id="ytbg" data-ytbg-fade-in="true" data-youtube="https://www.youtube.com/watch?v=B3MaULSA3fs"></div>
<div class="content">
<div class="inner">
<h1>Let Me Be (Official Music Video)</h1>
<h2>Hunted By Elephants</h2>
</div>
</div>
</div>
<div class="example-marquee">
<div id="ytbg2" data-ytbg-mute-button="true" data-ytbg-play-button="true" data-ytbg-start-at="10" data-ytbg-end-at="16" data-youtube="https://www.youtube.com/watch?v=wwDIYKy-XAI"></div>
<div class="content">
<div class="inner">
<h1>Carry On (Official Music Video)</h1>
<h2>Hunted By Elephants</h2>
</div>
</div>
</div>
<div class="example-marquee">
<div id="ytbg3" data-ytbg-mute-button="true" data-ytbg-play-button="true" data-ytbg-start-at="10" data-ytbg-end-at="16" data-youtube="https://www.youtube.com/watch?v=zWuhY4gOUeI"></div>
<div class="content">
<div class="inner">
<h1>Keep on Giving Me Loving (Official Music Video)</h1>
<h2>Hunted By Elephants</h2>
</div>
</div>
</div>
<iframe src="https://open.spotify.com/embed/artist/7uqY8LxecOjRaGmaRnRnXT?utm_source=generator" width="100%" height="380" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"></iframe>
</main>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('[data-youtube], [data-vbg]').youtube_background();
});
document.querySelector('#ytbg2').addEventListener('video-background-pause', function(){
console.log(arguments);
});
</script>
</body>
</html>