-
Notifications
You must be signed in to change notification settings - Fork 0
/
comming-soon.php
126 lines (110 loc) · 4.17 KB
/
comming-soon.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
<meta name="description" content="Coming Soon - <?php echo $_GET['anime'] ?>">
<title>Coming Soon - <?php echo $_GET['rq'] ?> </title>
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon"
href="assets/media/favicon-light.png">
<!-- All CSS files -->
<link rel="stylesheet" href="assets/css/vendor/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/vendor/font-awesome.css">
<link rel="stylesheet" href="assets/css/vendor/slick.css">
<link rel="stylesheet" href="assets/css/vendor/slick-theme.css">
<link rel="stylesheet" href="assets/css/app.css">
</head>
<body>
<!-- Preloader -->
<div id="preloader">
<div class="spinner-container">
<div class="spinner">
<div class="spinner">
<div class="spinner">
<div class="spinner">
<div class="spinner">
<div class="spinner"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Back To Top Start -->
<a href="#main-wrapper" id="backto-top" class="back-to-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Main Wrapper Start -->
<div id="main-wrapper" class="main-wrapper overflow-hidden">
<?php
// Parse the URL and retrieve the value of the rq parameter
$url = $_SERVER['REQUEST_URI'];
$query = parse_url($url, PHP_URL_QUERY);
parse_str($query, $params);
$rq = isset($params['rq']) ? $params['rq'] : null;
// Set the date based on the rq parameter
if ($rq == 'animes') {
$date = strtotime('1');
} elseif ($rq == 'mangas') {
$date = strtotime('2023-11-2');
} else {
$date = null;
}
// Output the countdown script with the calculated date
if ($date) {
$js = <<<EOD
<script>
// Get the date for the countdown
var now = new Date().getTime();
var date = $date ? strtotime('now') + $date : null;
// Find the distance between now and the count down date
var distance = date - 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 the countdown element
if (date) {
document.getElementById("days").innerHTML = days + "<span>Days</span>";
document.getElementById("hours").innerHTML = hours + "<span>Hrs</span>";
document.getElementById("minutes").innerHTML = minutes + "<span>Min</span>";
document.getElementById("seconds").innerHTML = seconds + "<span>Sec</span>";
} else {
console.log("No date defined.");
}
</script>
EOD;
echo $js;
} else {
echo '<p>No date defined.</p>';
}
?>
<section class="coming-soon-page text-center">
<div class="container-fluid">
<img src="assets/media/bg/logo-large.png" alt="" class="mb-32 logo">
<h4 class="color-white mb-32">We are under construction</h4>
<img src="assets/media/bg/coming-soon.png" alt="" class="mb-32">
<ul id="countdown" class="timer countdown mb-0">
<li id="days"></li>
<li id="hours"></li>
<li id="minutes"></li>
<li id="seconds"></li>
</ul>
</div>
</section>
<!-- Jquery Js -->
<script src="assets/js/vendor/jquery-3.6.3.min.js"></script>
<script src="assets/js/vendor/bootstrap.min.js"></script>
<script src="assets/js/vendor/jquery.countdown.min.js"></script>
<script src="assets/js/vendor/slick.min.js"></script>
<script src="assets/js/vendor/jquery-appear.js"></script>
<script src="assets/js/vendor/jquery-validator.js"></script>
<!-- Site Scripts -->
<script src="assets/js/app.js?v=2"></script>
</body>
</html>