This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
/*
|
||||
* Solo - A small and beautiful blogging system written in Java.
|
||||
* Copyright (c) 2010-2019, b3log.org & hacpai.com
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
// *** Cookies ***
|
||||
function writeCookie(name, value) {
|
||||
exp = new Date();
|
||||
|
2
skins/5styles/js/5styles.min.js
vendored
2
skins/5styles/js/5styles.min.js
vendored
@@ -1 +1 @@
|
||||
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('e n(b,h){c=v u();c.w(c.x()+(z*y*t));3.4=b+"="+r(h)+"; o="+c.s()+"; p=/";3.4.q("g=A","g="+h)}e B(b){8 a;a=b+"=";5=3.4.j(a);9(5!=-1){5+=a.d;6=3.4.j(";",5);9(6==-1){6=3.4.d}k K(3.4.L(5,6))}C{k""}}e F(m){8 2=3.M("J");8 7=0;I(8 i=0;i<2.d;i++){9(2[i].E.j("D")>-1&&2[i].f){2[i].l=H;9(2[i].f==m)7=i}}2[7].l=G;n("g",2[7].f)}',49,49,'||objs|document|cookie|offset|end|intFound|var|if|search|name|exp|length|function|title|stylesheet|value||indexOf|return|disabled|strCSS|writeCookie|expires|path|replace|escape|toGMTString|30|Date|new|setTime|getTime|1000|86400|css0|readCookie|else|css|type|setStyleSheet|false|true|for|link|unescape|substring|getElementsByTagName'.split('|'),0,{}))
|
||||
function writeCookie(e,t){exp=new Date,exp.setTime(exp.getTime()+2592e6),document.cookie=e+"="+escape(t)+"; expires="+exp.toGMTString()+"; path=/",document.cookie.replace("stylesheet=css0","stylesheet="+t)}function readCookie(e){var t;return t=e+"=",offset=document.cookie.indexOf(t),-1!=offset?(offset+=t.length,end=document.cookie.indexOf(";",offset),-1==end&&(end=document.cookie.length),unescape(document.cookie.substring(offset,end))):""}function setStyleSheet(e){for(var t=document.getElementsByTagName("link"),o=0,n=0;n<t.length;n++)-1<t[n].type.indexOf("css")&&t[n].title&&(t[n].disabled=!0,t[n].title==e&&(o=n));t[o].disabled=!1,writeCookie("stylesheet",t[o].title)}
|
Reference in New Issue
Block a user