-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (105 loc) · 4.39 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="https://cdn.pixabay.com/photo/2015/03/28/10/21/diet-695723_960_720.jpg" />
<meta
name="description"
content="Calories Counter, created using functional programming"
/>
<meta name="robots" content="index,follow"/>
<meta name="keywords" content="JavaScript, DOM, functional programming, closure, currying, Higher Order Functions, compose">
<meta name="author" content="Guadalupe Monge Barale">
<meta name="image" content="https://raw.githubusercontent.com/GuadaMongeBarale/functional/main/img/calories-counter.png" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@guaditaemprende" />
<meta name="twitter:creator" content="@guaditaemprende" />
<meta name="twitter:image" content="https://raw.githubusercontent.com/GuadaMongeBarale/functional/main/img/calories-counter.png" />
<meta property="og:url" content="https://github.com/GuadaMongeBarale/functional" />
<meta property="og:title" content="Calories Counter, created using functional programming" />
<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 table-responsive-xl">
<thead>
<tr>
<th scope="col">Description</th>
<th scope="col">QTY</th>
<th scope="col">Calories</th>
<th scope="col">Carbs</th>
<th scope="col">Protein</th>
<th scope="col"></th>
<th scope="col"></th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
<thead class="thead-light">
<tr>
<th>Totals</th>
<th id="tQTY" >0</th>
<th id="tCalories" >0</th>
<th id="tCarbs" >0</th>
<th id="tProtein" >0</th>
<th ></th>
<th ></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="qty" placeholder="QTY" />
</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
id="btn"
class="btn btn-primary mb-2"
onclick="validateInputs()"
title="You have to write the values per consumed unit
Example: If you ate 3 slices of bread,
Description = slices of bread
QTY = 3
Calories = 67
Carbs = 11
Protein = 8.5"
>
<i id="icon" class="fas fa-plus"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/main.js"></script>
</body>
</html>