Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-thepie committed Sep 18, 2024
1 parent ebc6a7c commit 2058c0c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,18 @@ function getLevelText(level) {
function buildNav() {
for (const level of Object.keys(data.plans)) {
const btn = document.createElement('input');
btn.id="l"+level
btn.type="radio";
btn.name = "level";
btn.value=getLevelText(level);
btn.id = 'l' + level;
btn.type = 'radio';
btn.name = 'level';
btn.value = getLevelText(level);
btn.dataset.level = level;
btn.addEventListener('click', showCourseNav);
ui.topnav.append(btn);

const label = document.createElement('label');
label.htmlFor = "l"+level;
label.htmlFor = 'l' + level;
label.textContent = getLevelText(level);
ui.topnav.append(label);

}
}

Expand Down

0 comments on commit 2058c0c

Please sign in to comment.