-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (38 loc) · 1.65 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>
<head>
<title>Simple Interest Calculator</title>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="maindiv">
<div class="row1"><h1>Simple Interest Calculator</h1></div>
<div class="row2a"><p>Amount</p></div>
<div class="row2b"><input id="principal" type="number"></div>
<div class="row3a"><p>Interest Rate</p></div>
<div class="row3b">
<input id="rate" type="range" min="1" max="20" step="0.25" value="10.25" onchange="updateRate()">
<span id="rate_val">10.25%</span>
</div>
<div class="row4a"><p>No. of years</p></div>
<div class="row4b">
<select id="years">
<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>
</select>
</div>
<div class="row5"><button id="compute" onclick="compute()">Compute Interest</button></div>
<div class="row6"><span id="result"></span></div>
<div class="row7"><footer id="footer">© Everyone Can Get Rich</footer></div>
</div>
</body>
</html>