forked from AbhayTomar24/coder-x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalories.html
172 lines (146 loc) · 7.43 KB
/
calories.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<!--Google Fonts-->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400&display=swap" rel="stylesheet">
<!--Fontawesome-->
<script src="https://kit.fontawesome.com/f10d4c591f.js" crossorigin="anonymous"></script>
<!--Semantic UI-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.js"></script>
<!--Custom Styles-->
<link rel="stylesheet" href="styles.css">
<title>QuickFit</title>
</head>
<body>
<nav id="navbar" class="ui inverted menu"> <!--Took fixed out-->
<div id="dark-overlay" class="ui container">
<div class="header item">
<a href="index.html"><h1 id="h1-brand" class="ui header">QuickFit</h1></a>
</div>
<div class="header item borderless">
<a href="#"><h2 id="calorie-counter" class="ui header">Calorie Counter</h2></a>
</div>
</div>
</nav>
<!--Main Content-->
<div id="main-calorie" class="ui two column stackable grid">
<div class="column" style="width:70%;margin:auto;">
<!--Search Container-->
<div class="ui raised very padded text segment" id="calorie-container">
<h2 class="ui header center aligned">My Food List <i class="fab fa-nutritionix"></i></h2>
<hr>
<div id="button-container" class="ui three column grid">
<div class="center aligned column">
<button class="ui red button top-button" id="clear" style="padding-left: 34px;">Clear All
<span class="button-icon">
<i class="fas fa-trash-alt"></i>
</span>
</button>
</div>
<div class="center aligned column">
<button class="ui button top-button orange" id="save-all" style="padding-left: 34px;">Save All
<span class="button-icon">
<i class="fas fa-save"></i>
</span>
</button>
</div>
<div class="center aligned column">
<button class="ui green button top-button" id="add-row" style="padding-left: 34px;">Add Row
<span class="button-icon">
<i class="fas fa-plus"></i>
</span>
</button>
</div>
</div>
<div id="food-list" class="ui two column stackable grid padded">
</div>
<div id="total-count">Total = 0</div>
<div id="calorie-calculator" class="ui raised very padded text segment">
<h2 class="ui header center aligned">Calorie Calculator <i class="fad fa-calculator"></i></h2>
<hr>
<div class="ui one column stackable grid">
<h4 class="ui header column">Your Information:</h4>
<div class="ui mini input column">
<span>Gender(Binary):</span>
<label for="male">Male:</label>
<input id="male" type="radio" name="gender">
<label for="female">Female:</label>
<input id="female" type="radio" name="gender">
</div>
<div class="ui mini input column">
<label for="age">Age (Years):</label>
<input id="age" type="number">
</div>
<div class="ui mini input column">
<label for="heightFt">Height (Feet):</label>
<input id="heightFt" type="number">
</div>
<div class="ui mini input column">
<label for="heightIn">Height (Inches):</label>
<input id="heightIn" type="number">
</div>
<div class="ui mini input column">
<label for="weight">Weight (lbs):</label>
<input id="weight" type="number">
</div>
<h4 class="ui header column">Average Activity:</h4>
<div class="ui mini input column">
<label for="sedentary">Sedentary (little/no exercise)</label>
<input id="sedentary" type="radio" name="activity-group">
</div>
<div class="ui mini input column">
<label for="light">Light (exercise 1-3 times per week)</label>
<input id="light" type="radio" name="activity-group">
</div>
<div class="ui mini input column">
<label for="moderate">Moderate (exercise 4-5 times per week)</label>
<input id="moderate" type="radio" name="activity-group">
</div>
<div class="ui mini input column">
<label for="heavy">Heavy (exercise 6-7 times per week)</label>
<input id="heavy" type="radio" name="activity-group">
</div>
<div class="ui column">
<label>Basic Metabolic Rate (kcal/day):</label>
<br>
<span id="bmr"></span>
</div>
<div class="ui column">
<label>Calories Needed (Maintain Weight):</label>
<br>
<span id="totalCals"></span>
<br>
*If goal is to lose weight, calorie intake should be approximately 500 calories below recommended.
If goal is to gain weight, calorie intake should be approximately 500 calories above recommended.
</div>
<div class="ui column">
<button class="big ui primary button" id='calBtn'>Calculate</button>
</div>
</div>
</div>
</div>
</div>
<div class="column">
<!--Calorie Calculator-->
</div>
</div>
<!--Footer Container-->
<div class="footer">
<p>Made by coderX</p>
<div class="footer-icons">
<i class="fab fa-facebook"></i>
<i class="fab fa-instagram"></i>
<i class="fab fa-twitter"></i>
</div>
</div>
<!--Other Scripts-->
<script src="script.js"></script>
<script src="counter.js"></script>
</body>
<!-- <script src='script3.js'></script> -->
</html>