Website update

This commit is contained in:
sageTheDM 2025-01-05 01:12:33 +01:00
parent e18f4f0f5b
commit adc78e0931
6 changed files with 186 additions and 108 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View file

@ -1,10 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Secret Game Collection</title> <title>Secret Game Collection</title>
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css" />
</head> </head>
<body> <body>
<header> <header>
@ -13,54 +13,81 @@
<main> <main>
<div class="grid-container"> <div class="grid-container">
<a href="asteroidDestroyer/explenation.html" target="_blank" class="item"> <a
<img src="images/asteroid.png" alt="Image can't be displayed"> href="asteroidDestroyer/explenation.html"
target="_blank"
class="item"
>
<img src="images/asteroid.png" alt="Image can't be displayed" />
<h2>Secret Asteroid Shooter</h2> <h2>Secret Asteroid Shooter</h2>
<div class="description"> <div class="description">
<p>In this game, you control a spaceship that shoots at asteroids to avoid destruction and collect items for power-ups.</p> <p>
<p>Your goal is to survive as long as possible while scoring points!</p> In this game, you control a spaceship that shoots at asteroids to
avoid destruction and collect items for power-ups.
</p>
<p>
Your goal is to survive as long as possible while scoring points!
</p>
</div> </div>
</a> </a>
<a href="#" target="_blank" class="item"> <a href="#" target="_blank" class="item">
<img src="images/blackjack.jpg" alt="Image can't be displayed"> <img src="images/blackjack.jpg" alt="Image can't be displayed" />
<h2>Secret Blackjack</h2> <h2>Secret Blackjack</h2>
<div class="description"> <div class="description">
<p>Try to beat the dealer by getting a hand value as close to 21 as possible without going over.</p> <p>
Try to beat the dealer by getting a hand value as close to 21 as
possible without going over.
</p>
</div> </div>
</a> </a>
<a href="#" target="_blank" class="item"> <a href="#" target="_blank" class="item">
<img src="images/snake.png" alt="Image can't be displayed"> <img src="images/snake.png" alt="Image can't be displayed" />
<h2>Snake</h2> <h2>Snake</h2>
<div class="description"> <div class="description">
<p>Guide the snake to eat food and grow longer while avoiding collisions with the walls and itself.</p> <p>
Guide the snake to eat food and grow longer while avoiding
collisions with the walls and itself.
</p>
</div> </div>
</a> </a>
<a href="#" target="_blank" class="item"> <a href="#" target="_blank" class="item">
<img src="images/solitaire.png" alt="Image can't be displayed"> <img src="images/solitaire.png" alt="Image can't be displayed" />
<h2>Solitaire</h2> <h2>Solitaire</h2>
<div class="description"> <div class="description">
<p>A classic card game where the objective is to move all cards to foundation piles in ascending order.</p> <p>
A classic card game where the objective is to move all cards to
foundation piles in ascending order.
</p>
</div> </div>
</a> </a>
<a href="#" target="_blank" class="item"> <a href="mineSweeper/index.html" target="_blank" class="item">
<img src="images/minesweeper.png" alt="Image can't be displayed"> <img src="images/minesweeper.png" alt="Image can't be displayed" />
<h2>Minesweeper</h2> <h2>Minesweeper</h2>
<div class="description"> <div class="description">
<p>Uncover squares on a grid while avoiding hidden mines, using numbers to deduce safe spots.</p> <p>
Uncover squares on a grid while avoiding hidden mines, using
numbers to deduce safe spots.
</p>
</div> </div>
</a> </a>
<a href="guessMyNumber/index.html" target="_blank" class="item"> <a href="guessMyNumber/index.html" target="_blank" class="item">
<img src="images/number.jpeg" alt="Image can't be displayed"> <img src="images/number.jpeg" alt="Image can't be displayed" />
<h2>Guess My Number</h2> <h2>Guess My Number</h2>
<div class="description"> <div class="description">
<p>A simple game where you try to guess a randomly chosen number within a certain range.</p> <p>
A simple game where you try to guess a randomly chosen number
within a certain range.
</p>
</div> </div>
</a> </a>
<a href="#" target="_blank" class="item"> <a href="#" target="_blank" class="item">
<img src="images/endless_runner.png" alt="Image can't be displayed"> <img src="images/endless_runner.png" alt="Image can't be displayed" />
<h2>Endless Runner</h2> <h2>Endless Runner</h2>
<div class="description"> <div class="description">
<p>Run through an endless landscape, avoiding obstacles and collecting items to score points.</p> <p>
Run through an endless landscape, avoiding obstacles and
collecting items to score points.
</p>
</div> </div>
</a> </a>
</div> </div>

