META-INF.web.lib.js.jquery.jquery.cookie.js Maven / Gradle / Ivy
(function(b){b.cookie=function(w,p,a){if(typeof p!="undefined"){a=a||{};if(p===null){p="";a.expires=-1}var t="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var s;if(typeof a.expires=="number"){s=new Date();s.setTime(s.getTime()+(a.expires*24*60*60*1000))}else{s=a.expires}t="; expires="+s.toUTCString()}var i=a.path?"; path="+a.path:"";var r=a.domain?"; domain="+a.domain:"";var x=a.secure?"; secure":"";document.cookie=[w,"=",encodeURIComponent(p),t,i,r,x].join("")}else{var u=null;if(document.cookie&&document.cookie!=""){var o=document.cookie.split(";");for(var q=0;q