-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (100 loc) · 5.49 KB
/
Copy pathindex.html
File metadata and controls
115 lines (100 loc) · 5.49 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Generator Sparingów Taekwondo</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="src/css/style.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
</head>
<body>
<div class="container">
<h1 class="text-center app-title mt-4">Generator Sparingów Taekwondo</h1>
<div class="alert alert-info mt-3">
<h4 class="alert-heading">Instrukcja:</h4>
<ol>
<li>Wprowadź listę zawodników w formacie: <code>Imię Nazwisko waga</code> (każdy zawodnik w nowej linii)</li>
<li>Możesz wkleić dane bezpośrednio z Excela (kolumny: imię, nazwisko, waga)</li>
<li>Ustaw maksymalną różnicę wag między zawodnikami</li>
<li>Wybierz liczbę walk dla każdego zawodnika</li>
<li>Wybierz liczbę dostępnych mat</li>
<li>Kliknij "Generuj sparingi"</li>
</ol>
</div>
<div class="form-container">
<form id="sparringForm">
<div class="mb-3">
<label for="athletesData" class="form-label">Dane zawodników:</label>
<textarea
class="form-control"
id="athletesData"
rows="10"
placeholder="Wprowadź dane w formacie: Imię Nazwisko waga np. Jan Kowalski 75 Anna Nowak 62.5"
></textarea>
<div class="small-alert text-muted mt-1">
Możesz wkleić dane bezpośrednio z Excela
</div>
</div>
<div class="options-container">
<div class="mb-3">
<label class="form-label">Różnica wag: <span id="weightDifferenceValue">3 kg</span></label>
<input type="range" class="form-range" id="weightDifferenceRange" min="1" max="10" value="3">
</div>
<div class="mb-3">
<label class="d-block">Liczba walk:</label>
<div class="btn-group" role="group">
<input type="radio" class="btn-check" name="numMatches" id="matches1" value="1">
<label class="btn btn-outline-primary" for="matches1">1 walka</label>
<input type="radio" class="btn-check" name="numMatches" id="matches2" value="2" checked>
<label class="btn btn-outline-primary" for="matches2">2 walki</label>
<input type="radio" class="btn-check" name="numMatches" id="matches3" value="3">
<label class="btn btn-outline-primary" for="matches3">3 walki</label>
<input type="radio" class="btn-check" name="numMatches" id="matches4" value="4">
<label class="btn btn-outline-primary" for="matches4">4 walki</label>
</div>
</div>
<div class="mb-3">
<label class="d-block">Liczba mat:</label>
<div class="btn-group" role="group">
<input type="radio" class="btn-check" name="numMats" id="mat1" value="1" checked>
<label class="btn btn-outline-primary" for="mat1">1 mata</label>
<input type="radio" class="btn-check" name="numMats" id="mat2" value="2">
<label class="btn btn-outline-primary" for="mat2">2 maty</label>
<input type="radio" class="btn-check" name="numMats" id="mat3" value="3">
<label class="btn btn-outline-primary" for="mat3">3 maty</label>
<input type="radio" class="btn-check" name="numMats" id="mat4" value="4">
<label class="btn btn-outline-primary" for="mat4">4 maty</label>
</div>
</div>
</div>
<div class="d-grid gap-2 d-md-flex">
<button type="button" id="generateButton" class="btn btn-primary">Generuj sparingi</button>
<button type="button" id="clearButton" class="btn btn-secondary">Wyczyść</button>
<button type="button" id="exportButton" class="btn btn-success">Eksportuj do Excel</button>
</div>
</form>
<div class="table-responsive mt-4">
<table class="table">
<thead>
<tr>
<th>Nr</th>
<th>Kolejka</th>
<th>Zawodnik 1</th>
<th>Zawodnik 2</th>
<th>Mata</th>
</tr>
</thead>
<tbody id="resultsTableBody"></tbody>
</table>
</div>
</div>
</div>
<footer class="footer text-center">
<div class="container">
<span class="text-muted">Generator Sparingów Taekwondo © 2024</span>
</div>
</footer>
<script type="module" src="src/js/main.js"></script>
</body>
</html>