-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·100 lines (92 loc) · 3.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- (A) TITLE + CHARSET + DESCRIPTION -->
<title>Good Enough Calorie Counter</title>
<meta charset="utf-8">
<meta name="description" content="A calorie counter that is good enough">
<!-- (B) VIEWPORT (ALLOW ZOOM IN, NOT OUT) -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.5">
<!-- (C) WEB APP MANIFEST -->
<!-- https://web.dev/add-manifest/ -->
<link rel="manifest" href="manifest.json">
<!-- (D) GOOD OLD FAVICON -->
<link rel="icon" href="gecc-favicon.png" type="image/png">
<!-- (E) ANDROID/CHROME -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="white">
<!-- (F) IOS APP ICON + MOBILE SAFARI -->
<link rel="apple-touch-icon" href="gecc-icon-512.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Good Enough Calorie Counter">
<!-- (G) WINDOWS -->
<meta name="msapplication-TileImage" content="gecc-icon-512.png">
<meta name="msapplication-TileColor" content="#ffffff">
<!-- (H) STYLESHEET + JAVASCRIPT -->
<link rel="stylesheet" href="style.css">
<script defer src="main.js"></script>
</head>
<body>
<div>
<center>
<h1>GECC</h1>
<p>(a Good Enough Calorie Counter)</p>
<p id="today"></p>
<div id='box-data'>
<span id='mrw'></span>
<p>Daily Calorie Goal: <span id="goal"></span></p>
<p>Remaining Calories: <span id="remaining"></span></p>
</div>
</center>
</div>
<div>
<center>
<h3>Calories Consumed:</h3>
<a id="calories"></a>
</center>
</div>
<center>
<div>
<button type="button" class="controls" onClick="up50Cals()">+50 calories</button>
<button type="button" class="controls" onClick="upCals()">+100 calories</button>
</div>
<br>
<div>
<button type="button" onClick="downCals()">-100 calories</button>
<button type="button" onClick="resetCals()">Reset Calories</button>
<!-- <button type="button" onClick="editGoal()">Edit Goal</button> -->
</div>
<br>
<div>
<button type="button" onClick="editGoal()">Edit Goal</button>
<button type="button" onClick="addWeight()">Edit Weight</button>
</div>
</center>
<hr>
<!-- To be Footer -->
<div class="reference">
<a href="gecc-reference.html" class="reglinks">Calorie reference</a>
<h3>Other Resources:</h3>
<p>
<a href="https://www.nutritionvalue.org/" target="_blank">Nutrition Values</a>
</p>
<!-- <h4><center><a href="gecc-lookup.html">Online Food Lookup</a></center></h4> -->
<!-- <hr>
<h3>Evidence Based Dietary Recommendations:</h3>
<ul>
<li><b>Fruits and Vegetables:</b> <u>1/2 of every meal</u></li>
<li><b>Whole grains:</b> <u>1/4 of every meal</u></li>
<li><b>Legumes and/or animal proteins:</b> <u>1/4 of every meal</u></li>
<li>Water: Primary beverage</li>
<li>Nuts: Small handful daily</li>
<li>Oils/fats: In moderation</li>
<li>Salt: 2,500 mg daily</li>
</ul>
<p><small><i>Am Fam Physician.</i> 2018;97(11):721-728</small></p>-->
</div>
<div id='footer'>
<p><a href='gecc-helps.html'>?</a></p>
<div>
</body>
</html>