[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
dist
/
components
/
collection
/
library
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 fittext.js
634 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: fittext.js
const extend=(e,n)=>{for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e};export default(e,n,t)=>{var r=extend({minFontSize:-1/0,maxFontSize:1/0,container:e},t);const i=function(e){const t=n||1,i=function(){e.style.fontSize=Math.max(Math.min((r?.container?.clientWidth||0)/(10*t),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize))+"px"};if(i(),"ResizeObserver"in window==0){const e=import("@juggle/resize-observer").then(()=>{window.ResizeObserver=e.ResizeObserver,new ResizeObserver(i).observe(r.container)})}else new ResizeObserver(i).observe(r.container)};if(e.length)for(let n=0;n<e.length;n++)i(e[n]);else i(e);return e};