-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnutrition-result.html
150 lines (142 loc) · 6.33 KB
/
nutrition-result.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
<!-- My CSS -->
<link rel="stylesheet" href="./assets/styles/style.css" />
<!-- Favicon -->
<link rel="shortcut icon" href="./assets/images/nutrition.png" />
<title>Nutri Cek | Hasil Nutrisi</title>
</head>
<body>
<header>
<nav id="navbar"></nav>
</header>
<main>
<section id="hasil-nutrisi">
<div class="container mt-4 mt-md-5">
<div class="row justify-content-center align-items-center min-vh-100">
<div class="col-12" id="loading">
<div class="d-flex justify-content-center">
<div class="spinner-border text-primary" style="width: 4rem; height: 4rem" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>
<div class="col-12 d-none" id="result-card">
<div class="card shadow">
<div class="row g-0">
<div class="col-md-4">
<img class="img-fluid rounded-start" id="food-image" alt="Food Image" />
</div>
<div class="col-md-8 mt-3 mt-md-0">
<div class="card-body">
<div class="table-responsive mb-2">
<table class="table table-striped caption-top">
<caption>
Bahan makanan dengan tanda
<i class="bi bi-x-circle-fill" style="color: red"></i>
belum tersedia di database
</caption>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Food</th>
<th scope="col" class="text-end">Qty</th>
<th scope="col">Unit</th>
<th scope="col" class="text-end">Calories (kcal)</th>
<th scope="col" class="text-end">Weight (g)</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12 d-none my-5" id="nutrition-facts">
<div class="card shadow">
<div class="card-body">
<h3 class="card-title text-center">Nutrition Facts</h3>
<div class="table-responsive" style="max-height: 100%">
<table class="table table-bordered">
<tbody>
<tr>
<th width="200">Total Calories</th>
<th id="total-calories"></th>
</tr>
<tr>
<th>Total Weight</th>
<th id="total-weight"></th>
</tr>
<tr>
<th>Total Nutrients</th>
<td>
<div class="table-responsive">
<table class="table table-striped caption-top">
<caption>
*Percent Daily Values are based on a 2000 calorie diet
</caption>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nutrition Code</th>
<th scope="col">Label</th>
<th scope="col" class="text-end">Qty</th>
<th scope="col">Unit</th>
<th scope="col" class="text-end">% Daily Value*</th>
</tr>
</thead>
<tbody id="tbody-result"></tbody>
</table>
</div>
</td>
</tr>
<tr>
<th>Total Nutrients (kcal)</th>
<td>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nutrition Code</th>
<th scope="col">Label</th>
<th scope="col" class="text-end">Qty</th>
<th scope="col">Unit</th>
</tr>
</thead>
<tbody id="tbody-kcal"></tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<footer id="footer"></footer>
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<!-- My Script -->
<script src="./assets/scripts/nutrition-result.js" type="module" async></script>
<script src="./assets/scripts/components/Navbar.js"></script>
<script src="./assets/scripts/components/Footer.js"></script>
<script>
Navbar();
Footer();
</script>
</body>
</html>