-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
160 lines (160 loc) · 7.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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100&family=Roboto+Mono:wght@300&display=swap"
rel="stylesheet">
<link rel="icon" href="img/icon-title.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.min.css"
integrity="sha512-yVvxUQV0QESBt1SyZbNJMAwyKvFTLMyXSyBHDO4BG5t7k/Lw34tyqlSDlKIrIENIzCl+RVUNjmCPG+V/GMesRw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>BJS Rechner</title>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>
</head>
<body id="body">
<div class="calc-container">
<div class="points-container">
<h1><a href="javascript:genderSwap();" id="gender" style="font-size: inherit; color: green">Mädchen</a> Rechner</h1>
<table class="calc sprint" id="sprint">
<tbody>
<tr>
<th rowspan="2" class="hD">Sprint</th>
<th>Zeit</th>
<th>Distanz</th>
<th style="width: 100px">Punkte</th>
</tr>
<tr>
<td>
<p align="center"><input id="sprintSec" type="number" step="0.01" placeholder="0.00" min="0"> sek</p>
<p><input style="width: min-content" type="checkbox" id="tolerance" checked> Handzeitmessung</p>
</td>
<td align="center">
<a href="javascript:sprintPoints(document.getElementById('sprintSec').value, 50)" id="sprint1">50m</a><br>
<a href="javascript:sprintPoints(document.getElementById('sprintSec').value, 75)" id="sprint2">75m</a><br>
<a href="javascript:sprintPoints(document.getElementById('sprintSec').value, 100)" id="sprint3">100m</a><br>
</td>
<td align="center">
<span style="font-size: 1.5rem" id="sprintPoints" class="reset">0</span>
</td>
</tr>
</tbody>
</table>
<table class="calc run" id="run">
<tbody>
<tr>
<th rowspan="2" class="hD">Lauf</th>
<th>Zeit</th>
<th>Distanz</th>
<th style="width: 100px">Punkte</th>
</tr>
<tr>
<td>
<p align="center"><input id="runMin" type="number" placeholder="0" min="0"> min</p>
<p align="center"><input id="runSec" type="number" placeholder="0" min="0"> sek</p>
</td>
<td align="center">
<a href="javascript:runPoints(Number(document.getElementById('runMin').value*60)+Number(document.getElementById('runSec').value), 800)" id="run1">800m</a><br>
<a href="javascript:runPoints(Number(document.getElementById('runMin').value*60)+Number(document.getElementById('runSec').value), 2000)" id="run2">2000m</a><br>
<a href="javascript:runPoints(Number(document.getElementById('runMin').value*60)+Number(document.getElementById('runSec').value), 3000)" id="run3">3000m</a><br>
</td>
<td align="center">
<span style="font-size: 1.5rem" id="runPoints" class="reset">0</span>
</td>
</tr>
</tbody>
</table>
<table class="calc jump" id="jump">
<tbody>
<tr>
<th rowspan="2" class="hD">Sprung</th>
<th>Weite</th>
<th>Art</th>
<th style="width: 100px">Punkte</th>
</tr>
<tr>
<td>
<p align="center"><input id="jumpM" type="number" placeholder="0" min="0"> m</p>
</td>
<td align="center">
<a href="javascript:jumpPoints(Number(document.getElementById('jumpM').value), 'highjump')" id="jump1">Hochsprung</a><br>
<a href="javascript:jumpPoints(Number(document.getElementById('jumpM').value), 'longjump')" id="jump2">Weitsprung</a><br>
</td>
<td align="center">
<span style="font-size: 1.5rem" id="jumpPoints" class="reset">0</span>
</td>
</tr>
</tbody>
</table>
<table class="calc ball" id="ball">
<tbody>
<tr>
<th rowspan="2" class="hD">Wurf/Stoß</th>
<th>Weite</th>
<th>Art</th>
<th style="width: 100px">Punkte</th>
</tr>
<tr>
<td>
<p align="center"><input id="ballM" type="number" step="0.01" placeholder="0.00" min="0"> m</p>
</td>
<td align="center">
<a href="javascript:ballPoints(Number(document.getElementById('ballM').value), 'Ball80G')" id="ball1">Schlagball 80g</a><br>
<a href="javascript:ballPoints(Number(document.getElementById('ballM').value), 'Ball200G')" id="ball2">Schlagball 200g</a><br>
<a href="javascript:ballPoints(Number(document.getElementById('ballM').value), 'shotput')" id="ball3">Kugelstoßen</a><br>
<a href="javascript:ballPoints(Number(document.getElementById('ballM').value), 'slingshot')" id="ball4">Schleuderball</a><br>
</td>
<td align="center">
<span style="font-size: 1.5rem" id="ballPoints" class="reset">0</span>
</td>
</tr>
</tbody>
</table>
<p>Summe der Punkte: <span id="points">0</span></p>
<label for="age">Alter: </label>
<select id="age">
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19+</option>
</select><br>
<span id="cert" style="font-size: 1.5rem">Keine Eingabe</span><br>
<input type="text" id="uid" placeholder="UID..." style="width: 400px; margin: 10px"><br>
<button type="submit" id="addBtn">Hinzufügen</button>
</div>
</div>
<div class="list">
<button onclick="createPdf()" id="pdf">PDF</button>
<table>
<thead>
<tr>
<th style="max-width: 100px">UID</th>
<th>Punkte</th>
<th>Urkunde</th>
</tr>
</thead>
<tbody id="listBody"></tbody>
</table>
</div>
<span style="position: absolute; bottom: 5px; right: 5px;">
<a style="color: inherit" target="_blank" href="https://github.com/ItsSebis/bjs-calc">1.1</a>
<span style="color: #989898">(16.7.23 von <a style="color: inherit" target="_blank" href="https://github.com/ItsSebis">Sebi</a>)</span></span>
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>