Skip to content

Commit

Permalink
Merge pull request #425 from JsonLu0910/jeremy
Browse files Browse the repository at this point in the history
Jeremy
  • Loading branch information
Ayushparikh-code authored Sep 17, 2024
2 parents 5a8b9dc + 1e246b9 commit ab186ea
Show file tree
Hide file tree
Showing 20 changed files with 28,866 additions and 14 deletions.
2 changes: 1 addition & 1 deletion DRUM(darkmode)/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</nav>
<div class="header">
<h1>DRUM KIT</h1>
<p class="band-tagline">Drummig is my therapy!</p>
<p class="band-tagline">Drumming is my therapy!</p>
</div>

<div class="kit"></div>
Expand Down
26 changes: 13 additions & 13 deletions Loan Calculator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ <h3>Loan Calculator</h3>
<p>Months to Pay:
<input type="number" value="1" id="months" min="0" onchange="calculateLoan()"> </p>
<h2 id="payment"></h2> </div>
<script src="script.js">
function calculateLoan() {
const amount = document.querySelector("#amount").value;
const interestRate = document.querySelector("#interest").value;
const months = document.querySelector("#months").value;
const monthlyRate = (interestRate) / (12 * 100);
const onePlusR = Math.pow(1 + monthlyRate, months);
const den = onePlusR - 1;
const emi = (amount * monthlyRate * (onePlusR / den)).toFixed(2);
const totalPay = (emi * months).toFixed(2);
document.querySelector("#payment").innerHTML = `EMI: ₹ ${emi} <br><br> Total Payment: ₹${totalPay}`
}
<script>
function calculateLoan() {
const amount = document.querySelector("#amount").value;
const interestRate = document.querySelector("#interest").value;
const months = document.querySelector("#months").value;
const monthlyRate = (interestRate) / (12 * 100);
const onePlusR = Math.pow(1 + monthlyRate, months);
const den = onePlusR - 1;
const emi = (amount * monthlyRate * (onePlusR / den)).toFixed(2);
const totalPay = (emi * months).toFixed(2);
document.querySelector("#payment").innerHTML = `EMI: ₹ ${emi} <br><br> Total Payment: ₹${totalPay}`
}
</script>
</body>

</html>
</html>
23 changes: 23 additions & 0 deletions time_unit_converter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 3 additions & 0 deletions time_unit_converter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Time unit converter

Easily convert second, minute, hour and day.
Loading

0 comments on commit ab186ea

Please sign in to comment.