2023-11-14 18:16:08 +01:00
|
|
|
<!DOCTYPE html>
|
2023-11-14 15:52:48 +01:00
|
|
|
<html>
|
2023-11-14 17:16:30 +01:00
|
|
|
|
2023-11-14 18:16:08 +01:00
|
|
|
<head>
|
2023-11-15 13:17:55 +01:00
|
|
|
<link rel="stylesheet" href="./css/style.css">
|
2023-12-07 17:43:16 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2023-11-14 18:16:08 +01:00
|
|
|
<meta charset="UTF-8">
|
2023-12-07 17:43:16 +01:00
|
|
|
<link rel="icon" href="./assets/logo.ico" type="image/x-icon">
|
2023-11-14 18:16:08 +01:00
|
|
|
</head>
|
2023-11-14 15:58:38 +01:00
|
|
|
|
2023-11-14 18:16:08 +01:00
|
|
|
<body id="background-image">
|
2023-12-07 17:43:16 +01:00
|
|
|
<header>
|
2023-12-23 22:36:17 +01:00
|
|
|
<nav>
|
|
|
|
<label for="toggle" class="lab">☰</label>
|
|
|
|
<input type="checkbox" id="toggle">
|
|
|
|
<div class="menu">
|
|
|
|
<img id="logo" src="./assets/logo.png" alt="background">
|
|
|
|
<a href="index.html">Accueil</a>
|
|
|
|
<a href="commands.html">Commandes</a>
|
|
|
|
<a href="about.html">À Propos</a>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2023-12-07 17:43:16 +01:00
|
|
|
</header>
|
2023-11-29 15:38:23 +01:00
|
|
|
<main>
|
2023-11-14 18:16:08 +01:00
|
|
|
<h1>Grand Tabernacle Auto</h1>
|
2023-11-29 17:37:23 +01:00
|
|
|
<div class="container">
|
|
|
|
<h2> Deviens le plus grand tabernacleur du monde !</h2>
|
|
|
|
<input type="checkbox" id="checkbox">
|
|
|
|
<div id="formcontainer">
|
|
|
|
<form id="form" action="game.html">
|
2023-12-07 18:03:08 +01:00
|
|
|
<input id="form_input" placeholder="Pseudo" type="text" pattern="[A-Za-z0-9]{1,20}" required>
|
2023-11-29 17:37:23 +01:00
|
|
|
<label id="form_buttonLabel" for="checkbox">
|
|
|
|
<button id="form_button" type="submit">Go!</button>
|
|
|
|
</label>
|
2023-12-23 22:36:17 +01:00
|
|
|
<label id="form_toggle" for="checkbox" data-title="Jouer" onclick="moveFocus()"></label>
|
2023-11-29 17:37:23 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
2023-11-29 15:38:23 +01:00
|
|
|
</div>
|
|
|
|
</main>
|
2023-12-07 17:43:16 +01:00
|
|
|
<footer>
|
|
|
|
<p>© 2023 - Grand Tabernacle Auto</p>
|
|
|
|
</footer>
|
2023-11-14 18:16:08 +01:00
|
|
|
</body>
|
2023-12-07 17:43:16 +01:00
|
|
|
|
2023-11-29 17:51:06 +01:00
|
|
|
</html>
|
2023-11-14 18:16:08 +01:00
|
|
|
|
2023-11-29 17:51:06 +01:00
|
|
|
<script>
|
2023-12-07 17:43:16 +01:00
|
|
|
pseudo = document.getElementById('form_input')
|
|
|
|
window.addEventListener('keyup', (event) => {
|
|
|
|
document.cookie = "pseudo=" + pseudo.value
|
|
|
|
})
|
2023-12-23 22:36:17 +01:00
|
|
|
|
|
|
|
function moveFocus(){
|
|
|
|
setTimeout(function () {
|
|
|
|
document.getElementById('form_input').focus();
|
|
|
|
}, 200)
|
|
|
|
}
|
|
|
|
</script>
|