-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (43 loc) · 1.5 KB
/
index.html
File metadata and controls
45 lines (43 loc) · 1.5 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
<!doctype html>
<html ng-app="elevator">
<head>
<link rel="stylesheet" type="text/css" href="css/elevator.css">
<script src="js/angular.min.js"></script>
<script src="js/elevator.js" charset="UTF-8"></script>
</head>
<body ng-controller="ElevatorCtrl">
<section>
<h2>Floor schematics</h2>
<table>
<tr ng-repeat="floor in floors">
<th scope="row" ng-class="car.active(floor.n) && 'active'">
<span ng-show="car.active(floor.n)" ng-bind="car.state()"></span>
</th>
<td>{{floor.title}}</th>
<td ng-class="floor.light">●</td>
<td>
<button type="button">Call</button>
<button type="button" ng-disabled="!car.canOpen(floor.n)">Open door</button>
</td>
<tr>
</table>
</section>
<section>
<h2>Controls in car</h2>
<ul>
<li ng-repeat="floor in floors">
<button type="button" ng-disabled="!car.occupied" ng-click="panel.press(floor.n)" ng-class="panel.btnClass(floor.n)">{{floor.title}}</button>
</li>
<li>
<button class="stop" type="button" ng-disabled="!car.occupied" ng-click="panel.stop()">STOP</button>
</li>
</ul>
</section>
<section>
<h2>User controls</h2>
<button type="button">Open car door</button>
<button type="button" ng-click="car.stepIn()">Step in</button>
<button type="button" ng-click="car.stepOut()">Step out</button>
</section>
</body>
</html>