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

View File

@@ -2,7 +2,7 @@
### Xeorl - The All-In-One, Fully Free to Use Advanced Link Shortener and Management Tool - Powered by [@xodivorce](https://instagram.com/xodivorce) ✨
[![status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/)
[![version](https://img.shields.io/badge/version-v4.2.6-yellow.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/)
[![version](https://img.shields.io/badge/version-v4.2.7-yellow.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/)
[![PRs](https://img.shields.io/badge/PRs-welcome-blue.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/)
<br></br>

BIN
htdocs/.DS_Store vendored

Binary file not shown.

View File

@@ -30,6 +30,7 @@ if (!isset($_SESSION['user_id'])) {
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5747712812070455" crossorigin="anonymous"></script>
</head>
<body>
<?php include "assets/_preloader.php" ?>
<?php include "assets/_header.php"; ?>
<main>
<h2>Welcome, <?php echo $_SESSION['user_name']; ?>!</h2>

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";

View File

@@ -28,6 +28,7 @@ ini_set('display_errors', 1);
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5747712812070455" crossorigin="anonymous"></script>
</head>
<body>
<?php include "assets/_preloader.php" ?>
<?php include "assets/_header.php"; ?>
<main>
<section class="shorten-section" style="user-select: none;">

View File

@@ -24,6 +24,7 @@ ini_set('display_errors', 1);
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5747712812070455" crossorigin="anonymous"></script>
</head>
<body>
<?php include "assets/_preloader.php" ?>
<div class="container" style="user-select: none;">
<div class="left-section">
<div class="header">

View File

@@ -30,6 +30,7 @@ if (!isset($_SESSION['user_id'])) {
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5747712812070455" crossorigin="anonymous"></script>
</head>
<body>
<?php include "assets/_preloader.php" ?>
<?php include "assets/_header.php"; ?>
<main>
<h2>Welcome, <?php echo htmlspecialchars($_SESSION['user_name']); ?>!</h2>

View File

@@ -24,6 +24,7 @@ ini_set('display_errors', 1);
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5747712812070455" crossorigin="anonymous"></script>
</head>
<body>
<?php include "assets/_preloader.php" ?>
<div class="container" style="user-select: none;">
<div class="left-section">
<div class="header">

View File

@@ -1,14 +1,14 @@
<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
// if (session_status() === PHP_SESSION_NONE) {
// session_start();
// }
if (!isset($_SESSION['redirect_url'])) {
http_response_code(400);
die("Invalid request! The page you are looking for may have been deleted or removed from our server.");
}
// if (!isset($_SESSION['redirect_url'])) {
// http_response_code(400);
// die("Invalid request! The page you are looking for may have been deleted or removed from our server.");
// }
$redirect_url = $_SESSION['redirect_url'];
// $redirect_url = $_SESSION['redirect_url'];
?>
<!DOCTYPE html>
<html lang="en">
@@ -31,13 +31,14 @@ $redirect_url = $_SESSION['redirect_url'];
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5747712812070455" crossorigin="anonymous"></script>
</head>
<body>
<?php include "assets/_preloader.php" ?>
<?php include "assets/_header.php"; ?>
<div class="max-container">
<div class="container">
<h2>Your link is almost ready.</h2>
<div class="countdown-wrapper">
<div class="countdown">
<span id="timer">10</span><br>Seconds
<span id="timer">13</span><br>Seconds
</div>
</div>
<button id="getLinkBtn" disabled onclick="redirect()">PLEASE WAIT...</button>