1jQuery(document).ready(function(){ 2 var $infobar = jQuery('#citadela-infobar'); 3 var cname = 'citadela_infobar'; 4 var currentExpiration = jQuery('#citadela-infobar').data('cexp'); 5 var cookieDefaults = { on: 1, expires: currentExpiration }; 6 var cookie = Cookies.get(cname); 7 if(typeof cookie !== 'undefined'){ 8 //cookie is saved 9 var c = JSON.parse(cookie); 10 //check saved and current expiration time 11 var savedExpiration = c.expires; 12 if(savedExpiration != currentExpiration ){ 13 //expiration time was changed in admin settings, remove cookie and show infobar 14 Cookies.remove(cname); 15 $infobar.show(); 16 jQuery('#citadela-infobar .button').on('click', function(e){ 17 Cookies.set(cname, JSON.stringify(cookieDefaults), { expires: currentExpiration }); 18 $infobar.fadeOut(); 19 }); 20 } 21 }else{ 22 //cookie is not saved in browser, show infobar 23 $infobar.show(); 24 jQuery('#citadela-infobar .button').on('click', function(e){ 25 Cookies.set(cname, JSON.stringify(cookieDefaults), { expires: currentExpiration }); 26 $infobar.fadeOut(); 27 }); 28 } 29});
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.