1jQuery(document).ready(function ($) { 2 3 function UPNEXT_COOKIE_NOTICE_getCookie(cname) { 4 let name = cname + "="; 5 let decodedCookie = decodeURIComponent(document.cookie); 6 let ca = decodedCookie.split(';'); 7 for(let i = 0; i <ca.length; i++) { 8 let c = ca[i]; 9 while (c.charAt(0) == ' ') { 10 c = c.substring(1); 11 } 12 if (c.indexOf(name) == 0) { 13 return c.substring(name.length, c.length); 14 } 15 } 16 return ""; 17 } 18 19 function UPNEXT_COOKIE_NOTICE_setCookie(cname, cvalue, exhours) { 20 const d = new Date(); 21 d.setTime(d.getTime() + (exhours*60*60*1000)); 22 let expires = "expires="+ d.toUTCString(); 23 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 24 } 25 26 const cookie_name = 'upnext_cookie_notice'; 27 const delay_time = parseFloat(UpnextCookieNoticeData.popup_delay); // seconds 28 const next_time = parseFloat(UpnextCookieNoticeData.resurface_days); // days 29 30 if( cookie_name && !UPNEXT_COOKIE_NOTICE_getCookie(cookie_name) ){ 31 setTimeout(function(){ 32 $(document).find('#upnext-cookie-notice').fadeIn(); 33 },delay_time*1000); 34 } 35 36 $(document).on('click','.upnext-cookie-notice-btn[href="#accept"]',function(e){ 37 e.preventDefault(); 38 UPNEXT_COOKIE_NOTICE_setCookie(cookie_name,1,next_time*24); 39 $(document).find('#upnext-cookie-notice').fadeOut(); 40 }); 41 42});
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.