1function sfSetCookie(name,value,days) { 2 var expires = "" 3 if (days) { 4 var date = new Date() 5 date.setTime(date.getTime() + (days*24*60*60*1000)) 6 expires = "; expires=" + date.toUTCString() 7 } 8 document.cookie = name + "=" + (value || "") + expires + "; path=/" 9} 10 11jQuery(document).ready(function () { 12 jQuery('.sf-notice__close').on('click', function (e) { 13 e.preventDefault() 14 var notice = jQuery(this).closest('.sf-notice') 15 // eventually set the cookie 16 if (notice.hasClass('sf-notice--dismissable')) { 17 var cookie = 'dismissed_notice_' + notice.attr('id') 18 sfSetCookie(cookie, 1, 365) 19 } 20 // close the notice 21 notice.slideUp('fast') 22 }); 23});
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.