277 lines
10 KiB
HTML
277 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<script defer src="https://chirpy.dev/bootstrapper.js" data-chirpy-domain="fun-miles-4jub.onrender.com"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Games to Add</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Press+Start+2P&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--background-color-dark: #0d0d0d;
|
|
--text-color-dark: #00ffcc;
|
|
--button-bg-dark: #1a1a1a;
|
|
--button-hover-bg-dark: #00ffcc;
|
|
--button-hover-text-dark: #0d0d0d;
|
|
|
|
--background-color-light: #ffffff;
|
|
--text-color-light: #333333;
|
|
--button-bg-light: #f0f0f0;
|
|
--button-hover-bg-light: #333333;
|
|
--button-hover-text-light: #ffffff;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
font-family: 'Orbitron', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
transition: background-color 0.3s, color 0.3s;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
text-transform: uppercase;
|
|
margin: 20px 0;
|
|
animation: glow 1.5s infinite alternate;
|
|
text-shadow: var(--title-shadow-dark);
|
|
transition: text-shadow 0.3s, color 0.3s;
|
|
}
|
|
|
|
@keyframes glow {
|
|
from {
|
|
text-shadow: 0 0 10px var(--text-color), 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color);
|
|
}
|
|
to {
|
|
text-shadow: 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color), 0 0 50px var(--text-color);
|
|
}
|
|
}
|
|
|
|
.button-container {
|
|
display: flex;
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.button {
|
|
padding: 15px 30px;
|
|
font-size: 1.2rem;
|
|
font-family: 'Press Start 2P', cursive;
|
|
color: var(--text-color);
|
|
background-color: var(--button-bg);
|
|
border: 2px solid var(--text-color);
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
transition: background-color 0.3s, color 0.3s, transform 0.2s;
|
|
}
|
|
.button:hover {
|
|
background-color: var(--button-hover-bg);
|
|
color: var(--button-hover-text);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.button:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 20px 0;
|
|
width: 80%;
|
|
max-width: 600px;
|
|
}
|
|
|
|
li {
|
|
background-color: var(--button-bg);
|
|
color: var(--text-color);
|
|
padding: 10px 20px;
|
|
margin: 10px 0;
|
|
border-radius: 5px;
|
|
text-align: center;
|
|
transition: background-color 0.3s, color 0.3s;
|
|
}
|
|
|
|
li:hover {
|
|
background-color: var(--button-hover-bg);
|
|
color: var(--button-hover-text);
|
|
}
|
|
|
|
h1, .button-container .button, ul li {
|
|
opacity: 0; /* Hide elements initially */
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Games to Add</h1>
|
|
<div class="button-container">
|
|
<a href="/index.html" class="button">Home</a>
|
|
</div>
|
|
<ul>
|
|
<li>N64 Games</li>
|
|
<li>The Old Games</li>
|
|
<li>Micro Box V2</li>
|
|
<li>Game Challenges</li>
|
|
<li>New Chat System for All Pages</li>
|
|
</ul>
|
|
<iframe src="music.html" style="display: none;" id="musicIframe"></iframe>
|
|
|
|
<script>
|
|
// Utility function to set a cookie
|
|
function setCookie(name, value, days) {
|
|
const date = new Date();
|
|
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
|
document.cookie = `${name}=${value};expires=${date.toUTCString()};path=/`;
|
|
}
|
|
|
|
// Utility function to get a cookie
|
|
function getCookie(name) {
|
|
const cookies = document.cookie.split(';');
|
|
for (let i = 0; i < cookies.length; i++) {
|
|
const cookie = cookies[i].trim();
|
|
if (cookie.startsWith(name + '=')) {
|
|
return cookie.substring(name.length + 1);
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Apply dark or light mode based on cookie
|
|
function applyMode(isDarkMode) {
|
|
if (isDarkMode) {
|
|
document.body.style.setProperty('--background-color', 'var(--background-color-dark)');
|
|
document.body.style.setProperty('--text-color', 'var(--text-color-dark)');
|
|
document.body.style.setProperty('--button-bg', 'var(--button-bg-dark)');
|
|
document.body.style.setProperty('--button-hover-bg', 'var(--button-hover-bg-dark)');
|
|
document.body.style.setProperty('--button-hover-text', 'var(--button-hover-text-dark)');
|
|
} else {
|
|
document.body.style.setProperty('--background-color', 'var(--background-color-light)');
|
|
document.body.style.setProperty('--text-color', 'var(--text-color-light)');
|
|
document.body.style.setProperty('--button-bg', 'var(--button-bg-light)');
|
|
document.body.style.setProperty('--button-hover-bg', 'var(--button-hover-bg-light)');
|
|
document.body.style.setProperty('--button-hover-text', 'var(--button-hover-text-light)');
|
|
}
|
|
}
|
|
|
|
// Apply saved mode on load
|
|
const darkModeEnabled = getCookie('darkMode') === 'true';
|
|
applyMode(darkModeEnabled);
|
|
|
|
// Add the iframe dynamically if it doesn't already exist
|
|
if (!document.getElementById('musicIframe')) {
|
|
const iframe = document.createElement('iframe');
|
|
iframe.src = 'music.html';
|
|
iframe.id = 'musicIframe';
|
|
iframe.style.display = 'none';
|
|
document.body.appendChild(iframe);
|
|
}
|
|
|
|
// Function to animate the title
|
|
function animateTitle() {
|
|
anime({
|
|
targets: 'h1',
|
|
opacity: [0, 1], // Fade in
|
|
translateY: [-50, 0], // Slide down
|
|
duration: 1000, // Animation duration
|
|
easing: 'easeOutExpo', // Smooth easing
|
|
});
|
|
}
|
|
|
|
// Function to animate the buttons
|
|
function animateButtons() {
|
|
anime({
|
|
targets: '.button-container .button',
|
|
opacity: [0, 1], // Fade in
|
|
translateX: [-50, 0], // Slide in from the left
|
|
delay: anime.stagger(200), // Stagger animation for each button
|
|
duration: 800, // Animation duration
|
|
easing: 'easeOutExpo', // Smooth easing
|
|
});
|
|
}
|
|
|
|
// Function to animate the list items
|
|
function animateListItems() {
|
|
anime({
|
|
targets: 'ul li',
|
|
opacity: [0, 1], // Fade in
|
|
translateY: [20, 0], // Slide up
|
|
delay: anime.stagger(150), // Stagger animation for each list item
|
|
duration: 800, // Animation duration
|
|
easing: 'easeOutExpo', // Smooth easing
|
|
});
|
|
}
|
|
|
|
// Function to toggle animations
|
|
function toggleAnimations() {
|
|
const animationsEnabled = getCookie('gameAnimation') === 'true';
|
|
if (animationsEnabled) {
|
|
animateTitle();
|
|
animateButtons();
|
|
animateListItems();
|
|
} else {
|
|
// Make everything visible without animations
|
|
document.querySelector('h1').style.opacity = '1';
|
|
document.querySelector('h1').style.transform = 'none';
|
|
|
|
const buttons = document.querySelectorAll('.button-container .button');
|
|
buttons.forEach(button => {
|
|
button.style.opacity = '1';
|
|
button.style.transform = 'none';
|
|
});
|
|
|
|
const listItems = document.querySelectorAll('ul li');
|
|
listItems.forEach(item => {
|
|
item.style.opacity = '1';
|
|
item.style.transform = 'none';
|
|
});
|
|
}
|
|
}
|
|
|
|
// Ensure animations are enabled by default
|
|
if (getCookie('gameAnimation') === null) {
|
|
setCookie('gameAnimation', 'true', 30); // Default to animations enabled
|
|
}
|
|
|
|
// Trigger animations on page load
|
|
window.onload = () => {
|
|
toggleAnimations();
|
|
};
|
|
</script>
|
|
<!-- begin wwww.htmlcommentbox.com -->
|
|
<div id="HCB_comment_box"><a href="http://www.htmlcommentbox.com">Comment Form</a> is loading comments...</div>
|
|
<link rel="stylesheet" type="text/css" href="https://www.htmlcommentbox.com/static/skins/bootstrap/twitter-bootstrap.css?v=0" />
|
|
<script type="text/javascript" id="hcb">
|
|
/*<!--*/
|
|
if (!window.hcb_user) {
|
|
hcb_user = {};
|
|
}
|
|
(function () {
|
|
var s = document.createElement("script"),
|
|
l = hcb_user.PAGE || ("" + window.location).replace(/'/g, "%27"),
|
|
h = "https://www.htmlcommentbox.com";
|
|
s.setAttribute("type", "text/javascript");
|
|
s.setAttribute(
|
|
"src",
|
|
h +
|
|
"/jread?page=" +
|
|
encodeURIComponent(l).replace("+", "%2B") +
|
|
"&mod=%241%24wq1rdBcg%24piEQg.u8ZJ10jZd4Ns2cl%2F" +
|
|
"&opts=16798&num=10&ts=1744117748100"
|
|
);
|
|
if (typeof s != "undefined") document.getElementsByTagName("head")[0].appendChild(s);
|
|
})();
|
|
/*-->*/
|
|
</script>
|
|
<!-- end www.htmlcommentbox.com -->
|
|
</body>
|
|
</html>
|