forked from jaipeee/Budget-Buddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloan-tracker.html
122 lines (106 loc) · 5.77 KB
/
loan-tracker.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loan EMI Calculator</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="common-style.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="headercss.css">
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<title>Budget Buddy</title>
<!-- favicon -->
<link rel="icon" type="image/x-icon" href="Images/rounded-1.png">
</head>
<body>
<header>
<nav style="background-color: rgba(233, 233, 241, 0.643); padding-top: 0%;" class="navbar navbar-expand-lg custom-navbar fixed-top">
<div class="nav-container">
<button class="navbar-toggler custom-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#customNavbarNavDropdown" aria-controls="customNavbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon custom-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse custom-navbar-collapse" id="customNavbarNavDropdown">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 custom-nav">
<li class="nav-item custom-nav-item">
<a class="nav-link custom-nav-link" href="index.html">Dashboard</a>
</li>
<li class="nav-item custom-nav-item">
<a class="nav-link custom-nav-link" href="about-us.html">About us</a>
</li>
<li class="nav-item custom-nav-item">
<a class="nav-link custom-nav-link" href="contact-us.html">Contact us</a>
</li>
<li class="nav-item custom-nav-item">
<a class="nav-link custom-nav-link" href="index.html">Track Your expense</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="custom-progress-container">
<div class="custom-progress-bar" id="myBar"></div>
</div>
</header>
<div class="custom-progress-container">
<div class="custom-progress-bar" id="myBar"></div>
</div>
<div class="container">
<h2>Loan EMI Calculator</h2>
<div class="input-group">
<label for="loanAmount">Loan Amount (₹)</label>
<input type="number" id="loanAmount" placeholder="Enter loan amount" oninput="updateLoanAmountSlider()">
</div>
<div class="input-group">
<label for="loanAmountSlider">Select Loan Amount (₹)</label>
<input type="range" id="loanAmountSlider" min="10000" max="10000000" step="1000" oninput="updateLoanAmount()">
<p id="loanAmountDisplay">₹10000</p>
</div>
<div class="input-group">
<label for="interestRate">Annual Interest Rate (%)</label>
<input type="number" id="interestRate" step="0.1" placeholder="Enter interest rate" oninput="updateInterestRateSlider()">
</div>
<div class="input-group">
<label for="interestRateSlider">Select Interest Rate (%)</label>
<input type="range" id="interestRateSlider" min="1" max="80" step="0.1" oninput="updateInterestRate()">
<p id="interestRateDisplay">1%</p>
</div>
<div class="input-group">
<label>Loan Tenure</label>
<div class="toggle-tenure">
<button id="tenureMonthsButton" onclick="showTenureMonths()">Months</button>
<button id="tenureYearsButton" onclick="showTenureYears()">Years</button>
</div>
<div id="tenureMonths" class="tenure-option">
<label for="loanTenureMonthsSlider">Select Loan Tenure (Months)</label>
<input type="range" id="loanTenureMonthsSlider" min="1" max="11" step="1" oninput="updateLoanTenureMonths()">
<p id="loanTenureMonthsDisplay">1 Month</p>
</div>
<div id="tenureYears" class="tenure-option">
<label for="loanTenureYearsSlider">Select Loan Tenure (Years)</label>
<input type="range" id="loanTenureYearsSlider" min="1" max="8" step="1" oninput="updateLoanTenureYears()">
<p id="loanTenureYearsDisplay">1 Year</p>
</div>
</div>
<div class="input-group">
<button onclick="calculateEMI()">Calculate EMI</button>
</div>
<div class="result" id="result"></div>
</div>
<section class="about">
<h2>About</h2>
<p>This project is made by Jaipratap Raj and Aditi Arya. It helps you calculate the EMI for your loan with ease and precision.</p>
</section>
<section class="contact">
<h2>Contact Details</h2>
<p>Email: <a href="mailto:[email protected]">[email protected]</a></p>
<p>Email: <a href="mailto:[email protected]">[email protected]</a></p>
</section>
<a href="login.html" class="track-button" style="margin-bottom: 5cap;">Log out</a>
<script src="script.js"></script>
</body>
</html>