-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (76 loc) · 3.27 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
<!doctype html>
<html lang="en">
<head>
<title>Calorie Counter</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div class="container main-container">
<nav class="navbar navbar-expand-sm navbar-light bg-light">
<a class="navbar-brand" href="#">Calorie Counter</a>
<button class="navbar-toggler d-lg-none" type="button" data-toggle="collapse" data-target="#collapsibleNavId"
aria-controls="collapsibleNavId" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavId">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item">
<a class="nav-link" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/analytics.html">Analytics</a>
</li>
</ul>
</div>
</nav>
<div class="container page-form">
<form method="POST" id="meal-form">
<h3>Enter meal:</h3>
<div class="form-group">
<label for="name">Meal Name</label>
<input type="text" name="name" id="meal-input-name" class="form-control" placeholder="Name of meal"
aria-describedby="helpId">
</div>
<div class="form-group">
<label for="thing">Calories</label>
<input type="number" class="form-control form-control-sm" name="calories" id="meal-input-calories"
aria-describedby="helpId" placeholder="Calorie Count">
</div>
<input id="meal-submit" class="btn btn-primary" type="submit" value="Submit">
</form>
</div>
<div class="container page-form">
<form method="POST" id="weight-form">
<h3>Enter weight:</h3>
<div class="form-group">
<label for="weight">Weight</label>
<input type="number" name="weight" id="weight-input-weight" class="form-control" placeholder="Current Weight"
aria-describedby="helpId">
</div>
<input id="weight-submit" class="btn btn-primary" type="submit" value="Submit">
</form>
</div>
<div class="alert alert-primary alert-dismissible fade alert-container" role="alert" id="alert">
<strong>Submitted!</strong>
</div>
</div>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
crossorigin="anonymous"></script>
<!-- D3 -->
<script src="https://d3js.org/d3.v7.min.js"></script>
<!-- Custom Scripts -->
<script src="/js/main.js"></script>
</body>
</html>