-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (46 loc) · 1.46 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>THC-Rechner</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>THC-Gehalt Rechner</h1>
<form id="thcForm">
<label for="gender">Geschlecht:</label>
<input type="range" id="gender" name="gender" min="0" max="1" step="1">
<span id="genderLabel">Männlich</span>
<br>
<label for="thcContent">THC-Gehalt (in %):</label>
<input type="number" id="thcContent" name="thcContent" required>
<br>
<label for="amount">Menge des konsumierten Cannabis (in g):</label>
<input type="number" id="amount" name="amount" required>
<br>
<label for="time">Zeit seit dem Konsum (in Stunden):</label>
<input type="number" id="time" name="time" required>
<br>
<label for="age">Alter:</label>
<input type="number" id="age" name="age" required>
<br>
<label for="weight">Gewicht (in kg):</label>
<input type="number" id="weight" name="weight" required>
<br>
<button type="button" onclick="calculateTHC()">Berechnen</button>
</form>
<div id="resultPopup" class="popup">
<div class="popup-content">
<span class="close" onclick="closePopup()">×</span>
<p id="resultText"></p>
</div>
</div>
<div class="legal">
<p>Hinweis: Diese Berechnungen sind Schätzungen. Keine Garantie für die Richtigkeit der Ergebnisse. Der Ersteller der Website übernimmt keine Haftung.</p>
</div>
</div>
<script src="script.js"></script>
</body>
</html>