-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (49 loc) · 1.57 KB
/
index.html
File metadata and controls
49 lines (49 loc) · 1.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="index.css">
<title>Punkterechner fuer meine liebe Gruppe :)</title>
</head>
<body>
<div id="container">
<div>
<form action="" id="optifast-calculator">
<p>
<label for="fat">Fat</label>
<input class="formfield" id="fat" name="fat" type="text" autofocus pattern="[+-]?([0-9]*[.])?[0-9]+">
</p>
<p>
<label for="protein">Protein</label>
<input class="formfield" id="protein" name="protein" type="text" pattern="[+-]?([0-9]*[.])?[0-9]+">
</p>
<p>
<label for="carbohydrates">Carbohydrates</label>
<input class="formfield" id="carbohydrates" name="carbohydrates" type="text" pattern="[+-]?([0-9]*[.])?[0-9]+">
</p>
<p>
<label for="mixed">Mixed?</label>
<input class="checkbox" id="mixed" type="checkbox" name="mixed">
</p>
<p><input class="button" type="submit"></p>
</form>
</div>
<div id="result">
<div class="resultBox green">
<span id="green-result"></span>
</div>
<div class="resultBox yellow">
<span id="yellow-result"></span>
</div>
<div class="resultBox red">
<span id="red-result"></span>
</div>
</div>
</div>
<script src="index.js"></script>
<script>
const { addListeners, handleFormData } = opti()
addListeners(handleFormData)
</script>
</body>
</html>