Projekt

Obecné

Profil

Stáhnout (1.16 KB) Statistiky
| Větev: | Tag: | Revize:
(function(a){if(typeof define==='function'&&define.amd){define(['jquery'],a)}else{a(jQuery)}}(function($){var m=/\+/g;function raw(s){return s}function decoded(s){return decodeURIComponent(s.replace(m,' '))}function converted(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\')}try{return n.json?JSON.parse(s):s}catch(er){}}var n=$.cookie=function(a,b,c){if(b!==undefined){c=$.extend({},n.defaults,c);if(typeof c.expires==='number'){var d=c.expires,t=c.expires=new Date();t.setDate(t.getDate()+d)}b=n.json?JSON.stringify(b):String(b);return(document.cookie=[n.raw?a:encodeURIComponent(a),'=',n.raw?b:encodeURIComponent(b),c.expires?'; expires='+c.expires.toUTCString():'',c.path?'; path='+c.path:'',c.domain?'; domain='+c.domain:'',c.secure?'; secure':''].join(''))}var e=n.raw?raw:decoded;var f=document.cookie.split('; ');var g=a?undefined:{};for(var i=0,l=f.length;i<l;i++){var h=f[i].split('=');var j=e(h.shift());var k=e(h.join('='));if(a&&a===j){g=converted(k);break}if(!a){g[j]=converted(k)}}return g};n.defaults={};$.removeCookie=function(a,b){if($.cookie(a)!==undefined){$.cookie(a,'',$.extend({},b,{expires:-1}));return true}return false}}));
(5-5/17)