-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (105 loc) · 4.43 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
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous" />
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
<title>Calories tracker</title>
</head>
<body>
<nav>
<div class="nav-wrapper">
<ul>
<li>
<button id="ru" class="btn-flat btn-medium waves-effect waves-light center white-text" href="#">
РУС
</button>
</li>
<li>
<button id="eng" class="btn-flat btn-medium waves-effect waves-light center white-text" href="#">
ENG
</button>
</li>
</ul>
<div class="container">
<a href="#" class="hide-on-small-only brand-logo center">Calories tracker App</a>
</div>
<ul class="right">
<li>
<a id="clear-all-button" href="#" class="waves-effect waves-light clear-btn btn-small #ff7043 deep-orange lighten-1">Clear all</a>
</li>
</ul>
</div>
</nav>
<br />
<!-- main container begins -->
<div class="container">
<div class="container">
<div class="card">
<div class="card-content">
<span class="card-title">Add Meal & Calories</span>
<form class="col">
<div class="row">
<div class="input-field col s6">
<input type="text" placeholder="Add food" id="item-name" />
<label id="food-label" for="item-name">Food</label>
</div>
<div class="input-field col s6">
<input type="number" placeholder="Add calories" id="item-calories" />
<label id="calories-label" for="item-calories">Calories</label>
</div>
<div class="input-field col s12">
<input type="date" placeholder="Date" id="item-date" />
<label id="date-label" for="item-date">Date</label>
</div>
<!-- Buttons -->
<div class="row">
<div class="col s12">
<button class="waves-effect waves-light add-btn btn-small #8bc34a light-green darken-2">
<span id="add-button">Add Meal</span>
<i class="left fa fa-plus"></i>
</button>
<button class="waves-effect waves-light update-btn btn-small #8bc34a light-green darken-2">
<span id="update-button">Update Meal</span>
<i class="left fa fa-pencil-square-o"></i>
</button>
<button class="waves-effect waves-light delete-btn btn-small #ffab91 deep-orange">
<span id="delete-button">Delete Meal</span>
<i class="left fa fa-remove"></i>
</button>
<button type="button" class="waves-effect waves-light back-btn btn-small grey pull-right">
<span id="back-button">Back</span>
<i class="left fa fa-chevron-circle-left"></i>
</button>
</div>
</div>
<!-- Buttons end here -->
</div>
</form>
</div>
</div>
<h4 id="total-calories-text" class="center-align">
Total Calories: <span class="total-calories">0</span>
</h4>
<ul id="item-list" class="collection">
<!-- Food list goes here -->
</ul>
</div>
<!-- chart container -->
<div id="class-container" class="container">
<canvas id="myChart"></canvas>
</div>
<!-- // main container ends -->
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="modules/uictrl.js" type="module"></script>
<script src="modules/storagectrl.js" type="module"></script>
<script src="modules/itemctrl.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="app.js" type="module"></script>
</body>
</html>