589
правок
User (обсуждение | вклад) Нет описания правки |
User (обсуждение | вклад) Нет описания правки |
||
| Строка 22: | Строка 22: | ||
// Check if the link title is equal to the current page title | // Check if the link title is equal to the current page title | ||
if (linkTitle === currentPageTitle) { | if (linkTitle === currentPageTitle) { | ||
// Make the link bold | |||
link.closest('li').classList.add('a-current'); | |||
} | |||
if (linkTitle === ('Главная' + currentPageTitle)) { | |||
// Make the link bold | // Make the link bold | ||
link.closest('li').classList.add('a-current'); | link.closest('li').classList.add('a-current'); | ||