diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-16 20:08:00 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-16 20:08:00 +0200 |
commit | 19ec1d7e4325df4b802acf1c0b57f6e447601b92 (patch) | |
tree | 809dd6b12c85fec398f0e04785370c002675b73a /web/public/js/jquery.cookie-minified.js | |
parent | b086da01dccf250ff0ae79a2c309d376c2ba81e5 (diff) | |
download | taginfo-19ec1d7e4325df4b802acf1c0b57f6e447601b92.tar taginfo-19ec1d7e4325df4b802acf1c0b57f6e447601b92.tar.gz |
Add cookie-base comparison list.
Diffstat (limited to 'web/public/js/jquery.cookie-minified.js')
-rw-r--r-- | web/public/js/jquery.cookie-minified.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/public/js/jquery.cookie-minified.js b/web/public/js/jquery.cookie-minified.js new file mode 100644 index 0000000..b8b4c70 --- /dev/null +++ b/web/public/js/jquery.cookie-minified.js @@ -0,0 +1,8 @@ +/* + * jQuery Cookie Plugin v1.4.1 + * https://github.com/carhartl/jquery-cookie + * + * Copyright 2013 Klaus Hartl + * Released under the MIT license + */ +(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports==="object"){a(require("jquery"))}else{a(jQuery)}}}(function(f){var a=/\+/g;function d(i){return b.raw?i:encodeURIComponent(i)}function g(i){return b.raw?i:decodeURIComponent(i)}function h(i){return d(b.json?JSON.stringify(i):String(i))}function c(i){if(i.indexOf('"')===0){i=i.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{i=decodeURIComponent(i.replace(a," "));return b.json?JSON.parse(i):i}catch(j){}}function e(j,i){var k=b.raw?j:c(j);return f.isFunction(i)?i(k):k}var b=f.cookie=function(q,p,v){if(p!==undefined&&!f.isFunction(p)){v=f.extend({},b.defaults,v);if(typeof v.expires==="number"){var r=v.expires,u=v.expires=new Date();u.setTime(+u+r*86400000)}return(document.cookie=[d(q),"=",h(p),v.expires?"; expires="+v.expires.toUTCString():"",v.path?"; path="+v.path:"",v.domain?"; domain="+v.domain:"",v.secure?"; secure":""].join(""))}var w=q?undefined:{};var s=document.cookie?document.cookie.split("; "):[];for(var o=0,m=s.length;o<m;o++){var n=s[o].split("=");var j=g(n.shift());var k=n.join("=");if(q&&q===j){w=e(k,p);break}if(!q&&(k=e(k))!==undefined){w[j]=k}}return w};b.defaults={};f.removeCookie=function(j,i){if(f.cookie(j)===undefined){return false}f.cookie(j,"",f.extend({},i,{expires:-1}));return !f.cookie(j)}}));
\ No newline at end of file |