-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (99 loc) · 2.22 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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
.container {
height: 100%;
position: relative;
}
.child {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#my-video {
position: fixed;
width: 100%;
height: 100%;
right: 0;
bottom: 0;
}
.overlayText {
color: red;
z-index:1;
font-size: 60px;
font-family: Arial, Helvetica, sans-serif;
text-shadow: 1px 1px 0 #000,
-1px 1px 0 #000,
1px -1px 0 #000,
-1px -1px 0 #000,
0px 1px 0 #000,
0px -1px 0 #000,
-1px 0px 0 #000,
1px 0px 0 #000,
2px 2px 0 #000,
-2px 2px 0 #000,
2px -2px 0 #000,
-2px -2px 0 #000,
0px 2px 0 #000,
0px -2px 0 #000,
-2px 0px 0 #000,
2px 0px 0 #000,
1px 2px 0 #000,
-1px 2px 0 #000,
1px -2px 0 #000,
-1px -2px 0 #000,
2px 1px 0 #000,
-2px 1px 0 #000,
2px -1px 0 #000,
-2px -1px 0 #000;
}
</style>
<body>
<div class="container" style="display:none;">
<video
id="my-video"
>
<source id='src1' src="https://cdn.discordapp.com/attachments/749974824956461116/767855963708850216/video0.mov" type="video/mp4"/>
</video>
<div class="child">
<div class="overlayText">
<h1 id="timer">CONNECTING..</h1>
</div>
</div>
</div>
<div id="login_page">
<center>
<img src="https://www.phpmyadmin.net/static/images/logo.png"/><br><br>
<button>LOGIN</button>
</center>
</div>
</body>
<script>
var played = false;
function switchVideo(){
document.querySelector('video').defaultPlaybackRate = 1;
$("#timer").remove()
$("#src1").attr("src", "https://cdn.discordapp.com/attachments/620249860557504519/767413557947400222/121705164_669723740606164_9142091358244047791_n.mp4")
$("#my-video")[0].load()
setTimeout(function() {
$("#my-video").trigger('play');
}, 100)
}
$("button").on('click', function(){
if(played) {
return;
}
played = true;
$(".container").show();
$("#login_page").hide();
document.querySelector('video').defaultPlaybackRate = 2.25;
$("#my-video")[0].load()
$("#my-video").trigger('play');
setTimeout(function(){
switchVideo();
}, 5700)
setTimeout(function(){
$("#my-video").trigger('play');
}, 100)
})
</script>