mirror of
https://github.com/labstack/echo.git
synced 2025-04-04 22:14:24 +02:00
11 lines
236 B
JavaScript
11 lines
236 B
JavaScript
(function() {
|
|
var menu = document.querySelectorAll('.menu a');
|
|
|
|
for (var i = 0; i < menu.length; i++) {
|
|
var m = menu[i];
|
|
if (location.href === m.href) {
|
|
m.className += 'active';
|
|
}
|
|
}
|
|
})();
|