You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
809 B
1 lines
809 B
jQuery.cookie = function (d, c, a) { if ("undefined" != typeof c) { a = a || {}; null === c && (c = "", a.expires = -1); var b = ""; a.expires && ("number" == typeof a.expires || a.expires.toUTCString) && ("number" == typeof a.expires ? (b = new Date, b.setTime(b.getTime() + 864E5 * a.expires)) : b = a.expires, b = "; expires=" + b.toUTCString()); var e = a.path ? "; path=" + a.path : "", f = a.domain ? "; domain=" + a.domain : ""; a = a.secure ? "; secure" : ""; document.cookie = [d, "=", encodeURIComponent(c), b, e, f, a].join("") } else { c = null; if (document.cookie && "" != document.cookie) for (a = document.cookie.split(";"), b = 0; b < a.length; b++) if (e = jQuery.trim(a[b]), e.substring(0, d.length + 1) == d + "=") { c = decodeURIComponent(e.substring(d.length + 1)); break } return c } };
|