-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ejs
executable file
·216 lines (211 loc) · 10.5 KB
/
index.ejs
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!doctype html>
<html lang="en" ng-app="TTRApp">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1">
<meta name="description" content="Calculator 1">
<link rel="icon" href="images/abc.ico" type="image/x-icon">
<title>Insurance Adequacy Calculator</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-select.min.css">
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="css/font-awesome.css">
<link rel="stylesheet" href="css/nouislider.min.css">
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
</head>
<body ng-cloak>
<div class="otrp-calculator container-fluid " ng-controller="IAController">
<div class="row title" style="text-align:center">
<h1>Insurance Adequacy Calculator</h1>
</div>
<div class="row content">
<div class="col-xs-12 col-sm-12 col-lg-12">
<div class="row result-div">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="row secondChart">
<div class="col-xs-12 col-sm-6 col-md-6">
<div class="row">
<div class="col-xs-12" id="chartBox">
<div id="containerS" style="margin:0 auto;width: 327px; height: 220px; margin-top:15px;"></div>
<div id="containerB" style="margin:0 auto;width: 327px; height: 220px; margin-top:15px;"></div>
<!-- <div id="containerR" style="display:none;margin:0 auto;width: 327px; height: 300px; margin-top:15px;"></div> -->
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
<div class="row">
<div class="col-xs-12" id="chartBox">
<div id="containerS2" style="margin:0 auto;width: 327px; height: 220px; margin-top:15px;"></div>
<div id="containerB2" style="margin:0 auto;width: 327px; height: 220px; margin-top:15px;"></div>
<!-- <div id="containerR2" style="display:none;margin:0 auto;width: 327px; height: 300px; margin-top:15px;"></div> -->
</div>
</div>
</div>
</div>
<div class="row secondChart">
<div class="col-xs-12 col-sm-6 col-md-6">
<div class="row">
<div class="col-xs-12" id="chartBox">
<div id="containerS3" style="margin:0 auto;width: 327px; height: 220px; margin-top:15px;"></div>
<div id="containerB3" style="margin:0 auto;width: 327px; height: 220px; margin-top:15px;"></div>
<!-- <div id="containerR3" style="display:none;margin:0 auto;width: 327px; height: 300px; margin-top:15px;"></div> -->
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
<div class="row">
<div class="col-xs-12" id="chartBox">
<div id="containerS4" style="margin:0 auto;width: 327px; height: 220px; margin-top:15px;"></div>
<div id="containerB4" style="margin:0 auto;width: 327px; height: 220px; margin-top:15px;"></div>
<!-- <div id="containerR4" style="display:none;margin:0 auto;width: 327px; height: 300px; margin-top:15px;"></div> -->
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 wpText">
The Waiting Period For Income Protection is {{waitingPeriod }} days.
</div>
</div>
<div class="row">
<div class="col-xs-1"></div>
<div class="col-xs-10">
<table class="table table-reflow table-bordered" ng-show="buyOption" style="margin-top:30px;">
<thead>
<tr>
<th>Name/Value</th>
<th>Death Cover</th>
<th>TPD Cover</th>
<th>IP Cover</th>
<th>Trauma Cover</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Existing Cover</th>
<td>{{ecL | currency}}</td>
<td>{{ecT | currency}}</td>
<td>{{ecI | currency}}</td>
<td>{{ecTr | currency}}</td>
</tr>
<tr>
<th scope="row">Estimated Cover Scenario One</th>
<td>{{resultS1.life | currency}}</td>
<td>{{resultS1.TPD | currency}}</td>
<td>{{resultS1.IP | currency}}</td>
<td>{{resultS1.trauma | currency}}</td>
</tr>
<tr>
<th scope="row">Estimated Excess/ShortFall</th>
<td>{{sfLife1 | currency}}<span ng-show="needLife1">(Short)</span>
<span ng-show="!needLife1">(Excess)</span></td>
<td>{{sfTPD1 | currency}}<span ng-show="needTPD1">(Short)</span>
<span ng-show="!needTPD1">(Excess)</span></td>
<td>{{sfIP1 | currency}}<span ng-show="needIP1">(Short)</span>
<span ng-show="!needIP1">(Excess)</span></td>
<td>{{sfTrauma1 | currency}}<span ng-show="needTrauma1">(Short)</span>
<span ng-show="!needTrauma1">(Excess)</span></td>
</tr>
<tr>
<th scope="row">Estimated Cover Scenario Two</th>
<td>{{resultS2.life | currency}}</td>
<td>{{resultS2.TPD | currency}}</td>
<td>{{resultS2.IP | currency}}</td>
<td>{{resultS2.trauma | currency}}</td>
</tr>
<tr>
<th scope="row">Estimated Excess/ShortFall</th>
<td>{{sfLife2 | currency}}<span ng-show="resultS2.life<ecL">(Short)</span>
<span ng-show="!resultS2.life<ecL">(Excess)</span></td>
<td>{{sfTPD2 | currency}}<span ng-show="resultS2.TPD<ecT">(Short)</span>
<span ng-show="!resultS2.TPD<ecI">(Excess)</span></td>
<td>{{sfIP2 | currency}}<span ng-show="resultS2.IP<ecI">(Short)</span>
<span ng-show="!resultS2.IP<ecI">(Excess)</span></td>
<td>{{sfTrauma2 | currency}}<span ng-show="resultS2.trauma<ecTr">(Excess)</span>
<span ng-show="!resultS2.trauma<ecTr">(Short)</span></td>
</tr>
</tbody>
</table>
<table class="table table-reflow table-bordered" ng-show="!buyOption" style="margin-top:30px;">
<thead>
<tr>
<th>Name/Value</th>
<th>Death Cover</th>
<th>TPD Cover</th>
<th>IP Cover</th>
<th>Trauma Cover</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Existing Cover</th>
<td>{{ecL | currency}}</td>
<td>{{ecT | currency}}</td>
<td>{{ecI | currency}}</td>
<td>{{ecTr | currency}}</td>
</tr>
<tr>
<th scope="row">Estimated Cover</th>
<td>{{resultS1.life | currency}}</td>
<td>{{resultS1.TPD | currency}}</td>
<td>{{resultS1.IP | currency}}</td>
<td>{{resultS1.trauma | currency}}</td>
</tr>
<tr>
<th scope="row">Estimated Excess/ShortFall</th>
<td>{{sfLife1 | currency}}<span ng-show="needLife1">(Short)</span>
<span ng-show="!needLife1">(Excess)</span></td>
<td>{{sfTPD1 | currency}}<span ng-show="needTPD1">(Short)</span>
<span ng-show="!needTPD1">(Excess)</span></td>
<td>{{sfIP1 | currency}}<span ng-show="needIP1">(Short)</span>
<span ng-show="!needIP1">(Excess)</span></td>
<td>{{sfTrauma1 | currency}}<span ng-show="needTrauma1">(Short)</span>
<span ng-show="!needTrauma1">(Excess)</span></td>
</tr>
</tbody>
</table>
</div>
<div class="col-xs-1"></div>
</div>
<div class="row" ng-show="buyOption">
<div class="col-xs-1"></div>
<div class="col-xs-10">
<span class="scenerio-info">Scenario One : The scenario that your spouse does not intend to move to a smaller property if an insured event occurs.<br>Scenario Two : The scenario that your spouse would like to move to a smaller property if an insured event occurs.</span>
</div>
<div class="col-xs-1"></div>
</div>
<div class="row">
<div class="col-xs-12">
<img src="images/client-logo.png" class="comp-logo" />
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// var insObj = <%- data %>
var insObj =<%-JSON.stringify(data)%>
// console.log("ejs",insObj);
</script>
<script src="js/jquery-2.2.4.min.js" type="text/javascript"></script>
<script src="js/angular.min.js" type="text/javascript"></script>
<script src="js/bootstrap-select.min.js" type="text/javascript"></script>
<script src="js/ui-bootstrap-tpls-1.3.3.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/app.js" type="text/javascript"></script>
<script src="js/controller.js" type="text/javascript"></script>
<script src="js/AgeCalculatorService.js" type="text/javascript"></script>
<script src="js/TaxRateCalculatorService.js" type="text/javascript"></script>
<script src="js/SGCRateCalculator.js" type="text/javascript"></script>
<!-- <script src="js/nouislider.min.js" type="text/javascript"></script> -->
<script src="js/hc/highcharts.js" type="text/javascript"></script>
<script src="js/hc/highcharts-3d.js" type="text/javascript"></script>
<script src="js/hc/data.js" type="text/javascript"></script>
<script src="js/hc/exporting.js" type="text/javascript"></script>
<script src="js/hc/sand-signika.js" type="text/javascript"></script>
<script src="js/hc/chartService.js" type="text/javascript"></script>
</body>
</html>