mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-09-13 06:19:29 +00:00
13 lines
442 B
JavaScript
13 lines
442 B
JavaScript
// (function() {
|
|
// var allSubMenuItems = document.querySelectorAll('.submenu-item'),
|
|
// href = window.location.href,
|
|
// path = href.replace(/^https?\:/i, "");
|
|
// for (var i = 0; i < allSubMenuItems.length; i++) {
|
|
// var datapath = allSubMenuItems[i].dataset.pagelink;
|
|
// console.log(`${path} and ${href}`)
|
|
// if (datapath === path) {
|
|
// allSubMenuItems[i].classList.add('active-page');
|
|
// }
|
|
// }
|
|
// })();
|