|
1 |
| -<!doctype html> |
2 |
| -<html lang="en"> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html ng-app="LunchCheck"> |
3 | 3 | <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"> |
10 | 9 | </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> |
14 | 23 |
|
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> |
29 | 27 | </html>
|
0 commit comments