PageSourceSearch

https://www.apator.com/libraries/dist/assets/device-detection-DLEaXb5o.js?tm80td

js apator.com collected 2026-10-02 07:57:53 UTC 1,292 bytes, 1 lines download raw bytes

1var s=(e=>(e.DESKTOP="desktop",e.MOBILE="mobile",e))(s||{});const g={DESKTOP:1088},D=(e={})=>{let t=!1,n=null,i=null;const c={desktopBreakpoint:e.desktopBreakpoint??g.DESKTOP,onDeviceChange:e.onDeviceChange??(()=>{})},o=()=>{const b=t;t=window.innerWidth>=c.desktopBreakpoint,b!==t&&c.onDeviceChange(t)},a=()=>{n&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>{o(),n=null})},v=()=>{i=new ResizeObserver(a),i.observe(document.body)},d=()=>{i&&(i.disconnect(),i=null),n&&(cancelAnimationFrame(n),n=null)},r=()=>{o(),v()},l=()=>t?s.DESKTOP:s.MOBILE,p=()=>t,k=()=>!t,E=()=>d();return r(),{getDeviceType:l,isDesktopDevice:p,isMobileDevice:k,destroy:E}};(e=>{e.behaviors.apatorDeviceDetection={attach(n){once("device-detection","[data-device-detection]",n).forEach(c=>{const o={},a=c.getAttribute("data-desktop-breakpoint");a&&(o.desktopBreakpoint=parseInt(a,10)),o.onDeviceChange=d=>{c.dispatchEvent(new CustomEvent("deviceChange",{detail:{isDesktop:d,deviceType:d?s.DESKTOP:s.MOBILE}}))};const v=D(o);c.deviceDetection=v})}};let t=null;e.deviceDetection={getInstance:n=>(t||(t=D(n)),t),isDesktop:()=>e.deviceDetection.getInstance().isDesktopDevice(),isMobile:()=>e.deviceDetection.getInstance().isMobileDevice(),getDeviceType:()=>e.deviceDetection.getInstance().getDeviceType()}})(Drupal);

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.