-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (47 loc) · 1.47 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
<!doctype html>
<html>
<title>Web App – Simple Interest Calculator</title>
<head>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<div class="maindiv" >
<body>
<h1>Simple Interest Calculator</h1>
Amount: <input type="number" id="principal" onchange = "validatePrincipal(this);"> <br />
<br />
Interest Rate:
<input id="intrate" type="range" class="slider" min="1" max="20" step="0.1" value="10.25" oninput="update_rate(this);" />
</span>
<label id="percent">10.25 %</label>
<br/>
</span>
<span class="slidecontainer"></span><br />
No. of Years: <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> <br/>
<span id="result"></span><br>
<button onclick="compute()">Compute Interest</button><br />
<br/>
<label id = "rprincipal"></label><br />
<label id = "rintrate"></label><br />
<label id = "rinterest"></label><br />
<label id = "ryears"></label>
<label id = "rdate"></label><br />
<br />
<footer> © Tom Carr </footer>
</div>
</div>
<br /><br /><br />
</body>
</maindiv>
</html>