-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
76 lines (72 loc) · 2.65 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
<title>Calories Counter</title>
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-9">
<div class="card my-5 bg-light text-center">
<div class="card-header">
<h1>Calories Counter</h1>
</div>
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Description</th>
<th scope="col">Calories</th>
<th scope="col">Carbs</th>
<th scope="col">Protein</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
<thead class="thead-light">
<tr>
<th>Totals</th>
<th id="totalCalories">0</th>
<th id="totalCarbs">0</th>
<th id="totalProtein">0</th>
<th></th>
</tr>
</thead>
</table>
</div>
<div class="card-footer">
<div class="row mb-2">
<div class="col">
<input type="text" class="form-control mb-2 mr-sm-2" id="description" placeholder="Description">
</div>
<div class="col">
<input type="number" min="0" class="form-control mb-2 mr-sm-2" id="calories" placeholder="Calories">
</div>
<div class="col">
<input type="number" min="0" class="form-control mb-2 mr-sm-2" id="carbs" placeholder="Carbs">
</div>
<div class="col">
<input type="number" min="0" class="form-control mb-2 mr-sm-2" id="protein" placeholder="Protein">
</div>
<div class="col">
<button class="btn btn-primary mb-2" onclick="validateInputs()">
<i class="fas fa-plus"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>