Sha256: e4b5faafd6b7ec09cd0ac0536c822577b86196a5eaf37c3ae373690b25c1b652
Contents?: true
Size: 889 Bytes
Versions: 5
Compression:
Stored size: 889 Bytes
Contents
/* See license.txt for terms of usage */ define(["core/lib"],function(e){var t={getCookie:function(t){var n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r].split("=");if(e.trim(i[0])==t)return i[1].length?unescape(e.trim(i[1])):null}},setCookie:function(e,t,n,r,i,s){var o=new Date;o.setTime(o.getTime()),n&&(n=n*1e3*60*60*24);var u=new Date(o.getTime()+n);document.cookie=e+"="+escape(t)+(n?";expires="+u.toGMTString():"")+(r?";path="+r:"")+(i?";domain="+i:"")+(s?";secure":"")},removeCookie:function(e,t,n){this.getCookie(e)&&(document.cookie=e+"="+(t?";path="+t:"")+(n?";domain="+n:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT")},toggleCookie:function(e){var t=this.getBooleanCookie(e);this.setCookie(e,!t)},getBooleanCookie:function(e){var t=this.getCookie(e);return!t||t=="false"?!1:!0},setBooleanCookie:function(e,t){this.setCookie(e,t?"true":"false")}};return t});
Version data entries
5 entries across 5 versions & 1 rubygems