-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
101 lines (77 loc) · 3.26 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
<!Doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>My Calories & Me</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--<link rel="shortcut icon" href="assets/img/favicon.ico" />-->
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,700" rel="stylesheet">
<!-- Compressed CSS Foundation -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.7.5/dist/css/foundation.min.css"
crossorigin="anonymous">
<!-- JQuery CDN Link -->
<script src="https://code.jquery.com/jquery-3.6.4.js" integrity="sha256-a9jBBRygX1Bh5lt8GZjXDzyOB+bWve9EiO7tROUtj/E="
crossorigin="anonymous"></script>
<!--link to local css file-->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--header section for displaying title and searchbox -->
<header>
<h1>CALORIES & ME</h1>
<h2 class="subtitle">Discover the nutritional information of all foods!</h2>
<!--rounded search button using foundation framework-->
<form id="search">
<div class="input-group input-group-rounded">
<input name="name" class="input-group-field" type="search" placeholder="Type a food or a meal...">
<div class="input-group-button">
<input type="submit" class="button secondary" value="Search">
</div>
</div>
</form>
</header>
<section>
<div id="diary" class="diary">
<div class="diary">
<h1>Diary</h1>
<div class="diary-header">
<h3>Food Label</h3>
<h4>Food Category</h4>
</div>
<div class="diary-body" >
<ul>
<li><b>Calories: </b><span>--</span></li>
<li><b>Carbohydrates: </b><span>--</span></li>
<li><b>Proteins: </b><span>--</span></li>
<li><b>Fats: </b><span>--</span></li>
</ul>
</div>
</div>
<div class="log-container">
<h1>Daily Log</h1>
<div id="totals-header"> <strong>My Daily Log: </strong> </div>
<div id="totals">
<h6>Calories: <span id="totalCalories"></span></h6>
<h6>Carbohydrates: <span id="totalCarbohydrates"></span></h6>
<h6>Proteins: <span id="totalProteins"></span></h6>
<h6>Fats: <span id="totalFats"></span></h6>
<button id="reset-button" onclick="resetMacros();">Reset</button>
</div>
</div>
</div>
<!--image for the searched product-->
<img src="assets/placeholder.jpg" alt="placeholder" id="food-image">
<!--search results section-->
<div id="result" class="cell-block-y">
</div>
</section>
<!--edamam API link-->
<script src="https://developer.edamam.com/attribution/badge.js"></script>
<!--link to local js file-->
<script src="script.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<a id="contact" href="https://github.com/bibekmain/Project-1-G10.git" target="_blank">Contact Us</a>
</body>
</html>