-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (41 loc) · 1.78 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
<!-- Testing HTML5, CSS and JavaScript -->
<!DOCTYPE html>
<html>
<!-- The title can be seen usually in the upper border of the window of the browser or the tab -->
<title>Simple Interest Calculator by RAG -- Final Project</title>
<head>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="maindiv">
<h1>Simple Interest Calculator</h1>
<!-- The paragraph was added to indent the text (style) as required by customer -->
<p class="indented">
Amount <input type="number" id="principal"><br/><br/>
Rate <input type="range" id="rate"
min="1" max="20" step=".25" value="10.25"
onchange="updateRate()">
<span id="rate_val">10.25%</span><br/><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/><br/>
<button onclick="compute()">Compute Interest</button><br/><br/>
<span id="result"></span><br/>
</p>
<!-- The footer contains the copyright sign as required -->
<footer>
© This Calculator Belongs to Rafael Aiquel Garbarini
</footer>
</div>
</body>
</html>