-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·68 lines (63 loc) · 1.66 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE HTML>
<html ng-app="myCalculator">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="assets/calculator.css">
<script type="text/javascript" src="assets/angular.min.js"></script>
<script type="text/javascript" src="assets/calculator.js"></script>
<title>Calculator</title>
</head>
<body>
<div id="myCalculator" ng-controller="CalculatorController">
<main>
<section class="inc">
<div>
<h4>Incandescent</h4>
<p>{{inc_wattage}}</p>
<p>{{inc_cost}}</p>
</div>
</section>
<section class="hal">
<div>
<h4>Halogen</h4>
<p>{{hal_wattage}}</p>
<p>{{hal_cost}}</p>
</div>
</section>
<section class="cfl">
<div>
<h4>CFL</h4>
<p>{{cfl_wattage}}</p>
<p>{{cfl_cost}}</p>
</div>
</section>
<section class="led">
<div>
<h4>LED</h4>
<p>{{led_wattage}}</p>
<p>{{led_cost}}</p>
</div>
</section>
</main>
<form>
<div>
<h4>Lumens</h4>
<p>Brightness <br>of bulb</p>
<select ng-change="calculate()" ng-model="current_lumens" ng-options="o as o for o in lumen_options">
</select>
</div>
<div>
<h4>kWh</h4>
<p>Kilowatt-<br>hour cost</p>
<input type="number" ng-change="calculate()" ng-model="current_cost" value="{{current_cost}}"> cents
</div>
<div>
<h4>Hours</h4>
<p>Usage <br>per day</p>
<input type="number" ng-change="calculate()" ng-model="current_hours" value="{{current_hours}}">
</div>
</form>
</div>
</body>
</html>