-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
169 lines (135 loc) · 3.71 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#ffeff7">
<link rel='manifest' href='/manifest.webmanifest'>
<title>Thank you for you patience</title>
<meta name="description" content="Send them here when you just need to make them wait...">
<meta name="author" content="DannyBrownSugar">
<link rel="apple-touch-icon" href="/favicon.ico" />
<link rel="preconnect" href="https://connect.facebook.net">
<link rel="preconnect" href="https://r1---sn-bvvbax-cvns.googlevideo.com">
<link rel="preconnect" href="https://www.google.com">
<link rel="preconnect" href="https://i.ytimg.com">
<script type="text/javascript" src="js/modernizr-custom.js"></script>
<script type="text/javascript">
// This is the "Offline page" service worker
// Add this below content to your HTML page, or add the js file to your page at the very top to register service worker
// Check compatibility for the browser we're running this in
if ("serviceWorker" in navigator) {
if (navigator.serviceWorker.controller) {
console.log("[PWA Builder] active service worker found, no need to register");
} else {
// Register the service worker
navigator.serviceWorker
.register("pwabuilder-sw.js", {
scope: "./"
})
.then(function (reg) {
console.log("[PWA Builder] Service worker has been registered for scope: " + reg.scope);
});
}
}
</script>
<script type="text/javascript">
window.onbeforunload = function () {
window.scrollTo(0, 0);
};
window.unload = function () {
window.scrollTo(0, 0);
};
</script>
<style>
@font-face {
font-family: 'Yellowtail';
font-display: auto;
src: url('fonts/Yellowtail-Regular.ttf') format('truetype');
}
body {
font-family: 'Yellowtail', cursive, sans-sarif;
color: #ffeff7;
text-align: center;
background-position: center;
background-size: cover;
background-attachment: fixed;
text-shadow: 0px 4px 14px #000000;
}
.webp body {
background-image: url(./images/background.webp);
}
.no-webp body {
background-image: url(./images/background.jpg);
}
.center {
margin: 0 auto 0;
}
.thank-you {
margin-top: 10vw;
font-size: 16vw;
}
.fyp {
font-size: 4vw;
}
#player {
width: 40vw;
height: 22.5vw;
position: absolute;
left: 50%;
margin-left: -20vw;
bottom: -28vw;
margin-bottom: 2vw;
}
.fb {
position: absolute;
left: 50%;
margin-left: -53px;
bottom: 1vw;
}
@media only screen and (orientation : portrait) {
.thank-you {
margin-top: 50%;
}
}
</style>
</head>
<body>
<div class="thank-you center">Thank You</div>
<div class="fyp center"> for your patience</div>
<div class="fb"></div>
<div id="player"></div>
<script type="text/javascript">
function onPlayerReady() {
console.clear();
console.info('I sincerely thank you for your patience...');
setTimeout(playEventually, 500);
}
function playEventually() {
if (player.getPlayerState() === 5
// keep them from muting
// || player.getPlayerState() === 2
) {
player.playVideo(1);
}
setTimeout(playEventually, 1000);
}
window.onYouTubeIframeAPIReady = function() {
player = new YT.Player('player', {
height: '390',
width: '640',
videoId: 'aXYtJB7Qslk?start=1',
events: {
'onReady': onPlayerReady,
},
playerVars: { 'autoplay': 1, 'origin':'https://thankyouforyourpatience.com' },
});
}
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
</script>
</body>
</html>