-
Notifications
You must be signed in to change notification settings - Fork 0
/
splitz.html
33 lines (24 loc) · 867 Bytes
/
splitz.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
<!DOCTYPE html>
<html ng-app="bear">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="splitz.js"></script>
<link rel="stylesheet" type="text/css" href="splitz.css">
<title>Splitz</title>
</head>
<body ng-controller="polarbearcontroller">
<p>Each person enters one item's price per field and chooses a color. If Person A has two items, he would enter the price and select red, and then enter the other price and select red again. One color per person.</p>
<div>
<div ng-repeat="price in prices">
Price:<input type="text" ng-model="price.amt">
<br>
<br>
</div>
<div ng-click="Show()">Add Another Price
</div>
Total Tax:<input type="text" ng-model="tax"><br>
<input ng-click="Submit()" value="Submit">
</div>
<div>The total is {{total | currency}}</div>
</body>
</html>