mirror of
https://github.com/labstack/echo.git
synced 2025-07-17 01:43:02 +02:00
10
website/static/scripts/echo.js
Normal file
10
website/static/scripts/echo.js
Normal file
@ -0,0 +1,10 @@
|
||||
(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';
|
||||
}
|
||||
}
|
||||
})();
|
Reference in New Issue
Block a user