1 2function createCustomSplash() { 3 // Create splash overlay 4 const splash = document.createElement('div'); 5 splash.id = 'custom-splash'; 6 // Create image 7 const img = document.createElement('img'); 8 img.src = 'https://www.philenews.com/wp-content/themes/philenews/assets/images/new-splash-screen-2025.png'; 9 splash.insertAdjacentElement('afterbegin', img); 10 splash.classList.add('custom__splash'); 11 splash.classList.add('show'); 12 // Add to page 13 if (document.body) { 14 document.body.appendChild(splash); 15 } else { 16 setTimeout(function() { 17 if (document.body) { 18 document.body.appendChild(splash); 19 } 20 }, 10); 21 } 22 console.log(splash) 23 // Remove splash after 4 seconds 24 setTimeout(function() { 25 setTimeout(() => { 26 if (splash) { 27 splash.classList.remove('show'); 28 } 29 }, 500); 30 }, 4000); 31} 32 33const addConsole = () => { 34 const sdr = document.createElement("script"); 35 sdr.src = "//cdn.jsdelivr.net/npm/eruda"; 36 document.head.appendChild(sdr); 37 sdr.onload = () => { 38 let el = document.createElement("div"); 39 el.style.cssText = 'position:fixed;left:15px,bottom:50px;' 40 document.body.appendChild(el); 41 eruda.init({ 42 container: el, 43 tool: ["console", "elements"] 44 }); 45 } 46} 47 48// Median.onReady(async () => { 49// const deviceinfo = await Median.deviceInfo(); 50// const deviceName = deviceinfo?.deviceName ?? null; 51// const os = deviceinfo?.os ?? null; 52// console.log(`Median loaded on ${os}`); 53// if (!sessionStorage.getItem("medianHasLaunched")) { 54// createCustomSplash(); 55// console.log("App started listener triggered"); 56// sessionStorage.setItem("medianHasLaunched", "true"); 57// } 58// if (deviceName == 'OnePlus CPH2493') { 59// console.log(`Median ready on device ${deviceName}`); 60// addConsole(); 61// } 62// });
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.