-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
94 lines (81 loc) · 3.01 KB
/
index.html
File metadata and controls
94 lines (81 loc) · 3.01 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
<!DOCTYPE html>
<html >
<head>
<title>Burger King</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
<style type="text/css">
nav {
color: #000 !important;
background-color: #6ea1ee !important;
width: 100%;
height: 56px;
line-height: 56px;
}
.brand-logo
{
color: #000 !important;
}
</style>
</head>
<body ng-cloak ng-app="App" ng-controller="mainCtrl">
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo" >Burger App</a>
<!-- <ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="sass.html">Sass</a></li>
<li><a href="badges.html">Components</a></li>
<li><a href="collapsible.html">JavaScript</a></li>
</ul> -->
</div>
</nav>
<div class="row">
<div class="col s6">
<div class="input-field col s3">
<input id="search" type="text" class="validate" ng-model="nameFilter" placeholder="Search">
<!-- <label for="email">Search</label> -->
</div>
<div class="input-field col s3">
<input id="search" type="text" class="validate" ng-model="priceFilter" placeholder="Price">
<!-- <label for="email">Search</label> -->
</div>
<table>
<tr>
<th>Name</th>
<th>Price</th>
<th></th>
</tr>
<tr ng-repeat="item in menu | filter:{name:nameFilter} | filter:{price:priceFilter}">
<td>{{ item.name | titleCase }}</td>
<td>{{ item.price }}</td>
<td><a class="waves-effect waves-light btn" ng-click="addItem(item.name);updatePrice(item.price)">Add</a></td>
</tr>
</table>
</div>
<div class="col s6">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">Your Burger</span>
<ul id="orderItm" ng-repeat="item in order.items" >
<li>{{ item | titleCase }} </li>
</ul>
<b>Price</b> : {{ order.price }}
</div>
<div class="card-action">
<a href="#" ng-model="order" onclick="M.toast({html: 'Your burger will be delivered in 15 Minutes..!',completeCallback:function(){ location.reload();}})">Submit Order</a>
</div>
</div>
</div>
</div>
<div class="menu" >
</div>
<script src="/node_modules/angular/angular.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular-route.js"></script>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/js/materialize.min.js"></script>
<script src="scripts/app.js"></script>
<script src="components/main.ctrl.js"></script>
</body>
</html>