-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (50 loc) · 1.71 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
<!DOCTYPE html>
<html lang="en" ng-app="FoodApplication">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js" type="application/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-sanitize.js"></script>
<title>Yummy Nutrition</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./bootstrap-3.3.7-dist/css/bootstrap.css">
<script src="./food.js"></script>
<style type="text/css">
body {
background-color: #cfebfd;
}
.food-display {
background: #ececec;
width: 200px;
padding: 1.5em;
margin-left: 20px;
border: 1px black solid;
border-radius: 5px;
display: table;
margin-right: auto;
margin-left: auto;
}
.food-form {
display: table;
margin-right: auto;
margin-left: auto;
}
</style>
</head>
<body ng-app="FoodApplication" ng-controller="FoodController">
<div class="jumbotron">
<h1 class="text-center">Yummy Nutrition</h1>
</div>
<div class="food-form">
<div class="form-group col-lg-7">
<input class="form-control" placeholder="Food" ng-model="food" />
</div>
<input class="btn btn-primary" type="submit" ng-click="submition(food)" value="View Nutrition" />
</div>
<br/><br/>
<div id="foodDisplay">
<p ng-bind-html="nutrition.html"></p>
</div>
</body>
</html>