部分 eval 代码还原 (通过 js 执行获取原代码)
This commit is contained in:
parent
fbd56c3951
commit
cd9dcb4452
@ -1,4 +1,5 @@
|
||||
/* bignumber.js v2.4.0 https://github.com/MikeMcl/bignumber.js/LICENCE */ ! function (e) {
|
||||
/* bignumber.js v2.4.0 https://github.com/MikeMcl/bignumber.js/LICENCE */
|
||||
! function (e) {
|
||||
"use strict";
|
||||
|
||||
function n(e) {
|
||||
@ -570,6 +571,8 @@
|
||||
} catch (D) { }
|
||||
} else e || (e = "undefined" != typeof self ? self : Function("return this")()), e.BigNumber = a
|
||||
}(this);
|
||||
|
||||
|
||||
! function (t, e) {
|
||||
"object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.ClipboardJS = e() : t.ClipboardJS = e()
|
||||
}(this, function () {
|
||||
@ -947,26 +950,5 @@
|
||||
}
|
||||
var n, o
|
||||
});
|
||||
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
|
||||
}('3 1v=1h 1y(\'.1z-1m\');3 v=7.5("d");3 F=7.5("1l");3 D=7.5("1f");3 A=7.5("y");3 G=7.5("G");3 Q=7.5("1D");3 T=7.5("1H");1e.1I("1n",q(){G.h.r="L";3 a=1j();8(1x.1A(a).u>0&&a.d!=""){v.m=a.d;F.l=a.1l-2;D.l=a.1f-2;1i()}});q 1j(){3 W=1e.1C.1L;3 1c=/[?&]([^=#]+)=([^&#]*)/g,a={},B;1F(B=1c.1G(W)){a[B[1]]=B[2]}8(W.C(\'1B\')>-1){V a}}q 1M(){3 16=F.l;3 15=D.l;F.l=15;D.l=16;v.m=A.m;A.m=""}q X(x,4,b){3 9="("+x+")<t>"+b.z()+"</t> = ";3 d,e,U=1J;3 c=x.u;8(x[0]=="-"){9+="-[";x=x.1K(1);c--;U=1O}3 w=x.C(".");8(w>=0){x=x.17(0,w)+x.17(w+1,c);c--}S w=c;1b(3 i=0;i<c;i++){d=1o(x[i],b);e=w-i-1;e=e.z();9+="("+d+" \\1p "+b+"<I>"+e+"</I>)";8(i<c-1)9+=" + "}8(U)9+="]";9+=" = ("+4+")<t>10</t>";7.5("1w").p=9}q 1q(x){f=x.z();i=f.C(\'.\');c=f.u-i-1;V c}q 1a(4,y,b){3 o,9="";7.5("1d").11(\'12\')[0].p="";8(4<0)4=-4;4=4.z();3 18=4.C(".");3 s=y.u-y.C(".")-1;8(s>6)s=6;8(18>=0&&s>0){9="\\1u\\1r\\1s\\1t\\K\\1E\\1R\\19\\1k\\2b\\2c\\K\\O\\K\\2a\\29\\27\\28\\1P\\2i\\O\\K\\2k\\26<25>";9+="M("+4+"&1V;"+b+"<I>"+s+"</I>) = ";4=J.M(4*J.1W(b,s));9+=4}7.5("1T").p=9;1b(3 n=4,k=0;n>=1;k++){o="<Y>";o+="<j>"+n+"/"+b+"</j>";o+="<j>"+J.M(n/b)+"</j>";o+="<j>"+(n%b).1Q()+"</j>";o+="<j>"+k+"</j>";o+="</Y>";n=J.M(n/b);3 14=7.5(\'1d\').11(\'12\')[0];3 13=14.23(k);13.p=o}7.5("21").p="= ("+y+")<t>"+b+"</t>"}q 1i(){3 x=v.m;3 H=F.l+2;3 E=D.l+2;2d{3 y=1h 20(x,H);v.h.1g="1Z"}24(1Y){v.h.1g="#1U";A.m="";V}3 4=y.z(10);y=y.z(E).2g();A.m=y;3 P=A.m.B(/[\\2e-Z]/g);3 N="\\2j\\2f\\19\\1k\\2h";8(P!=1X)N+=" ("+P.u+((P.u==1)?" \\O)":" \\O)");7.5("N").p=N;7.5("22").p=H;7.5("1S").p=E;X(x,4,H);1a(4,y,E);8(H==10)Q.h.r="L";S Q.h.r="R";8(E==10)T.h.r="L";S T.h.r="R";G.h.r="R"}q 1N(){G.h.r="L"}', 62, 145, '|||var|dec|getElementById||document|if|txt|params||len|||||style||td||selectedIndex|value||row|innerHTML|function|display|nd|sub|length|xelem|idot|||toString|yelem|match|indexOf|sel2elem|b2|sel1elem|calgroup|b1|sup|Math|u6570|none|floor|ylabel|u4f4d|yd|cal1elem|block|else|cal2elem|minus|return|url|base2decimal|tr|||getElementsByTagName|tbody|newRow|tableRef|i2|i1|substring|id|u7ed3|decimal2base|for|regex|cal2tbl|window|to|background|new|onconvert|GetURLParams|u679c|form|copy|DOMContentLoaded|parseInt|u00D7|digits_after_period|u76ee|u6807|u57fa|u5c06|clipboard|cal1txt|Object|ClipboardJS|btn|keys|8jz|location|cal1|u4e58|while|exec|cal2|addEventListener|false|substr|href|swap|onrst|true|u8fbe|toFixed|u4ee5|b2txt|cal2dec|fff0f0|times|pow|null|err|white|BigNumber|cal2result|b1txt|insertRow|catch|br|u003a|u9ad8|u53ef|u6700|u0028|u7684|u5c0f|try|dA|u6362|toUpperCase|uff1a|u0036|u8f6c|u0029'.split('|'), 0, {}));
|
||||
|
||||
var clipboard=new ClipboardJS('.btn-copy');var xelem=document.getElementById("d");var sel1elem=document.getElementById("form");var sel2elem=document.getElementById("to");var yelem=document.getElementById("y");var calgroup=document.getElementById("calgroup");var cal1elem=document.getElementById("cal1");var cal2elem=document.getElementById("cal2");window.addEventListener("DOMContentLoaded",function(){calgroup.style.display="none";var params=GetURLParams();if(Object.keys(params).length>0&¶ms.d!=""){xelem.value=params.d;sel1elem.selectedIndex=params.form-2;sel2elem.selectedIndex=params.to-2;onconvert()}});function GetURLParams(){var url=window.location.href;var regex=/[?&]([^=#]+)=([^&#]*)/g,params={},match;while(match=regex.exec(url)){params[match[1]]=match[2]}if(url.indexOf('8jz')>-1){return params}}function swap(){var i1=sel1elem.selectedIndex;var i2=sel2elem.selectedIndex;sel1elem.selectedIndex=i2;sel2elem.selectedIndex=i1;xelem.value=yelem.value;yelem.value=""}function base2decimal(x,dec,b){var txt="("+x+")<sub>"+b.toString()+"</sub> = ";var d,e,minus=false;var len=x.length;if(x[0]=="-"){txt+="-[";x=x.substr(1);len--;minus=true}var idot=x.indexOf(".");if(idot>=0){x=x.substring(0,idot)+x.substring(idot+1,len);len--}else idot=len;for(var i=0;i<len;i++){d=parseInt(x[i],b);e=idot-i-1;e=e.toString();txt+="("+d+" \u00D7 "+b+"<sup>"+e+"</sup>)";if(i<len-1)txt+=" + "}if(minus)txt+="]";txt+=" = ("+dec+")<sub>10</sub>";document.getElementById("cal1txt").innerHTML=txt}function digits_after_period(x){f=x.toString();i=f.indexOf('.');len=f.length-i-1;return len}function decimal2base(dec,y,b){var row,txt="";document.getElementById("cal2tbl").getElementsByTagName('tbody')[0].innerHTML="";if(dec<0)dec=-dec;dec=dec.toString();var id=dec.indexOf(".");var nd=y.length-y.indexOf(".")-1;if(nd>6)nd=6;if(id>=0&&nd>0){txt="\u5c06\u76ee\u6807\u57fa\u6570\u4e58\u4ee5\u7ed3\u679c\u7684\u5c0f\u6570\u4f4d\u6570\u0028\u6700\u9ad8\u53ef\u8fbe\u0036\u4f4d\u6570\u0029\u003a<br>";txt+="floor("+dec+"×"+b+"<sup>"+nd+"</sup>) = ";dec=Math.floor(dec*Math.pow(b,nd));txt+=dec}document.getElementById("cal2dec").innerHTML=txt;for(var n=dec,k=0;n>=1;k++){row="<tr>";row+="<td>"+n+"/"+b+"</td>";row+="<td>"+Math.floor(n/b)+"</td>";row+="<td>"+(n%b).toFixed()+"</td>";row+="<td>"+k+"</td>";row+="</tr>";n=Math.floor(n/b);var tableRef=document.getElementById('cal2tbl').getElementsByTagName('tbody')[0];var newRow=tableRef.insertRow(k);newRow.innerHTML=row}document.getElementById("cal2result").innerHTML="= ("+y+")<sub>"+b+"</sub>"}function onconvert(){var x=xelem.value;var b1=sel1elem.selectedIndex+2;var b2=sel2elem.selectedIndex+2;try{var y=new BigNumber(x,b1);xelem.style.background="white"}catch(err){xelem.style.background="#fff0f0";yelem.value="";return}var dec=y.toString(10);y=y.toString(b2).toUpperCase();yelem.value=y;var yd=yelem.value.match(/[\dA-Z]/g);var ylabel="\u8f6c\u6362\u7ed3\u679c\uff1a";if(yd!=null)ylabel+=" ("+yd.length+((yd.length==1)?" \u4f4d)":" \u4f4d)");document.getElementById("ylabel").innerHTML=ylabel;document.getElementById("b1txt").innerHTML=b1;document.getElementById("b2txt").innerHTML=b2;base2decimal(x,dec,b1);decimal2base(dec,y,b2);if(b1==10)cal1elem.style.display="none";else cal1elem.style.display="block";if(b2==10)cal2elem.style.display="none";else cal2elem.style.display="block";calgroup.style.display="block"}function onrst(){calgroup.style.display="none"}
|
Loading…
Reference in New Issue
Block a user