CoreFiles by mySites.guru
wp-tooltip.min.js2 lines, 1,248 bytes, from wordpress-7.2-beta5.zip
Raw History Compare with 7.2-beta4
md5
523a9fa98227b62474bf883cf3855248
sha1
c2c6700d85be5a98562e56c5969811473ae89921
sha256
2042a32d2a133cbdfa32e483fe44aebbf757cfeb956badc72074ae94f7c9d3dc
/*! This file is auto-generated */
(()=>{let e=Object.prototype.hasOwnProperty.call(HTMLElement.prototype,"popover")?!1:!0;document.querySelectorAll(".wp-is-tooltip").forEach(function(o){const t=o.querySelector(".wp-tooltip__toggle"),r=o.querySelector("span.wp-tooltip__bubble");if(e&&r)r.classList.add("hidden");else if(t&&r){let e;var o=()=>{clearTimeout(e),e=setTimeout(()=>{r.matches(":popover-open")||r.showPopover({source:t})},300)},p=()=>{clearTimeout(e),r.matches(":popover-open")&&r.hidePopover()};t.addEventListener("mouseenter",o),t.addEventListener("focus",o),t.addEventListener("mouseleave",p),t.addEventListener("blur",p)}})})(),(()=>{var e=document.querySelectorAll(".wp-is-toggletip");let l;e.forEach(function(e){const o=e.querySelector("button.wp-tooltip__toggle"),t=e.querySelector(".wp-tooltip__hint"),r=e.querySelector("dialog.wp-tooltip__bubble");var p;o&&t&&(e=()=>{clearTimeout(l),l=setTimeout(()=>{r&&r.matches(":popover-open")||t.matches(":popover-open")||t.showPopover({source:o})},300)},p=()=>{clearTimeout(l),t.matches(":popover-open")&&t.hidePopover()},o.addEventListener("mouseenter",e),o.addEventListener("focus",e),o.addEventListener("mouseleave",p),o.addEventListener("blur",p),o.addEventListener("click",p))})})();

The same content is in 7 releases, WordPress 7.2-beta1 to 7.2-RC2. See them all, or every version of this file.