-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (47 loc) · 3.08 KB
/
index.html
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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simulateur de Coalition</title>
<link rel="stylesheet" href="styles.css">
<!-- Font Awesome for icons (you can change to another icon library if needed) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<h1>Simulateur de Coalition</h1>
<div id="parties">
<label><input type="checkbox" data-seats="78" data-color="#FF5733"> La France insoumise (78)</label>
<label><input type="checkbox" data-seats="9" data-color="#C70039"> Parti communiste français (9)</label>
<label><input type="checkbox" data-seats="28" data-color="#900C3F"> Les Écologistes (28)</label>
<label><input type="checkbox" data-seats="69" data-color="#581845"> Parti socialiste (69)</label>
<label><input type="checkbox" data-seats="10" data-color="#FFC300"> Divers gauche (10)</label>
<label><input type="checkbox" data-seats="5" data-color="#FF5733"> Divers centre (5)</label>
<label><input type="checkbox" data-seats="33" data-color="#C70039"> Modem (33)</label>
<label><input type="checkbox" data-seats="99" data-color="#900C3F"> Ensemble ! (99)</label>
<label><input type="checkbox" data-seats="26" data-color="#581845"> Horizons (26)</label>
<label><input type="checkbox" data-seats="3" data-color="#FFC300"> Union des Démocrates et Indépendants (3)</label>
<label><input type="checkbox" data-seats="39" data-color="#FF5733"> Les Républicains (39)</label>
<label><input type="checkbox" data-seats="26" data-color="#C70039"> Divers droite (26)</label>
<label><input type="checkbox" data-seats="17" data-color="#900C3F"> LR-RN (17)</label>
<label><input type="checkbox" data-seats="125" data-color="#581845"> Rassemblement National (125)</label>
<label><input type="checkbox" data-seats="1" data-color="#FFC300"> Extrême droite (1)</label>
<label><input type="checkbox" data-seats="9" data-color="#FF5733"> Régionaliste (9)</label>
</div>
<div id="results">
<h2>Résultats de la Coalition</h2>
<p>Total des sièges: <span id="total-seats">0</span></p>
<p>Majorité Absolue: <span id="majority-status">Non</span></p>
</div>
<div id="hemicycle"></div>
<!-- Buy Me a Coffee Button with customization -->
<div id="buy-me-a-coffee">
<div id="bmc-button"></div>
<p id="created-by">Créé par <a href="https://aclee.fr" target="_blank">aclee.fr</a></p>
</div>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="scripts.js"></script>
<!-- Buy Me a Coffee Button Script -->
<script type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="acleefr" data-color="#FFDD00" data-emoji="🍺" data-font="Cookie" data-text="Buy me a beer" data-outline-color="#000000" data-font-color="#000000" data-coffee-color="#ffffff"></script>
</body>
</html>