Created
May 6, 2021 21:46
-
-
Save sevenc-nanashi/64fb66d3a29b6a6ce020a5257f21db39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.from(document.getElementsByClassName("ui_id_block")).forEach(e=>{ | |
e.addEventListener("mouseenter",()=>{ | |
Array.from(document.querySelectorAll("[data-serno='"+e.childNodes[1].innerHTML+"']")).forEach(i=>{ | |
i.style.backgroundColor="#ff8808" | |
i.style.color="#fff" | |
}) | |
}) | |
e.addEventListener("mouseleave",()=>{ | |
Array.from(document.querySelectorAll("[data-serno='"+e.childNodes[1].innerHTML+"']")).forEach(i=>{ | |
i.style.backgroundColor="#e3e3e3" | |
i.style.color="#888" | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment