PageSourceSearch

https://dignityforchildren.org/js/web-app-startup.min.js?_=41729477270

js dignityforchildren.org collected 2026-09-26 05:30:34 UTC 3,552 bytes, 2 lines download raw bytes

1/*! Copyright (c) XTOPIA Sdn Bhd | https://www.xtopia.io. All rights reserved. */
2!function(e,t){"use strict";var n,a,r,o,i,l,s,c,d,u,f=t.head,p=t.body,v=f.querySelector("link[rel='manifest']");v&&(l=navigator.userAgent||"",s=navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")&&(-1!==l.indexOf("Mobile/")||navigator.maxTouchPoints>1||navigator.standalone),c=f.querySelector("link[rel='apple-touch-startup-image']"),s&&(function(){navigator.standalone&&f.querySelector("meta[name='apple-mobile-web-app-status-bar-style'][content='black-translucent']")&&(d=f.querySelector("meta[name='viewport']"),(d.content||"").match(/\bviewport-fit\s*=\s*cover\b/)||(d.content+=", viewport-fit=cover"),p.style.paddingTop="env(safe-area-inset-top)",u=t.createElement("div"),(n=u.style).position="fixed",n.width="100%",n.height="env(safe-area-inset-top)",n.top="0",n.left="0",n.zIndex="10",n.backgroundColor=f.querySelector("meta[name='theme-color']").content,p.insertBefore(u,p.firstChild))}(),c||(a={ctxForCanvas:function(e,n){var a=t.createElement("canvas");return a.width=e,a.height=n,a.getContext("2d")},readColor:function(e){var t=a.ctxForCanvas();return t.fillStyle=e,t.fillRect(0,0,1,1),t.getImageData(0,0,1,1).data||[]},shouldUseLightForeground:function(e){var t=a.readColor(e).map(function(e){var t=e/255;return t<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}),n=.2126*t[0]+.7152*t[1]+.0722*t[2];return Math.abs(1.05/(n+.05))>3},storage:e.sessionStorage||{},localStorage:e.localStorage||{},store:function(e,t){return e="xtopia-"+e,void 0!==t&&(a.storage[e]=t),a.storage[e]}},r={defTxtSize:24,defFontName:"HelveticaNeue-CondensedBold",idealIconSize:128,minIconSize:48,iconPadding:32,txtStartPos:72,create:function(t,n,i,l,s){var c,d,u,f,p,v=e.devicePixelRatio,g=a.ctxForCanvas(t*v,n*v);if(g.scale(v,v),g.fillStyle=o.background_color,g.fillRect(0,0,t,n),g.translate(t/2,(n-r.iconPadding)/2),l&&(c=l.width/v,(d=l.height/v)>r.idealIconSize&&(c/=d/r.idealIconSize,d=r.idealIconSize),c>=r.minIconSize&&d>=r.minIconSize&&(g.drawImage(l,c/-2,d/-2,c,d),g.translate(0,n/2-r.txtStartPos))),g.fillStyle=s?"black":"white",g.font=r.defTxtSize+"px "+r.defFontName,u=o.name,(f=g.measureText(u).width)<.8*t)g.fillText(u,f/-2,0);else{var h,m,S=u.split(/\s+/g);for(p=1;p<=S.length;)h=S.slice(0,p).join(" "),m=g.measureText(h).width,(p===S.length||m>.6*t)&&(g.fillText(h,m/-2,0),g.translate(0,1.2*r.defTxtSize),S.splice(0,p),p=0),p+=1}return function(){var e=g.canvas.toDataURL();return r.render(i,e),e}},render:function(e,n){var a=t.createElement("link");a.setAttribute("rel","apple-touch-startup-image"),a.setAttribute("media","(orientation: "+e+")"),a.setAttribute("href",n),f.appendChild(a)},run:function(t){var n;try{n=JSON.parse(a.store("ios-splash"))}catch(e){n={}}if(n.p&&n.l)return r.render("portrait",n.p),void r.render("landscape",n.l);var i,l,s,c=e.screen;i=(o=t).background_color,l=a.shouldUseLightForeground(i),(s=new e.Image).crossOrigin="anonymous",s.onload=function(){var t,o;s.onload=null,t=r.create(c.availWidth,c.availHeight,"portrait",s,l),o=r.create(c.availHeight,c.availWi
2dth,"landscape",s,l),e.setTimeout(function(){n.p=t(),e.setTimeout(function(){n.l=o(),a.store("ios-splash",JSON.stringify(n))},10)},10)},s.onerror=function(){s.onerror=null},o.icons.sort(function(e,t){return parseInt(t.sizes)-parseInt(e.sizes)}),s.src=o.icons[0].src}},i=function(){var e;(e=new XMLHttpRequest).open("GET",v.href),e.onload=function(){r.run(JSON.parse(e.responseText))},e.send(null)},"complete"===t.readyState?i():e.addEventListener("load",i))))}(window,document);

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.