-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (44 loc) · 2.02 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
<!DOCTYPE html>
<html>
<head>
<title>Simple Interest Calculator</title>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="maindiv">
<h1>Simple Interest Calculator</h1>
Amount <input type="number" placeholder="Enter your Amt." id="principal"> <br/>
Rate <input type="range" id="rate" min="1" max="20" value="12" step="0.25" onchange="updateRate()">
<span id="rate_val">
12
</span>% <br/><br>
No. of Years
<input type="text" id="years" list="all_years" placeholder="select from drop-down" style="background-color: rgba(223, 223, 223, 0.75); color: rgb(44, 44, 44); border-radius: 1.5rem; text-align: center; font-size: large; border: none;">
<datalist id="all_years">
<option value="Select"></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</datalist> <br>
Interest : <span id="result"></span><br>
<br>
<button onclick="compute()">Compute Interest</button>
<span id="result">
</span>
</div>
<br>
<footer>
<p style="margin-top: 0; background-color: rgba(54, 54, 54, 0.15); width: 21rem; border-radius: 15px; text-align: center; color: rgb(26, 25, 25);">© Made with ❤️ by Abhi Jha.</p>
</footer>
</body>
</html>