blog-hexo/themes/hexo-theme-cosy/source/js/f8b20eb9.js
2023-10-21 17:55:14 +08:00

1 line
293 B
JavaScript

(()=>{"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")}))}))})();