This commit is contained in:
2025-02-06 17:14:33 +05:30
parent e319f46ac2
commit e0d8815b10
17 changed files with 72 additions and 19 deletions

Binary file not shown.

View File

@@ -10,7 +10,7 @@ if (session_status() === PHP_SESSION_NONE) {
<div class="logo">
<img src="assets/images/url.png" alt="Xeorl Logo" class="logo-img">
<span>Xeorl</span>
<span class="version-number">4.2.6</span>
<span class="version-number">4.2.7</span>
</div>
<label class="burger">

View File

@@ -0,0 +1,7 @@
<link rel="stylesheet" href="assets/css/_preloader.css">
<body>
<div class="preloader">
<div class="loader"></div>
</div>
</body>
<script src="assets/js/_preloader.js"></script>

View File

@@ -9,7 +9,7 @@
display: flex;
align-items: center;
justify-content: space-between;
z-index: 10;
z-index: 3;
color: #333;
border-top: 1px solid #ddd;
font-size: 14px;

View File

@@ -4,7 +4,7 @@ header {
position: fixed;
top: 0;
width: 97%;
z-index: 1000;
z-index: 3;
}
.header.scrolled {

View File

@@ -0,0 +1,33 @@
html, body {
height: 100%;
overflow: hidden;
}
.preloader {
position: fixed;
width: 100%;
height: 100%;
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
z-index: 99;
}
.loader {
width: 30px;
height: 30px;
border: 5px solid #677583;
border-top: 5px solid #171c24;
border-radius: 50%;
animation: spin 2s linear infinite;
}
.preloader.hidden {
display: none;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

Binary file not shown.

View File

@@ -0,0 +1,7 @@
window.addEventListener("load", function() {
setTimeout(() => {
document.querySelector(".preloader").classList.add("hidden");
document.documentElement.style.overflow = "auto";
document.body.style.overflow = "auto";
}, 3500);
});

View File

@@ -1,12 +1,12 @@
let countdown = 10;
let countdown = 13.5;
let countdownInterval;
const timerElement = document.getElementById("timer");
const button = document.getElementById("getLinkBtn");
function updateCountdown() {
if (countdown > 0) {
countdown--;
timerElement.textContent = countdown;
countdown -= 0.5;
timerElement.textContent = countdown.toFixed(1);
}
if (countdown <= 0) {
button.disabled = false;
@@ -23,7 +23,7 @@ function updateCountdown() {
}
function startCountdown() {
countdownInterval = setInterval(updateCountdown, 1000);
countdownInterval = setInterval(updateCountdown, 500);
}
function stopCountdown() {
@@ -31,8 +31,8 @@ function stopCountdown() {
}
function init() {
countdown = 10;
timerElement.textContent = countdown;
countdown = 13.5;
timerElement.textContent = countdown.toFixed(1);
button.disabled = true;
button.classList.remove("active");
button.style.cursor = "not-allowed";