-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (71 loc) · 2.8 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gestion des cartes Euro 2024 de Topps</title>
<link rel="stylesheet" href="assets/styles_new/styleGood.css" />
<!-- <link rel="stylesheet" href="assets/css/style2.css" /> -->
<!-- Inclure jsPDF -->
<script src="./assets/libs/jsPDF-1.3.2/jspdf.js"></script>
</head>
<body>
<header>
<nav class="nav-bar">
<ul>
<li id="logo">PAXALOM-UEFA</li>
<li><a href="#cards-missing">Cartes manquantes</a></li>
<li><a href="#cards-owned">Cartes acquises</a></li>
<li><a href="#cards-duplicate">Cartes à double</a></li>
<li>
<button onclick="moveSelectedToOwned()">Ajouter cartes</button>
<button onclick="printOrExportPDF()">Impression</button>
</li>
</ul>
</nav>
</header>
<h1>Gestionnaire de cartes Euro 2024 de Topps</h1>
<section>
<p>Entrez les numéros de carte, séparés par des virgules.</p>
<input type="text" id="cardInput" placeholder="Ex: Sui-1, SUI-2, SUI3" />
<button onclick="addCards()">Ajouter les Cartes</button>
<div id="message"></div>
</section>
<section>
<h2 class="typeOfCards" id="cards-missing">Cartes manquantes</h2>
<ul id="missingCards"></ul>
<div id="groupsContainer"></div>
</section>
<section>
<h2 class="typeOfCards" id="cards-owned">Cartes acquises</h2>
<ul id="ownedCards"></ul>
<button onclick="markAsDuplicate()">Marquer comme double</button>
</section>
<section>
<h2 class="typeOfCards" id="cards-duplicate">Doubles</h2>
<ul id="duplicateCards"></ul>
<input type="text" id="givenInput" placeholder="Ex: SUI-1, SUI2, sui-3" />
<button onclick="markGivenCards()">Enlever double</button>
<div id="messageDouble"></div>
<button onclick="markCheckedAsGiven()">
Marquer sélectionnées comme donné
</button>
</section>
<button onclick="exportDataToJson()">Exporter les données</button>
<button onclick="document.getElementById('fileInput').click()">
Importer les données
</button>
<button id="resetButton">Réinitialiser</button>
<input
type="file"
id="fileInput"
onchange="importDataFromJson(event)"
style="display: none"
/>
<script src="assets/js/scripts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.21/jspdf.plugin.autotable.min.js"></script>
</body>
<footer></footer>
</html>