blog-hexo/themes/hexo-theme-linear/source/js/f8b20eb9.js

1 line
293 B
JavaScript
Raw Normal View History

2023-10-19 21:55:22 +08:00
(()=>{"use strict";document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".nav-items li").forEach((t=>{var e;const a=null!==(e=t.getAttribute("data-path"))&&void 0!==e?e:"";location.pathname.indexOf(a)>-1?t.classList.add("active"):t.classList.remove("active")}))}))})();