-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (45 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
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
<title>Simple Interest Calculator</title>
<style>
.labelClass {
float: left;
width: 150px;
}
.sign {
font-family: Optima;
font-size: 28px;
position: relative;
top: 2px;
}
</style>
</head>
<div class="maindiv">
<h1>Simple Interest Calculator</h1>
<div class="secondarydiv">
<span class="labelClass">Amount</span>
<input "type="number" id="principal">
<br><br>
<span class="labelClass">Interest Rate</span>
<!--slider div-->
<div class="slider">
<input style="accent-color: rgb(120, 120, 234);" type="range" id="rate" min="1" max="20" step="0.10" value="10.25"onchange="updateRate()"></input><span id="rate_val">10.50%</span>
<br><br>
</div>
<!--slider div-->
<span class="labelClass"> No. of Years</span>
<select type="number" 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><br>
<button onclick="compute()"> Compute Interest</button>
<br>
<span id="result"></span>
</div>
<br>
<footer> <span class="sign">©</span> This Calculator was made by Jeremy Halzel </footer>
</div>
</html>