This commit is contained in:
Vanessa
2018-02-11 16:05:43 +08:00
parent 235403e1c0
commit 79f67df23f
707 changed files with 11725 additions and 11721 deletions

View File

@@ -0,0 +1,35 @@
// *** Cookies ***
function writeCookie(name, value) {
exp = new Date();
exp.setTime(exp.getTime() + (86400 * 1000 * 30));
document.cookie = name + "=" + escape(value) + "; expires=" + exp.toGMTString() + "; path=/";
document.cookie.replace("stylesheet=css0","stylesheet="+value);
}
function readCookie(name) {
var search;
search = name + "=";
offset = document.cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1){
end = document.cookie.length;
}
return unescape(document.cookie.substring(offset, end));
}else{
return "";
}
}
function setStyleSheet(strCSS){
var objs=document.getElementsByTagName("link");
var intFound=0;
for(var i=0;i<objs.length;i++){
if(objs[i].type.indexOf("css")>-1&&objs[i].title){
objs[i].disabled = true;
if(objs[i].title==strCSS) intFound=i;
}
}
objs[intFound].disabled = false;
writeCookie("stylesheet",objs[intFound].title);
}

1
skins/5styles/js/5styles.min.js vendored Normal file
View File

@@ -0,0 +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,{}))