Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SudhanParajuli authored Oct 16, 2024
1 parent 66fdf4d commit 5cec7c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Populate the year dropdowns dynamically
for (let year = 1971; year <= 2100; year++) {
document.getElementById('bsYear').innerHTML += `<option value="${year}">${year} BS</option>`;
}
Expand All @@ -20,7 +19,6 @@ function toggleConversionSection() {
const bsToADSection = document.getElementById('bsToADSection');
const adToBSSection = document.getElementById('adToBSSection');

// Toggle the sections based on selected conversion type
if (conversionType === 'BStoAD') {
bsToADSection.style.display = 'block';
adToBSSection.style.display = 'none';
Expand Down

0 comments on commit 5cec7c2

Please sign in to comment.