-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·274 lines (268 loc) · 16.4 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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://ogp.me/ns/fb#" lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-122679296-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-122679296-1');
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<meta name="author" content="Shashank Srivastava.">
<meta name="keywords" content="emi calculator, anonymous emi calculator, safe & private emi calculator, secure emi calculator, emi calculator without saving any data, income tax calculator, secure income tax calculator, private income tax calculator, income tax calculator with no data collection, anonymous income tax calculator">
<title>EMI & Income Tax Calculator by Shashank Srivastava</title>
<meta name="description" content="An extremely light-weight, fast web-app with a clean interface to calculate loan EMI & Income Tax, written purely in HTML & JavaScript. No log-in required. No data saved.">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
<link href="https://getbootstrap.com/docs/4.1/examples/pricing/pricing.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link rel="stylesheet" href="dist/css/social-share-kit.css" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js" integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em" crossorigin="anonymous"></script>
<script type="text/javascript" src="numberToWords.min.js"></script>
<script type="text/javascript" src="dist/js/social-share-kit.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-0479862154014237",
enable_page_level_ads: true
});
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5JM9N5M');</script>
<!-- End Google Tag Manager -->
</head>
<script type="text/javascript" src="calcEMI.js"></script>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init();
FB.AppEvents.logPageView();
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.1&appId=2239456259619514&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom box-shadow">
<h5 class="my-0 mr-md-auto font-weight-bold">EMI & Income Tax Calculator</h5>
<nav class="my-2 my-md-0 mr-md-3">
<button class="btn btn-outline-success" type="button" data-toggle="modal" data-target="#featuresModal" onclick="FB.AppEvents.logEvent('buttonClicked')">Features</button>
<!-- Modal -->
<div class="modal fade" id="featuresModal" tabindex="-1" role="dialog" aria-labelledby="featuresModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="featuresModalLabel">Features</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<li><i class="fas fa-calculator"></i> EMI & Income Tax Calculator.</li>
<li><i class="fas fa-sign-in-alt"></i> No sign-in/sign-up required.</li>
<li><i class="fas fa-not-equal"></i> No data collected or stored. 100% safe, secure & private.</li>
<li><i class="fab fa-chrome"></i> All the calculations are done on your browser. There is no backend server.</li>
<li><i class="fas fa-file-pdf"></i> Download your data as PDF.</li>
<li><i class="fas fa-lock"></i> HTTPS site. No one can see the data you enter. Not even you, if you click back.</li>
<li><i class="fas fa-shipping-fast"></i> Loads really fast.</li>
<li><i class="fas fa-file-word"></i> Know the amount you are entering in real time (for EMI Calculator).</li>
<li><i class="fas fa-info"></i> See the breakup of principal & interest amount.</li>
<li><i class="fab fa-js-square"></i> Single page app. Written in pure HTML & JavaScript.</li>
<li><i class="fas fa-feather"></i> Extremely lightweight.</li>
<li><i class="fas fa-thumbs-up"></i> Simple, yet useful.</li>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<button class="btn btn-outline-primary" type="button" data-toggle="modal" data-target="#blogsModal" onclick="FB.AppEvents.logEvent('buttonClicked')">Blogs</button>
<!-- Modal -->
<div class="modal fade" id="blogsModal" tabindex="-1" role="dialog" aria-labelledby="blogsModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="featuresModalLabel">Blogs by me</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<li><i class="fab fa-blogger"></i><a href="https://mymusicrevu.blogspot.com/"> Music Sharing & Reviews.</a></li>
<li><i class="fab fa-blogger"></i><a href="https://shashankstraveldiary.blogspot.com/"> Travel Experience & Guide.</a></li>
<li><i class="fab fa-wordpress"></i><a href="https://watilearnd2day.wordpress.com/"> Linux/DevOps/Automation How To.</a></li>
<li><i class="fab fa-blogger"></i><a href="https://thepagesbetweenfingers.blogspot.com/"> Books Suggestions & Reviews.</a></li>
<li><i class="fab fa-blogger"></i><a href="https://skinny2healthy.blogspot.in/"> Health & Fitness.</a></li>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<a class="btn btn-outline-secondary" href="incometax.html">Income Tax Calculator</a>
</nav>
<a class="btn btn-outline-primary" href="https://shashankshekharsrivastava.github.io/">Home</a>
</div>
<center><div class="fb-like" data-href="https://shashankshekharsrivastava.github.io/" data-layout="button_count" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div></center>
<div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-4">EMI Calculator</h1>
<p class="lead">Enter the Principal, Rate & Duration of the loan.</p>
<hr>
</div>
<center>
<form>
<div class="container">
<div class="form-group w-75">
<h3 class="display-5">Principal Amount</h3>
<div class="input-group-prepend">
<div class="input-group-text">$</div>
<input type="number" class="form-control" id="principal" aria-describedby="principal" placeholder="Enter the Principal" onkeyup="toWords()">
</div>
<small id="principalAmountInput" class="form-text text-primary"></small>
</div>
<div class="form-group w-75">
<h3 class="display-5">Interest Rate</h3>
<div class="input-group-prepend">
<div class="input-group-text">%</div>
<input type="number" class="form-control" id="rate" aria-describedby="rate" placeholder="Enter the Annual Interest Rate">
</div>
<small class="form-text text-secondary">Make sure you enter the actual annual interest rate. It will be automatically adjusted.</small>
</div>
<div class="form-group w-50">
<h3 class="display-5">Duration</h3>
<div class="input-group-prepend">
<div class="input-group-text">#</div>
<input type="number" class="form-control" id="duration" aria-describedby="duration" placeholder="Duration in years" onkeyup="toMonths()">
</div>
<small id="durationInMonths" class="form-text text-info"></small>
</div>
<button type="button" class="btn btn-lg btn-danger" id="calculatEMIBtn" onclick="calc(); FB.AppEvents.logEvent('buttonClicked')" data-toggle="modal" data-target="#exampleModal">Calculate</button>
<button type="button" class="btn btn-lg btn-success" id="calculatBreakupBtn" onclick="calcBreakUp(); FB.AppEvents.logEvent('buttonClicked')" data-toggle="modal" data-target="#totalModal">Breakup</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">EMI Calculator</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body fb-quotable">
<h3 id="myModalLabel" class="animated tada delay-2s"></h3>
<h4 id="myModalLabelinWords" class="text-primary"></h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="shareBtn">Share</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>
document.getElementById('shareBtn').onclick = function() {
FB.ui({
method: 'share',
display: 'popup',
mobile_iframe: true,
href: 'https://shashankshekharsrivastava.github.io/',
}, function(response){});
}
</script>
<!-- Modal -->
<div class="modal fade bd-example-modal-lg" id="totalModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Loan Breakup</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body fb-quotable">
<h3 class="text-info"><u>Below is the brief summary of your loan.</u></h3>
<h5 class="text-success animated jello delay-2s" id="totalAmountModalLabel"></h5>
<h5 class="text-danger" id="totalInterestModalLabel"></h5>
<div class="chart" id="chart_div">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="shareBreakupBtn">Share</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<script>
document.getElementById('shareBreakupBtn').onclick = function() {
FB.ui({
method: 'share',
display: 'popup',
mobile_iframe: true,
href: 'https://shashankshekharsrivastava.github.io/',
}, function(response){});
}
</script>
</form>
<hr>
<p class="text-monospace">Support this site. Please share with your friends.</p>
<div class="fb-save" data-uri="https://shashankshekharsrivastava.github.io/" data-size="large"></div>
<div class="ssk-group ssk-count">
<a href="" class="ssk ssk-facebook ssk-lg" data-url="https://shashankshekharsrivastava.github.io/" data-text="EMI & Income Tax Calculator by Shashank Srivastava. No log-in required."></a>
<a href="" class="ssk ssk-twitter ssk-lg" data-via="shashanksriva"></a>
<a href="" class="ssk ssk-google-plus ssk-lg" data-url="https://shashankshekharsrivastava.github.io/"></a>
<a href="" class="ssk ssk-linkedin ssk-lg" data-url="https://shashankshekharsrivastava.github.io/" data-text="EMI & Income Tax Calculator by Shashank Srivastava. No log-in required."></a>
<a href="whatsapp://send?text=Calculate%20EMI%20and%20Income%20Tax%20with%20ease.%20No%20sign-in/sign-up required.%20No%20data%20collected.%20100%%20private.%20Visit%20https://shashankshekharsrivastava.github.io" class="ssk ssk-whatsapp ssk-lg"></a>
</div>
</center>
<script type="text/javascript">
SocialShareKit.init();
</script>
<center>
<div id="disqus_thread" class="container"></div>
</center>
<script>
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://https-shashankshekharsrivastava-github-io.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<hr>
<center>
<div class="footer">
<h3><span class="badge badge-primary fa-spin"><></span> with <span class="badge badge-danger"><i class="fas fa-heart fa-spin"></i></span> by <span class="badge badge-info">Shashank Srivastava</span></h3>
<p class="text-secondary">This site is for the reference only. It can't be used as a legal proof. Always check with a CA when in doubt.</p>
<p class="text-info">Connect with me on social media. I would love to see you there!</p>
<div>
<a href="https://twitter.com/shashanksriva" class="ssk ssk-text ssk-twitter" data-ssk-ready="true">Twitter</a>
<a href="https://www.facebook.com/shazmix" class="ssk ssk-text ssk-facebook" data-ssk-ready="true">Facebook</a>
<a href="https://www.youtube.com/channel/UC_ZC2oiiJUjdffCqIZ5lLKw" class="ssk ssk-text ssk-youtube" data-ssk-ready="true">YouTube</a>
<a href="https://www.instagram.com/shashanksriva/" class="ssk ssk-text ssk-instagram" data-ssk-ready="true">Instagram</a>
<a href="https://plus.google.com/+ShashankSrivastava" class="ssk ssk-text ssk-google-plus" data-ssk-ready="true">Google+</a>
</div>
</div>
</center>
<div class="fb-quote"></div>
<script id="dsq-count-scr" src="//https-shashankshekharsrivastava-github-io.disqus.com/count.js" async></script>
</body>
</html>