mirror of
https://github.com/danog/danog.github.io.git
synced 2024-11-26 20:04:55 +01:00
2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
|
function xr_nn(){return(xr_ms<1);};var xr_w,xr_h;function xr_bcvrfh(){xr_h=document.documentElement.clientHeight;xr_w=document.documentElement.clientWidth;var s=xr_xr.style.overflow;xr_xr.style.overflow = "scroll";var ph=xr_xr.scrollHeight+xr_xr.offsetTop;var pw=xr_xr.scrollWidth;xr_xr.style.overflow=s;if(ph>xr_h)xr_h=ph;if(pw>xr_w)xr_w=pw;return document.getElementById("xr_bcv");};function xr_bcvrfr(){};var xr_ie,xr_ie6,xr_ie7,xr_ie8n,xr_ie9,xr_chrome,xr_ipod,xr_dx,xr_fl,xr_ft,xr_fr,xr_fb,xr_fld,xr_ftd,xr_fo,xr_ho,xr_wx,xr_wy;var xr_bckgx=0,xr_bckgy=0;var xr_pul=0;var xr_xpul=0;var xr_trid=0;var xr_ms=-1;var xr_ps=new Array();var xr_pl=new Array();var xr_pi=0;var xr_rc=-1;var xr_rrl=0;var xr_rpp=0;var xr_mal=0;var xr_mso=1;var xr_nore=0;function xr_rx(){if (xr_trid==1){xr_wx=window.innerWidth;xr_wy=window.innerHeight;if(!xr_wx){xr_wx=document.documentElement.clientWidth;xr_wy=document.documentElement.clientHeight;};if(!xr_wx){xr_wx=document.body.clientWidth;xr_wy=document.body.clientHeight;};}else{xr_wx=document.documentElement.clientWidth;xr_wy=document.documentElement.clientHeight;};if (xr_trid==1 && top.location == location){if (xr_wy<(xr_xr.offsetHeight+xr_xr.offsetTop) || xr_wx<(xr_xr.offsetWidth+xr_xr.offsetLeft)){document.documentElement.style.overflow="auto";document.body.scroll = "auto";if(xr_wy>(xr_xr.offsetHeight+xr_xr.offsetTop)){document.documentElement.style.overflowY="hidden";}else{if(xr_ie && !xr_ie9){xr_wx+=16;}else{document.documentElement.style.overflowY="hidden";xr_wx=document.documentElement.clientWidth;};document.documentElement.style.overflowY="auto";};if(xr_wx>(xr_xr.offsetWidth+xr_xr.offsetLeft)){document.documentElement.style.overflowX="hidden";}else{document.documentElement.style.overflowX="auto";};}else{document.documentElement.style.overflow="hidden";document.body.scroll = "no";document.documentElement.style.overflowX="hidden";document.documentElement.style.overflowY="hidden";};};xr_xr.style.marginLeft="0px";xr_dx=(xr_wx-parseInt(xr_xr.style.width))/2;if(xr_dx<0){xr_dx=0;};xr_xr.style.left=xr_dx+'px';document.body.style.backgroundPosition=xr_dx+xr_bckgx+"px "+(xr_bckgy+xr_xr.offsetTop)+"px";xr_bcvrfr();xr_pvx();var bph=document.getElementById('xr_bph');if(bph){var w=parseInt(xr_xr.style.width);var h=parseInt(xr_xr.style.height)+parseInt(xr_xr.style.top);if(xr_wx<w) bph.style.width=w+'px';else bph.style.width='100%';if(xr_wy<h) bph.style.height=h+'px';else bph.style.height='100%';}};function xr_v0(o){if(o.style.visibility!='hidden'){if(o.className.indexOf("xr_pua2")!=-1 && (!xr_ie6 || o.getElementsByTagName('IMG').length)){if(xr_ie){o.style.width=xr_xr.style.width;o.style.height=xr_xr.style.height;};xr_puad2(o);}else if(o.className.indexOf("xr_prl")!=-1){var t = parseInt(o.className.substr(o.className.indexOf("xr_prl")+8,2));if(t>0 && t<100){t*=100}else{t=500};xr_qstartlb((parseInt(o.className.substr(o.className.indexOf("xr_prl")+6,1))*10)+parseInt(o.className.substr(o.className.indexOf("xr_prl")+7,1)),t,o.id);}else{xr_puad0(o);xr_v00(o);};};};function xr_v00(o){o.style.visibility='hidden';o.style.display='none';o.style.zIndex=-1;o.innerHTML=o.innerHTML;};function xr_v1(o){if(o.className.indexOf("xr_pplock")!=-1){xr_xpul=0;xr_pul=0;};if(o.className.indexOf("xr_pua1")!=-1 && (!xr_ie6 || o.getElementsByTagName('IMG').length)){if(xr_ie){o.style.width=xr_xr.style.width;o.style.height=xr_xr.style.height;};xr_puad1(o);}else if(o.className.indexOf("xr_prl")!=-1){o.innerHTML=o.innerHTML;o.style.zIndex=100;var t = parseInt(o.className.substr(o.className.indexOf("xr_prl")+8,2));if(t>0 && t<100){t*=100}else{t=500};xr_qstartl((parseInt(o.className.substr(o.className.indexOf("xr_prl")+6,1))*10)+parseInt(o.className.substr(o.className.indexOf("xr_prl")+7,1)),t,o.id);}else{xr_puad0(o);if(o.className.indexOf("xr_pua2")!=-1){if(xr_ie){o.style.width=xr_xr.style.width;o.style.height=xr_xr.style.height;};xr_sopcs(o,1);};o.innerHTML=o.innerHTML;o.style.display='block';o.style.visibility='visible';o.style.zIndex=100;};};function xr_r0(o){var ll = o.getElementsByTagName('*');for (xr_i=0;xr_i<ll.length;xr_i++){if (
|