1export function tooltipHideOnCursorLeave(anchorId) { 2 const srcElement = document.getElementById(anchorId); 3 const tooltipSelector = `fluent-tooltip[anchor="${anchorId}"]:not([visible])`; 4 5 if (!!srcElement) { 6 srcElement.addEventListener("mouseleave", function (event) { 7 const tooltip = document.querySelector(tooltipSelector); 8 if (!!tooltip) { 9 tooltip.style.display = "none"; 10 } 11 }); 12 13 srcElement.addEventListener("mouseenter", function (event) { 14 const tooltip = document.querySelector(tooltipSelector); 15 if (!!tooltip) { 16 tooltip.style.display = null; 17 } 18 }); 19 20 } 21}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.