-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (43 loc) · 1.36 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
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>GST Calculator - Rocket</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<style>
body {
margin-top: 15%;
}
</style>
</head>
<body>
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">GST Calculator</div>
<div class="panel-body">
<div class="input-group input-group-lg">
<span class="input-group-addon" id="totalAmount">$</span>
<input type="number"
class="form-control"
id="totalAmount"
ng-model="inputVal"
placeholder="Total receipt amount">
</div>
</div>
<ul class="list-group">
<li class="list-group-item">
GST Exclusive Amount
<span class="pull-right">$ {{inputVal? (inputVal/1.1 | number: 2) : 0}}</span>
</li>
<li class="list-group-item">
GST Amount
<span class="pull-right">$ {{inputVal? (inputVal/11 | number: 2) : 0}}</span>
</li>
</ul>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
</body>
</html>