1 Star 0 Fork 0

嘻哈乐 / Temporary-information

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
start.js 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
xihale 提交于 2021-01-31 12:39 . Add files via upload
hljs.debugMode();hljs.initHighlightingOnLoad();document.querySelectorAll(".categories > li").forEach((category)=>{category.addEventListener("click",(event)=>{const current=document.querySelector(".categories .current");const currentCategory=current.dataset.category;const nextCategory=event.target.dataset.category;if(currentCategory!==nextCategory){current.classList.remove("current");event.target.classList.add("current");document.querySelectorAll(`.${currentCategory}`).forEach((language)=>language.classList.add("hidden"));document.querySelectorAll(`.${nextCategory}`).forEach((language)=>language.classList.remove("hidden"));window.scrollTo(0,0)}})});document.querySelectorAll(".styles > li").forEach((style)=>{style.addEventListener("click",(event)=>{const current=document.querySelector(".styles .current");const currentStyle=current.textContent;const nextStyle=event.target.textContent;if(currentStyle!==nextStyle){document.querySelector(`link[title="${nextStyle}"]`).removeAttribute("disabled");document.querySelector(`link[title="${currentStyle}"]`).setAttribute("disabled","disabled");current.classList.remove("current");event.target.classList.add("current")}})});
PHP
1
https://gitee.com/xihale/Temporary-information.git
git@gitee.com:xihale/Temporary-information.git
xihale
Temporary-information
Temporary-information
main

搜索帮助