Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Feb 2, 2024
1 parent 0bb79c4 commit db1c8a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/assets/js/selector.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
function syncSelectors(selectedIndex) {
const allSelects = document.querySelectorAll('select');
for (let i = 0; i < allSelects.length; i++) {
allSelects[i].selectedIndex = selectedIndex;
}
}

function selectOption(select) {
if (!select) {
return;
Expand Down Expand Up @@ -25,11 +32,4 @@ function selectOption(select) {
});
}

function syncSelectors(selectedIndex) {
const allSelects = document.querySelectorAll('select');
for (let i = 0; i < allSelects.length; i++) {
allSelects[i].selectedIndex = selectedIndex;
}
}

window.onload = selectOption(document.getElementsByClassName('selector')[0]);

0 comments on commit db1c8a9

Please sign in to comment.