-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (70 loc) · 3.23 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
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Car Leasing Calculator</title>
<link rel="stylesheet" href="styles.css"> <!-- Link to external CSS file -->
</head>
<body>
<div class="container">
<h1>Car Leasing Calculator</h1>
<!-- Form for user inputs -->
<form id="leasing-form">
<!-- First row of form inputs -->
<div class="form-row">
<!-- Car Type Dropdown -->
<div class="form-group">
<label for="car-type">Car Type:</label>
<select id="car-type" name="car-type">
<option value="new">Brand New</option>
<option value="used">Used</option>
</select>
</div>
<!-- Lease Period Dropdown -->
<div class="form-group">
<label for="lease-period">Lease Period (months):</label>
<select id="lease-period" name="lease-period">
<option value="12">12</option>
<option value="24">24</option>
<option value="36">36</option>
<option value="48">48</option>
<option value="60">60</option>
</select>
</div>
</div>
<!-- Second row of form inputs -->
<div class="form-row">
<!-- Car Value Input with Range -->
<div class="form-group">
<label for="car-value">Car Value (€10,000 - €200,000):</label>
<input type="number" id="car-value" name="car-value" min="10000" max="200000" step="1000">
<input type="range" id="car-value-range" name="car-value-range" min="10000" max="200000" step="1000">
</div>
<!-- Down Payment Input with Range -->
<div class="form-group">
<label for="down-payment">Down Payment (10% - 50%):</label>
<input type="number" id="down-payment" name="down-payment" min="10" max="50" step="5">
<input type="range" id="down-payment-range" name="down-payment-range" min="10" max="50" step="5">
</div>
</div>
</form>
<!-- Results section -->
<div id="results" class="results">
<h2>Leasing Details</h2>
<div class="details">
<!-- Detailed results display -->
<div class="detail-item">
<p>Total Leasing Cost: €<span id="leasing-cost">0</span></p>
<p>Down Payment: €<span id="down-payment-value">0</span></p>
</div>
<div class="detail-item">
<p>Monthly Installment: €<span id="monthly-installment">0</span></p>
<p>Interest Rate: <span id="interest-rate">0</span>%</p>
</div>
</div>
</div>
</div>
<script src="script.js"></script> <!-- Link to external JavaScript file -->
</body>
</html>