1jQuery.cookie = function (key, value, options) { 2 3// key and at least value given, set cookie... 4if (arguments.length > 1 && String(value) !== "[object Object]") { 5options = jQuery.extend({}, options); 6 7if (value === null || value === undefined) { 8options.expires = -1; 9} 10 11if (typeof options.expires === 'number') { 12var days = options.expires, t = options.expires = new Date(); 13t.setDate(t.getDate() + days); 14} 15 16value = String(value); 17 18return (document.cookie = [ 19encodeURIComponent(key), '=', 20options.raw ? value : encodeURIComponent(value), 21options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE 22options.path ? '; path=' + options.path : '', 23options.domain ? '; domain=' + options.domain : '', 24options.secure ? '; secure' : '' 25].join('')); 26} 27 28// key and possibly options given, get cookie... 29options = value || {}; 30var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; 31return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; 32}; 33 34 35jQuery(document).ready(function($){ 36 if($.cookie('popup_user_login') != 'yes'){ 37 $('#facebookpopup-fanback').delay(facebookpopup_delay).fadeIn('medium'); 38 $('#facebookpopup-fanclose, #facebookpopup-fan-exit').click(function(){ 39 $('#facebookpopup-fanback').stop().fadeOut('medium'); 40 41 }); 42 } 43 $.cookie('popup_user_login', 'yes', { path: '/', expires: 7 }); 44 45});
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.