UNPKG

nodebb-theme-antergos

Version:

NodeBB theme based on Lavender. Created for the Antergos Forum.

2 lines (1 loc) 1.44 kB
!function(a){var c=window.Cookies,d=window.Cookies=a(window.jQuery);d.noConflict=function(){return window.Cookies=c, d}}(function(a){function b(a){return j.raw?a:encodeURIComponent(a)}function c(a){return j.raw?a:decodeURIComponent(a)}function d(a){return b(j.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(i," ")), j.json?JSON.parse(a):a}catch(a){}}function f(a,b){var c=j.raw?a:e(a);return h(b)?b(c):c}function g(){for(var a,b,c=0,d={};c<arguments.length;c++){b=arguments[c];for(a in b)d[a]=b[a]}return d}function h(a){return"[object Function]"===Object.prototype.toString.call(a)}var i=/\+/g,j=function(a,e,i){if(arguments.length>1&&!h(e)){if(i=g(j.defaults,i), "number"==typeof i.expires){var k=i.expires,l=i.expires=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*k)}return document.cookie=[b(a),"=",d(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var m=a?void 0:{},n=document.cookie?document.cookie.split("; "):[],o=0,p=n.length;p>o;o++){var q=n[o].split("="),r=c(q.shift()),s=q.join("=");if(a===r){m=f(s,e);break}a||void 0===(s=f(s))||(m[r]=s)}return m};return j.get=j.set=j, j.defaults={}, j.remove=function(a,b){return j(a,"",g(b,{expires:-1})), !j(a)}, a&&(a.cookie=j, a.removeCookie=j.remove), j})