1 (function() { 2 var el = document.getElementById("main"); 3 if (!el) { 4 return; 5 } 6 var bgs = ["bg1.jpg","bg2.jpg","bg3.jpg","bg4.jpg","bg5.jpg","bg6.jpg"]; 7 var rndbg = Math.floor(Math.random() * bgs.length); 8 9 // Compute app base path from script URL to work under any context (/cas or /) 10 var base = "/"; 11 try { 12 var s = document.currentScript || document.getElementsByTagName("script")[document.getElementsByTagName("script").length - 1]; 13 if (s && s.src) { 14 var url = new URL(s.src, window.location.origin); 15 var parts = url.pathname.split("/"); 16 parts.pop(); // remove bg.js 17 if (parts[parts.length - 1] === "js") { 18 parts.pop(); // remove js folder 19 } 20 base = parts.join("/"); 21 if (!base.endsWith("/")) { 22 base += "/"; 23 } 24 } 25 } catch (e) { 26 // fallback to root 27 } 28 29 el.style.backgroundImage = "url('" + base + "images/bgs/" + bgs[rndbg] + "')"; 30 })();
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.