-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWater.html
More file actions
75 lines (71 loc) · 1.95 KB
/
Copy pathWater.html
File metadata and controls
75 lines (71 loc) · 1.95 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
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<title> Water Intake</title>
<!-- Font Awesome CSS CDN -->
<!-- <link rel="stylesheet" href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity=
"sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" /> -->
<link rel="stylesheet" href="water.css">
</head>
<body>
<div class="container">
<h1>Healthy Score</h1>
<h3>Health Tracker App</h3>
<div class="inputs">
<div>
<label for="water">
Water Intake (in ml)
</label>
<input id="water" type="number">
</div>
<div>
<label for="exercise">
Exercise Duration (in min)
</label>
<input id="exercise" type="number">
</div>
<div>
<label for="bloodsugerlevel">
Blood Sugar Level (in mg/dL)
</label>
<input id="bloodsugerlevel" type="number">
</div>
</div>
<button id="submit">Submit</button>
<div id="editSection" class="hidden">
<button id="cancelEdit" onclick="cancelEdit()">
Cancel
</button>
<button id="updateEntry" onclick="editRow()">
Update
</button>
</div>
<table>
<thead>
<tr>
<th>Date</th>
<th>Water Intake <br> (in ml)</th>
<th>Exercise Duration <br> (in min)</th>
<th>Blood Sugar Level <br> (in mg/dL)</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody id="output">
</tbody>
</table>
</div>
<!-- Font Awesome JS CDN -->
<script src=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/all.min.js"
integrity=
"sha512-GWzVrcGlo0TxTRvz9ttioyYJ+Wwk9Ck0G81D+eO63BaqHaJ3YZX9wuqjwgfcV/MrB2PhaVX9DkYVhbFpStnqpQ=="
crossorigin="anonymous" referrerpolicy="no-referrer">
</script>
<script src="water.js"></script>
</body>
</html>