-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmindex.html
177 lines (139 loc) · 3.62 KB
/
mindex.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
170
171
172
173
174
175
176
177
<!DOCTYPE HTML>
<html lang="en" >
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-image: url('bg.gif');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center 60px;
background-color: #f2f1ed;
}
.wrap {
position:top;
bottom: 0;
top: 0;
left: 0;
right: 0;
margin-top: auto;
height: 200px;
}
h1 {
margin-top: 10px;
text-align: center;
font: 300 2.25em "Lato";
}
h1 strong {
font-size: 35px;
font-weight: 100;
color: #ea4c4c;
}
.countdown {
position: absolute;
top: 50%;
left: 50%;
margin: -100px 0 0 -150px;
}
.countdown .bloc-time {
float: left;
margin-top:50px;
margin-right: 15px;
text-align: center;
}
.countdown .figure {
position: relative;
float: left;
height: 70px;
width: 60px;
background-color: #fff;
border-radius: 10px;
-moz-box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.2), inset 2px 4px 0 0 rgba(255, 255, 255, 0.08);
-webkit-box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.2), inset 2px 4px 0 0 rgba(255, 255, 255, 0.08);
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.2), inset 2px 4px 0 0 rgba(255, 255, 255, 0.08);
}
.countdown div p {
position: absolute;
left: 0;
right: 0;
margin: auto;
font: normal 3em "Lato";
font-weight: 700;
color: #de4848;
}
.countdown .figure > span {
display: block;
margin-bottom: 15px;
font: normal 0.50em "Lato";
color: #1a1a1a;
text-transform: uppercase;
position: center;
left: 50%;
right: 50%;
margin-top:130%;
font: normal 0.94em "Lato";
}
#seconds{
color: ;
}
</style>
</head>
<body>
<div class="wrap">
<h1>Countdown Begins...</h1>
<h1><strong>You Get Surprise In</strong></h1>
<div class="countdown">
<div class="bloc-time">
<div class="figure">
<p id="days"></p>
<span>DAYS</span>
</div>
</div>
<div class="bloc-time">
<div class="figure">
<p id="hours"></p>
<span>HOURS</span>
</div>
</div>
<div class="bloc-time">
<div class="figure">
<p id="minutes"></p>
<span>MIN</span>
</div>
</div>
<div class="bloc-time">
<div class="figure">
<p id="seconds"></p>
<span>SEC</span>
</div>
</div>
</div>
</div>
<script>
// Set the date we're counting down to
var countDownDate = new Date("Apr 22, 2025 00:00:00").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("days").innerHTML = days + " " ;
document.getElementById("hours").innerHTML = hours;
document.getElementById("minutes").innerHTML = minutes;
document.getElementById("seconds").innerHTML = seconds;
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
self.location = "start.html";
}
}, 1000);
</script>
</body>
</html>