test
This commit is contained in:
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 37 KiB |
+79
-162
@@ -1,7 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6951907799659255" cross-origin='anonymous'></script>
|
||||
<script defer src="https://chirpy.dev/bootstrapper.js" data-chirpy-domain="fun-miles-4jub.onrender.com"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@@ -13,168 +11,87 @@
|
||||
<link rel="stylesheet" href="/WebGames-master/WebGames-master/main.css">
|
||||
<script defer src="script2.js"></script>
|
||||
<title>Fun-Miles</title>
|
||||
|
||||
<style>
|
||||
/* Loading Animation Styles */
|
||||
#loading {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #f4f4f4;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 9999; /* Ensure it covers everything */
|
||||
}
|
||||
.loader {
|
||||
border: 16px solid #f3f3f3; /* Light grey */
|
||||
border-top: 16px solid #3498db; /* Blue */
|
||||
border-radius: 50%;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
animation: spin 2s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.loader {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 9999; /* Ensure it covers everything */
|
||||
transition: transform 0.5s ease; /* Smooth transition for leaving */
|
||||
}
|
||||
|
||||
.content {
|
||||
display: none; /* Hide content initially */
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.loader object {
|
||||
width: 100px; /* Adjust size as needed */
|
||||
height: auto; /* Maintain aspect ratio */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Loading Animation -->
|
||||
<div id="loading">
|
||||
<div class="loader"></div>
|
||||
</div>
|
||||
|
||||
<nav class="nav-bar">
|
||||
<h1>fun-miles</h1>
|
||||
<div class="nav-elem">
|
||||
<noscript>
|
||||
<p>JavaScript is off; turn it on or go here <a href="/games.html">hi</a></p>
|
||||
</noscript>
|
||||
<button><a class="a-text nav-item" href="https://github.com/mileswolfallen2/fun-miles">contribute </a></button>
|
||||
<button><a class="a-text nav-item" href="https://github.com/mileswolfallen2/fun-miles/blob/main/README.md">About </a></button>
|
||||
<p class="nav-item"><button onclick="onToggleDarkMode()">Dark Mode<i id="dark-mode-icon" class="fa-solid fa-moon"></i></button></p>
|
||||
<div id="loader" class="loader">
|
||||
<!-- Replace 'your-animation.svg' with the path to your SVG file -->
|
||||
<object data="/loding.svg" type="image/svg+xml" alt="Loading Animation"></object>
|
||||
</div>
|
||||
<div class="side-bar-menu" id="side-bar-menu">
|
||||
<div class="side-bar-link">
|
||||
<a class="nav-item" href="https://github.com/sarmadhamdani02/webGames" target="_blank">Contribute</a>
|
||||
<a class="nav-item" href="https://github.com/sarmadhamdani02/webGames#readme">About</a>
|
||||
<button id="dark-mode-sidebar" onclick="onToggleDarkMode()"></button>
|
||||
<p class="nav-item"><button id="dark-mode-sidebar" onclick="onToggleDarkMode()">Dark Mode<i id="sidebar-dark-mode-icon" class="fa-solid fa-moon"></i></button></p>
|
||||
</div>
|
||||
</div>
|
||||
<button class="side-bar-button" id="toggleSideBar" onclick="toggleSideBar()"></button>
|
||||
</nav>
|
||||
|
||||
<div class="main-content" style="overflow-y:scroll;">
|
||||
<!-- data is coming from JavaScript (script.js) -->
|
||||
</div>
|
||||
|
||||
<p>v2.0.21</p>
|
||||
|
||||
<script>
|
||||
// Simulate loading time
|
||||
window.onload = function() {
|
||||
// Hide loading animation after the page is fully loaded
|
||||
document.getElementById('loading').style.display = 'none';
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<head><script async scr="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6951907799659255" crossorigni='anonymous'></script></head>
|
||||
<script defer src="https://chirpy.dev/bootstrapper.js" data-chirpy-domain="fun-miles-4jub.onrender.com"></script>
|
||||
<html lang="en">
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<link rel="icon" href="assets/page_icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Play:wght@700&family=Press+Start+2P&display=swap"
|
||||
rel="stylesheet" />
|
||||
<!-- font awesome cdn -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
|
||||
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
|
||||
crossorigin="anonymous"
|
||||
referrerpolicy="no-referrer" />
|
||||
<link rel="stylesheet" href="/WebGames-master/WebGames-master/main.css" />
|
||||
|
||||
<script defer src="script2.js"></script>
|
||||
<title>Fun-Miles</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="nav-bar">
|
||||
<h1>fun-miles</h1>
|
||||
<div class="nav-elem">
|
||||
<noscript><P>JavaScript is off turn it on or go here<A href="/games.html">hi</A></P></noscript>
|
||||
<button>
|
||||
<a
|
||||
class="a-text nav-item"
|
||||
href="https://github.com/mileswolfallen2/fun-miles"
|
||||
|
||||
>contribute </a
|
||||
>
|
||||
<a href="https://github.com/mileswolfallen2/fun-miles"
|
||||
><i class="fa-brands fa-github nav-item"></i
|
||||
></a>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<a
|
||||
class="a-text nav-item"
|
||||
href="https://github.com/mileswolfallen2/fun-miles/blob/main/README.md"
|
||||
|
||||
>About </a
|
||||
>
|
||||
<a
|
||||
href="https://github.com/mileswolfallen2/fun-miles/blob/main/README.md"
|
||||
|
||||
><i class="fa-solid fa-circle-info nav-item"></i
|
||||
></a>
|
||||
</button>
|
||||
|
||||
<button onclick="onToggleDarkMode()">
|
||||
<p class="nav-item">Dark Mode<i id="dark-mode-icon" class="fa-solid fa-moon"></i></p>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="side-bar-menu" id="side-bar-menu">
|
||||
<div class="side-bar-link">
|
||||
<a
|
||||
class="nav-item"
|
||||
href="https://github.com/sarmadhamdani02/webGames"
|
||||
target="_blank"
|
||||
>Contribute <i class="fa-brands fa-github nav-item"></i>
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="nav-item"
|
||||
href="https://github.com/sarmadhamdani02/webGames#readme"
|
||||
|
||||
>About <i class="fa-solid fa-circle-info nav-item"></i>
|
||||
</a>
|
||||
|
||||
<button id="dark-mode-sidebar" onclick="onToggleDarkMode()">
|
||||
<p class="nav-item">Dark Mode<i id="sidebar-dark-mode-icon" class="fa-solid fa-moon"></i></p>
|
||||
</button>
|
||||
|
||||
<nav class="nav-bar">
|
||||
<h1>fun-miles</h1>
|
||||
<div class="nav-elem">
|
||||
<noscript>
|
||||
<p>JavaScript is off; turn it on or go here <a href="/games.html">hi</a></p>
|
||||
</noscript>
|
||||
<button><a class="a-text nav-item" href="https://github.com/mileswolfallen2/fun-miles">contribute </a></button>
|
||||
<button><a class="a-text nav-item" href="https://github.com/mileswolfallen2/fun-miles/blob/main/README.md">About </a></button>
|
||||
<p class="nav-item"><button onclick="onToggleDarkMode()">Dark Mode<i id="dark-mode-icon" class="fa-solid fa-moon"></i></button></p>
|
||||
</div>
|
||||
<div class="side-bar-menu" id="side-bar-menu">
|
||||
<div class="side-bar-link">
|
||||
<a class="nav-item" href="https://github.com/sarmadhamdani02/webGames" target="_blank">Contribute</a>
|
||||
<a class="nav-item" href="https://github.com/sarmadhamdani02/webGames#readme">About</a>
|
||||
<button id="dark-mode-sidebar" onclick="onToggleDarkMode()"></button>
|
||||
<p class="nav-item"><button id="dark-mode-sidebar" onclick="onToggleDarkMode()">Dark Mode<i id="sidebar-dark-mode-icon" class="fa-solid fa-moon"></i></button></p>
|
||||
</div>
|
||||
</div>
|
||||
<button class="side-bar-button" id="toggleSideBar" onclick="toggleSideBar()"></button>
|
||||
</nav>
|
||||
|
||||
<div class="main-content" style="overflow-y:scroll;">
|
||||
<!-- data is coming from JavaScript (script.js) -->
|
||||
</div>
|
||||
|
||||
<button class="side-bar-button" id="toggleSideBar" onclick="toggleSideBar()">
|
||||
<i class="fa-solid fa-bars"></i>
|
||||
</button>
|
||||
</nav>
|
||||
|
||||
<div class="main-content" style="overflow-y:scroll;">
|
||||
<!-- data is coming from JavaScript (script.js) -->
|
||||
</div>
|
||||
<p>v2.0.21</p>
|
||||
</head>
|
||||
</html>
|
||||
<script>
|
||||
window.addEventListener('load', function() {
|
||||
const loader = document.getElementById('loader');
|
||||
const content = document.querySelector('.content');
|
||||
|
||||
// Move the loader off the screen
|
||||
loader.style.transform = 'translateY(-100%)'; // Move up off the screen
|
||||
|
||||
// Show the content after a delay to allow the animation to complete
|
||||
setTimeout(() => {
|
||||
loader.style.display = 'none';
|
||||
content.style.display = 'block';
|
||||
}, 500); // Adjust delay to match the transition duration
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 37 KiB |
Reference in New Issue
Block a user