-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
190 lines (181 loc) · 5.47 KB
/
index.php
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<?php
require_once "production/db_backup.php";
$db = new db_backup;
$data = $db->insert_database();
if($data == "true") {
$data = $db->db_import("database/deped_library.sql");
}
?>
<html>
<style>
body{
margin: 0px;
padding: 0px;
text-align: center;
background-color: #777777;
overflow: hidden;
}
#supermain{
margin-top: 80px;
width: 100%;
background-color: rebeccapurple;
position: fixed;
top: 40%;
text-align: center;
}
#main{
width: 500px;
height: 60px;
font-size: 1.2em;
position: fixed;
left: 28%;
}
#main div{
height: 20px;
border-radius: 5px;
}
#black{
width: 100%;
background-color:white;
box-shadow: 0px 1px 3px black;
}
#progress{
width: 1%;
background: linear-gradient(skyblue,deepskyblue);
box-shadow: 0px 0px 12px lightblue;
}
.letter{
font-family: borg9;
font-size: 3.5em;
transition-duration: 2s;
transition-timing-function: ease-in-out;
transform: translate(-300px,-300px) rotate(360deg) scale(0) skewX(80deg);
animation-delay: 2s;
animation-timing-function: ease-in-out;
}
@-webkit-keyframes glow {
0%{
text-shadow: 0px 0px 0px yellow;
color:#8b8b8b;
}
50%{
text-shadow: 3px 0px 10px red;
color: #636363;
}
100%{
text-shadow: 3px 0px 20px skyblue;
color: black;
}
}
@keyframes glow{
0%{
text-shadow: 0px 0px 0px yellow;
color:#8b8b8b;
}
50%{
text-shadow: 3px 0px 10px red;
color: #636363;
}
100%{
text-shadow: 3px 0px 20px skyblue;
color: black;
}
}
#kiddie{
position: absolute;
top:25%;
width: 100%;
transition: 1s;
transform: translateY(-300px);
}
</style>
<body>
<div id="kiddie">
<span class="letter child0">L</span>
<span class="letter child1">i</span>
<span class="letter child2">b</span>
<span class="letter child3">r</span>
<span class="letter child4">a</span>
<span class="letter child5">r</span>
<span class="letter child6">y</span>
<span class="letter child7"> </span>
<span class="letter child8">M</span>
<span class="letter child9">a</span>
<span class="letter child10">n</span>
<span class="letter child11">a</span>
<span class="letter child12">g</span>
<span class="letter child13">e</span>
<span class="letter child14">m</span>
<span class="letter child15">e</span>
<span class="letter child16">n</span>
<span class="letter child17">t</span>
<span class="letter child18"> </span>
<span class="letter child19">&</span>
<span class="letter child20"> </span>
<span class="letter child21">I</span>
<span class="letter child22">n</span>
<span class="letter child23">f</span>
<span class="letter child24">o</span>
<span class="letter child25">r</span>
<span class="letter child26">m</span>
<span class="letter child27">a</span>
<span class="letter child28">t</span>
<span class="letter child29">i</span>
<span class="letter child30">o</span>
<span class="letter child31">n</span>
<span class="letter child32"></span><br>
<span class="letter child33">S</span>
<span class="letter child34">y</span>
<span class="letter child35">s</span>
<span class="letter child36">t</span>
<span class="letter child37">e</span>
<span class="letter child38">m</span>
</div>
<div id="supermain">
<div id="main">
<span id="sp">Please wait..</span>
<div id="black" >
<div id="progress"></div>
</div>
</div>
</div>
</body>
<script>
//when in the loading page the system remove the data in localstorage the name of the user who currently selected
var prog=0;
var go=false;
var delay=0;
var secret=0;
function pro(){
//create a infinity loop
window.requestAnimationFrame(pro);
//check if the progress didt`n reach the maximun value of loading page
if(prog<100){
prog+=0.4;
document.getElementById('progress').style.width=prog+"%";
}
else{
//when the progress bar reach in 100 the program will wait 1 second to go to homepage
if(go==false){
sp.innerHTML="Done Loading.";
window.setTimeout(function k(){
window.location="home.php";
},1000);
go=true;
}
}
//create a delay effects in letter that glows one by 1
delay+=2;
if(delay>10&&secret<document.getElementsByClassName('letter').length){
document.getElementsByClassName('letter')[secret].style.WebkitAnimation ="glow 0.1s forwards 0.1s";
document.getElementsByClassName('letter')[secret].style.animation="glow 0.1s forwards 0.1s";
secret++;
delay=0;
}
}
//this code show the game collection words
kiddie.style.transform="translateY(0px)";
//check the window if fully loaded then call the function pro
window.onload=pro();
</script>
</html>