-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathold.html
More file actions
66 lines (52 loc) · 2.23 KB
/
Copy pathold.html
File metadata and controls
66 lines (52 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="./assets/img/favicons/favicon.ico">
<title>Simple Page</title>
<!-- Bootstrap core CSS -->
<link href="./assets/css/bootstrap.min.css" rel="stylesheet">
<!-- FontAwesome CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
crossorigin="anonymous" />
<!-- Custom styles for this template -->
<link href="./assets/css/sticky-footer.css" rel="stylesheet">
</head>
<body>
<main role="main" class="container">
<h1 class="mt-5">Anciennes éditions</h1>
<p>Choisissez une page :</p>
<select class="custom-select" id="pageSelect">
<option selected disabled>Sélectionnez une édition</option>
<!-- Les options seront générées par JavaScript -->
</select>
<!-- Bouton pour revenir à l'édition actuelle -->
<button id="currentEditionBtn" class="btn btn-primary mt-3">Revenir à l'édition actuelle</button>
</main>
<footer>
</footer>
<script src="./assets/js/jquery-1.12.4.min.js"></script>
<script src="./assets/js/bootstrap.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
var select = document.getElementById('pageSelect');
var pages = ['Sanicball-2022', 'FPS-Chess-2023', 'Brawlhalla-2023', 'Hearthstone-2024', 'Brawl-Stars-2024', 'Pokemon-Showdown-2024', 'Cuphead-2024', 'Polytopia-2025', "Clash-Royale-2025", 'Tft-2026'].reverse();
pages.forEach(function (page) {
var option = new Option(page, page);
select.appendChild(option);
});
// Ajouter un écouteur d'événements pour la redirection
select.addEventListener('change', function () {
window.location.href = './old/' + this.value + '.html';
});
});
// Gestionnaire de clic pour le bouton
var currentBtn = document.getElementById('currentEditionBtn');
currentBtn.addEventListener('click', function () {
window.location.href = './index.html';
});
</script>
</body>
</html>