MCPcopy Index your code
hub / github.com/philc/vimium / spanWrap

Function spanWrap

content_scripts/link_hints.js:1060–1066  ·  view source on GitHub ↗
(hintString)

Source from the content-addressed store, hash-verified

1058// Make each hint character a span, so that we can highlight the typed characters as you type them.
1059//
1060const spanWrap = (hintString) => {
1061 const innerHTML = [];
1062 for (const char of hintString) {
1063 innerHTML.push("<span class='vimium-reset'>" + char + "</span>");
1064 }
1065 return innerHTML.join("");
1066};
1067
1068const LocalHints = {
1069 // Returns an array of LocalHints if the element is visible and clickable, and computes the rect

Callers 2

fillInMarkersMethod · 0.85
renderMarkerMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected