Skip to content

Commit 1634fa2

Browse files
committed
Assignment1 Solution
1 parent 4e50d2a commit 1634fa2

File tree

3 files changed

+372
-25
lines changed

3 files changed

+372
-25
lines changed

assignment1/index.html

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
1-
<!doctype html>
2-
<html lang="en">
1+
<!DOCTYPE html>
2+
<html ng-app="LunchCheck">
33
<head>
4-
<title>Lunch Checker</title>
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<link rel="stylesheet" href="styles/bootstrap.min.css">
7-
<style>
8-
.message { font-size: 1.3em; font-weight: bold; }
9-
</style>
4+
<meta charser="utf-8">
5+
<title>Lunch Order</title>
6+
<script src="js/angular.min.js"></script>
7+
<script src="js/app.js"></script>
8+
<link rel="stylesheet" type="text/css" href="styles/bootstrap.min.css">
109
</head>
11-
<body>
12-
<div class="container">
13-
<h1>Lunch Checker</h1>
10+
<body>
11+
<div class="container">
12+
<h1 class="text-center">Lunch Order</h1>
13+
<div ng-controller="LunchCheckController">
14+
<form>
15+
<div class="alert alert-{{noticeType}}" id="message">{{message}}</div>
16+
<br/>
17+
<div class="form-group">
18+
<label for="foodItems">Enter Food Items:</label>
19+
<input type="text" ng-model="foodItems">
20+
</div>
21+
<button class="btn btn-primary" type="submit" ng-click="checkLunchItems()">Check if too much</button>
22+
</form>
1423

15-
<div class="form-group">
16-
<input id="lunch-menu" type="text"
17-
placeholder="list comma separated dishes you usually have for lunch"
18-
class="form-control">
19-
</div>
20-
<div class="form-group">
21-
<button class="btn btn-default">Check If Too Much</button>
22-
</div>
23-
<div class="form-group message">
24-
<!-- Your message can go here. -->
25-
</div>
26-
</div>
27-
28-
</body>
24+
</div>
25+
</div>
26+
</body>
2927
</html>

0 commit comments

Comments
 (0)