CoreFiles by mySites.guru
fit-text-frontend.min.js1 lines, 917 bytes, from wordpress-6.9-beta3.zip
Raw History Compare with 6.9-beta2
md5
eb4b88887ced5e9226ffb1702a0ee5cb
sha1
caebdef420902bfcd79f51d60a912554dfb81381
sha256
d5ecabe0966a5185452a7b385cdc474650ab040c9f3b5e89f8688b988b9c6f55
function t(t,e){return`${t} { font-size: ${e}px !important; }`}function e(e,n,i){if(!e)return;i("");const o=function(e,n,i){const o=e.scrollHeight>e.clientHeight;let r=5,c=600,d=r;for(;r<=c;){const l=Math.floor((r+c)/2);i(t(n,l));const s=e.scrollWidth<=e.clientWidth,f=o||e.scrollHeight<=e.clientHeight;s&&f?(d=l,r=l+1):c=l-1}return d}(e,n,i);i(t(n,o))}let n=0;function i(t){const i=function(t){return t.dataset.fitTextId||(t.dataset.fitTextId="fit-text-"+ ++n),t.dataset.fitTextId}(t),o=()=>{const n=function(t){const e=`fit-text-${t}`;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,document.head.appendChild(n)),n}(i);e(t,`[data-fit-text-id="${i}"]`,(t=>{n.textContent=t}))};if(o(),window.ResizeObserver&&t.parentElement){new window.ResizeObserver(o).observe(t.parentElement)}}window.addEventListener("load",(function(){document.querySelectorAll(".has-fit-text").forEach(i)}));

The same content is in 2 releases, WordPress 6.9-beta2 to 6.9-beta3. See them all, or every version of this file.