View file

@ -0,0 +1,14 @@
'use strict'
document.addEventListener('DOMContentLoaded', () => {
const bombsSlider = document.getElementById('bombs');
const bombsValue = document.getElementById('bombsValue');
// Update the displayed number of bombs when the slider value changes
bombsSlider.addEventListener('input', () => {
bombsValue.textContent = bombsSlider.value;
});
// Initialize the displayed value on page load
bombsValue.textContent = bombsSlider.value;
});

View file

@ -29,6 +29,7 @@
value="20" value="20"
aria-label="Number of Bombs" aria-label="Number of Bombs"
/> />
<span id="bombsValue">20</span>
<button id="startGame">Start Game</button> <button id="startGame">Start Game</button>
</div> </div>
@ -38,5 +39,6 @@
</div> </div>
<script src="script.js"></script> <script src="script.js"></script>
<script src="counter.js"></script>
</body> </body>
</html> </html>

View file

@ -45,7 +45,8 @@ label {
} }
input[type="number"], input[type="number"],
input[type="range"] { input[type="range"],
span {
padding: 12px; padding: 12px;
margin-bottom: 20px; margin-bottom: 20px;
width: 100%; width: 100%;

View file

@ -1,10 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Game Collection</title> <title>Game Collection</title>
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css" />
</head> </head>
<body> <body>
<header> <header>
@ -14,38 +14,72 @@
<main> <main>
<div class="grid-container"> <div class="grid-container">
<a href="" target="_blank" class="item"> <a href="" target="_blank" class="item">
<img src="../secret/../secret/images/snake.png" alt="Image can't be displayed"> <img
src="../secret/../secret/images/snake.png"
alt="Image can't be displayed"
/>
<h2>Snake</h2> <h2>Snake</h2>
<div class="description"> <div class="description">
<p>Guide the snake to eat food and grow longer while avoiding collisions with the walls and itself.</p> <p>
Guide the snake to eat food and grow longer while avoiding
collisions with the walls and itself.
</p>
</div> </div>
</a> </a>
<a href="" target="_blank" class="item"> <a href="" target="_blank" class="item">
<img src="../secret/images/solitaire.png" alt="Image can't be displayed"> <img
src="../secret/images/solitaire.png"
alt="Image can't be displayed"
/>
<h2>Solitaire</h2> <h2>Solitaire</h2>
<div class="description"> <div class="description">
<p>A classic card game where the objective is to move all cards to foundation piles in ascending order.</p> <p>
A classic card game where the objective is to move all cards to
foundation piles in ascending order.
</p>
</div> </div>
</a> </a>
<a href="" target="_blank" class="item"> <a href="../secret/mineSweeper/index.html" target="_blank" class="item">
<img src="../secret/images/minesweeper.png" alt="Image can't be displayed"> <img
src="../secret/images/minesweeper.png"
alt="Image can't be displayed"
/>
<h2>Minesweeper</h2> <h2>Minesweeper</h2>
<div class="description"> <div class="description">
<p>Uncover squares on a grid while avoiding hidden mines, using numbers to deduce safe spots.</p> <p>
Uncover squares on a grid while avoiding hidden mines, using
numbers to deduce safe spots.
</p>
</div> </div>
</a> </a>
<a href="../secret/guessMyNumber/index.html" target="_blank" class="item"> <a
<img src="../secret/images/number.jpeg" alt="Image can't be displayed"> href="../secret/guessMyNumber/index.html"
target="_blank"
class="item"
>
<img
src="../secret/images/number.jpeg"
alt="Image can't be displayed"
/>
<h2>Guess My Number</h2> <h2>Guess My Number</h2>
<div class="description"> <div class="description">
<p>A simple game where you try to guess a randomly chosen number within a certain range.</p> <p>
A simple game where you try to guess a randomly chosen number
within a certain range.
</p>
</div> </div>
</a> </a>
<a href="" target="_blank" class="item"> <a href="" target="_blank" class="item">
<img src="../secret/images/endless_runner.png" alt="Image can't be displayed"> <img
src="../secret/images/endless_runner.png"
alt="Image can't be displayed"
/>
<h2>Endless Runner</h2> <h2>Endless Runner</h2>
<div class="description"> <div class="description">
<p>Run through an endless landscape, avoiding obstacles and collecting items to score points.</p> <p>
Run through an endless landscape, avoiding obstacles and
collecting items to score points.
</p>
</div> </div>
</a> </a>
</div> </div>