-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
109 lines (103 loc) · 4.17 KB
/
index.html
File metadata and controls
109 lines (103 loc) · 4.17 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Rubik|Scope+One" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>MacroMan</title>
</head>
<body class="white">
<header>
<nav class="cyan ">
<div class="container nav-wrapper">
<a href="index.html" class="brand-logo left">MacroMan</a>
<ul class="right ">
<li><a id="idLink" href="#about">About</a></li>
</ul>
</nav>
</header>
<main class="container">
<div id="about" class="card cyan accent-3">
<div class="card-content white-text">
<span class="card-title">What is MacroMan?</span>
<p> MacroMan is a tool that makes tracking your macronutrients simple. </p>
<span class="card-title">How do you use it?</span>
<p>Start by entering your macronutrients in grams. A search bar will drop down along with your chart of calories and macronutrients. Search for the food you want, when you find it, add it and watch your calories change!</p>
</div>
<div class="card-action">
<button class="dismiss right cyan btn waves-effect waves-light" type="button">Dismiss</button>
</div>
</div>
<form id="macroSubmit">
<div class="row">
<div class="col s12 m4 input-field">
<input id="userFats" type="number" name="fats" required>
<label for="fats">Enter Fats in grams</label>
</div>
<div class="col s12 m4 input-field">
<input id="userCarbs" type="number" name="carbs" required>
<label for="carbs">Enter Carbohydrates in grams</label>
</div>
<div class="col s12 m4 input-field">
<input id="userProtein" type="number" name="protein" required>
<label for="protein">Enter Protein in grams</label>
</div>
</div>
<button class="cyan btn waves-effect waves-light" type="submit" name="macroButton">Submit</button>
</form>
<form id="searchSubmit">
<div class="input-field">
<input id="searchInput" type="search" name="search" required>
<label for="search">Search for a food!</label>
</div>
<button class="search cyan lighten-1 btn waves-effect waves-light" type="submit" name="button">Search<i class="material-icons right">send</i></button>
<button class="clear-search cyan lighten-1 btn waves-effect waves-light" type="reset" name="button">Clear Search</button>
</form>
<section class="results row">
</section>
<section class="row">
<ul class="collection with-header listNutrients col s12">
</ul>
<table id="search-results" class="highlight centered col s12">
<thead>
<tr>
<th></th>
<th>Brand Name</th>
<th>Name</th>
<th>Calories</th>
<th>Fats</th>
<th>Carbohydrates</th>
<th>Protein</th>
</tr>
<tbody class="nutritionFacts">
</tbody>
</thead>
</table>
</section>
</main>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.min.js"></script>
<script src="./Scripts/app.js" type="text/javascript"></script>
<script src="./Scripts/results.js" charset="utf-8"></script>
<footer class="page-footer cyan accent-3">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">MacroMan</h5>
<p class="grey-text text-lighten-4">Made by Jason CLifton</p>
</div>
<div class="col l4 offset-l2 s12">
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2017 Copyright CliffDog Designs
</div>
</div>
</footer>
</body>
</html>