MCPcopy Index your code
hub / github.com/027xiguapi/code-box / highlightElement

Function highlightElement

component/ui/customDomSelector.tsx:77–80  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

75 }
76
77 const highlightElement = (element: HTMLElement) => {
78 removeHighlight()
79 element.classList.add("codebox-current")
80 }
81
82 const removeHighlight = () => {
83 const currentList = document.querySelectorAll(".codebox-current")

Callers 3

handleMouseMoveFunction · 0.85
handleClickFunction · 0.85
navigateElementFunction · 0.85

Calls 1

removeHighlightFunction · 0.85

Tested by

no test coverage detected