You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
craft/nether/textolite.js

1 line
41 KiB

8 months ago
/* Textolite v2.12s */ (function(){var _1=window,_2=document,_3=location,_a='setInterval',_b='setTimeout',_c='clearInterval',_d='clearTimeout',_e='encodeURIComponent',_f='getComputedStyle',_g='addEventListener',_h='removeEventListener',_i='getAttribute',_j='setAttribute',_k='removeAttribute',_l='querySelectorAll',_m='querySelector',_n='removeChild',_o='appendChild',_p='cloneNode',_q='insertNode',_r='insertBefore',_s='createElement',_t='createTextNode',_u='firstElementChild',_v='lastElementChild',_w='nextElementSibling',_x='previousElementSibling',_y='nextSibling',_z='parentNode',_A='contentWindow',_B='activeElement',_C='documentElement',_D='childNodes',_E='indexOf',_F='lastIndexOf',_G='toLowerCase',_H='charCodeAt',_I='toFixed',_J='toString',_K='substring',_L='replace',_M='search',_N='match',_O='slice',_P='split',_Q='join',_R='getSelection',_S='addRange',_T='createRange',_U='removeAllRanges',_V='getRangeAt',_W='setStart',_X='setEnd',_Y='collapse',_Z='tagName',a_='nodeType',b_='className',c_='clientHeight',d_='disabled',e_='checked',f_='length',g_='style',h_='value',i_='innerHTML',j_='outerHTML',k_='textContent',l_='getResponseHeader',m_='setRequestHeader',n_='preventDefault',o_='stopPropagation',p_='dataTransfer',q_='keyCode',r_='display',s_='opacity',t_='overflow',u_='position',v_='height',w_='width',x_='cssFloat',y_='textIndent',z_='paddingTop',A_='paddingLeft',B_='marginTop',C_='marginLeft',D_='marginRight',E_='none',F_='block',G_='hidden',H_='absolute',I_='DOMContentLoaded',J_='click',K_='focus',L_='blur',M_='mousemove',N_='mousedown',O_='mouseup',P_='keydown',Q_='keyup',R_='change',S_='input',T_='resize',$='data-',$a='textolite',$b=$a+'_check',$c=$a+'_update',$d=$a+'_install',$e=$a+'_not_install',$f=$a+'_activate',$g=$a+'_token',$h=$a+'_state',$i=$a+'_settings',$j=$a+'_recovery',$k=$a+'_scripts',$l=$+$a+'-string',$m=$+$a+'-focus',$n=$+$a+'-disabled',$r='system=',$s='&token=',$t='&version=',$u='&final=',$v='&beta=',$x='&settings[',$C='img',$D='src',$E='caret',$F='script',$G='iframe',$H='textarea',$I='<script',$J='</script',$K='<caret></caret>',$L='<span class=',$M='</span>',$N='<br>',$O=$M+$N+$L;var aa=function(a,b,c,d){var e=_1[_e](a)+'='+_1[_e](b);if(c){var f=new Date();f.setTime(f.getTime()+(1000*60*c));e+=';expires='+f.toUTCString()}if(d)e+=';path='+_1[_e](d)[_P]('%2F')[_Q]('/');_2.cookie=e},ab=function(a,b){aa(a,1,-1,b)},ac=function(a){var b=_2.cookie[_N]('(^|;) ?'+a+' ?= ?([^;]*)(;|$)');if(b)return b[2]},ad=function(b,c,d,e,f,g,h){var i,j=new Date(),k=_1[_a](function(){i=(new Date()-j)/e;if(i<1)g.call(b,(d-c)*f(i)+c);else{g.call(b,d);var a=b.a[f_];if(a>1){while(a--)if(b.a[a]==k)delete b.a[a]}else delete b.a;_1[_c](k);if(h)h.call(b)}},10);if(!b.a)b.a=[k];else b.a[b.a[f_]]=k},ae=function(c,d){if(_1[_f](c)[r_]==E_){c[g_][s_]='0';c[g_][r_]=F_;ad(c,0,1,400,function(a){return((-Math.cos(a*Math.PI)/2)+0.5)},function(b){c[g_][s_]=b[_I](1)},function(){c[g_][s_]='';if(d)d.call(c)})}},af=function(c,d){if(c[g_][t_]!=G_&&_1[_f](c)[r_]!=E_){ad(c,1,0,300,function(a){return((-Math.cos(a*Math.PI)/2)+0.5)},function(b){c[g_][s_]=b[_I](1)},function(){c[g_][r_]=E_;c[g_][s_]='';if(d)d.call(c)})}},ag=function(i,j){if(_1[_f](i)[r_]==E_){i[g_][s_]='0';i[g_][u_]=H_;i[g_][r_]=F_;var k=i[c_],l=parseInt(_1[_f](i)[z_]);i[g_][v_]='0';i[g_][u_]='';i[g_][t_]=G_;i[g_][C_]='-'+_1[_f](i[_u])[A_];if(l){k=k-l;ad(i,0,l,200,function(a){return((-Math.cos(a*Math.PI)/2)+0.5)},function(b){i[g_][z_]=b[_I](0)+'px'})}ad(i,0,k,200,function(c){return((-Math.cos(c*Math.PI)/2)+0.5)},function(d){i[g_][v_]=d[_I](0)+'px'});ad(i,parseInt(i[g_][C_]),0,400,function(e){return((-Math.cos(e*Math.PI)/2)+0.5)},function(f){i[g_][C_]=f[_I](0)+'px'});ad(i,0,1,600,function(g){return((-Math.cos(g*Math.PI)/2)+0.5)},function(h){i[g_][s_]=h[_I](1)},function(){i[g_][v_]='';i[g_][C_]='';i[g_][z_]='';i[g_][s_]='';i[g_][t_]='';if(j)j.call(i)})}},ah=function(i,j){if(i[g_][t_]!=G_&&_1[_f](i)[r_]!=E_){var k=i[c_],l=parseInt(_1[_f](i)[z_]);i[g_][t_]=G_;if(l){k=k-l;ad(i,l,0,400,function(a){return((-Math.cos(a*Math.PI)/2)+0.5)},function(b){i[g_][z_]=b[_I](0)+'px'})}ad(i,i[c_],0,420,functio