1/*This is a comment in JS File*/ 2function saveAsFile(filename, bytesBase64) { 3 4 if (navigator.msSaveBlob) { 5 //Download document in Edge browser 6 var data = window.atob(bytesBase64); 7 var bytes = new Uint8Array(data.length); 8 for (var i = 0; i < data.length; i++) { 9 bytes[i] = data.charCodeAt(i); 10 } 11 var blob = new Blob([bytes.buffer], { type: "application/octet-stream" }); 12 navigator.msSaveBlob(blob, filename); 13 } 14 else { 15 var link = document.createElement('a'); 16 link.download = filename; 17 link.href = "data:application/octet-stream;base64," + bytesBase64; 18 document.body.appendChild(link); // Needed for Firefox 19 link.click(); 20 document.body.removeChild(link); 21 } 22} 23 24function isDevice() { 25 return /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i.test(navigator.userAgent); 26} 27 28window.initializeCarousel = () => { 29 30 var myCarousel = document.querySelector('#carouselExampleControls'); 31 var carousel = new bootstrap.Carousel(myCarousel, { ride: "carousel" }); 32 carousel.cycle(); 33} 34 35//Cookies 36function WriteCookie(name, value, days) { 37 38 var expires; 39 if (days) { 40 var date = new Date(); 41 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 42 expires = "; expires=" + date.toGMTString(); 43 } 44 else { 45 expires = ""; 46 } 47 document.cookie = name + "=" + value + expires + "; path=/"; 48} 49function DeleteCookie(name) { 50 document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; 51} 52function ReadCookie(cname) { 53 var name = cname + "="; 54 var decodedCookie = decodeURIComponent(document.cookie); 55 var ca = decodedCookie.split(';'); 56 for (var i = 0; i < ca.length; i++) { 57 var c = ca[i]; 58 while (c.charAt(0) == ' ') { 59 c = c.substring(1); 60 } 61 if (c.indexOf(name) == 0) { 62 return c.substring(name.length, c.length); 63 } 64 } 65 return ""; 66}
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.