Skip to content

Commit d435ce1

Browse files
correct the misspell comments
1 parent 5bff632 commit d435ce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const NAVBAR_LI_ELEMENTS = document.getElementById('navbar').firstElementChild.c
22
let flag = false;
33

44

5-
// rotate the arrow of <li> which matches the SITE_URL
5+
// check for a match with the <li> element and SITE_URL, then make it active
66
Array.from(NAVBAR_LI_ELEMENTS).forEach((liElement) => {
77
if (liElement.firstElementChild.href == location.href) {
88
liElement.classList.add('active');
@@ -11,5 +11,5 @@ Array.from(NAVBAR_LI_ELEMENTS).forEach((liElement) => {
1111
}
1212
})
1313

14-
// if non of other is active the the Home tab is active
14+
// if no other tab is active, then the Home tab becomes active
1515
if (!flag) NAVBAR_LI_ELEMENTS[0].classList.add('active');

0 commit comments

Comments
 (0)