1/*! 2 * jQuery Cookie Plugin v1.3 3 * https://github.com/carhartl/jquery-cookie 4 * 5 * Copyright 2011, Klaus Hartl 6 * Dual licensed under the MIT or GPL Version 2 licenses. 7 * http://www.opensource.org/licenses/mit-license.php 8 * http://www.opensource.org/licenses/GPL-2.0 9 */ 10(function (document, undefined) { 11var eds_cookie = function ($) { 12 13 var pluses = /\+/g; 14 15 function raw(s) { 16 return s; 17 } 18 19 function decoded(s) { 20 return decodeURIComponent(s.replace(pluses, ' ')); 21 } 22 23 var config = $.cookie = function (key, value, options) { 24 25 // write 26 if (value !== undefined) { 27 options = $.extend({}, config.defaults, options); 28 29 if (value === null) { 30 options.expires = -1; 31 } 32 33 if (typeof options.expires === 'number') { 34 var days = options.expires, t = options.expires = new Date(); 35 t.setDate(t.getDate() + days); 36 } 37 38 value = config.json ? JSON.stringify(value) : String(value); 39 40 return (document.cookie = [ 41 encodeURIComponent(key), '=', config.raw ? value : encodeURIComponent(value), 42 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE 43 options.path ? '; path=' + options.path : '', 44 options.domain ? '; domain=' + options.domain : '', 45 options.secure ? '; secure' : '' 46 ].join('')); 47 } 48 49 var decode = config.raw ? raw : decoded; 50 var cookies = document.cookie.split('; '); 51 for (var i = 0, l = cookies.length; i < l; i++) { 52 var parts = cookies[i].split('='); 53 if (decode(parts.shift()) === key) { 54 var cookie = decode(parts.join('=')); 55 return config.json ? JSON.parse(cookie) : cookie; 56 } 57 } 58 59 return null; 60 }; 61 62 config.defaults = {}; 63 64 $.removeCookie = function (key, options) { 65 if ($.cookie(key) !== null) { 66 $.cookie(key, null, options); 67 return true; 68 } 69 return false; 70 }; 71 72}; 73 74if (typeof jQuery !== 'undefined') 75 eds_cookie(jQuery); 76 77 if (typeof eds3_5_jq !== 'undefined') 78 eds_cookie(eds3_5_jq); 79 80})(document);
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.