X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d7d7e49e08a5648e152bbc91e091af293478629b..362ea2e7f8ac4254398791139cc060090199f400:/wolnelektury/static/infobar/infobar.js?ds=sidebyside diff --git a/wolnelektury/static/infobar/infobar.js b/wolnelektury/static/infobar/infobar.js new file mode 100644 index 000000000..b2e75caea --- /dev/null +++ b/wolnelektury/static/infobar/infobar.js @@ -0,0 +1,2 @@ +/*Based on No IE Information Bar 0.2.9 by Martin Ng , Ching Yonghan, modified by Kornel Lesinski. Under license: http://creativecommons.org/licenses/by-nc/2.0/legalcode*/ +(function(){if (!infobar||!viewplot)return;if(Math.random()*10>(infobar.s||10) || document.cookie.indexOf('browsehappyinfobar=0')>=0){infobar.style.display='none';return}infobar.innerHTML='r'+infobar.innerHTML;infobar.onclick=function(){infobar.all.tags("a")[0].innerHTML='Trwa otwieranie strony informacyjnej...'};if (!infobar.offsetHeight) return;var I=infobar.runtimeStyle,V=viewplot.runtimeStyle;I.top=infobar.offsetHeight*-1;I.left=V.top=V.left=0;V.position=I.position="absolute";var T=setInterval(function(){var N=parseInt(infobar.currentStyle.top),M=-N;if(M>0){M=M>5?5:M;I.top=N+M;V.top=parseInt(V.top)+M}else{clearInterval(T);I.position=V.position="";V.top='0'}},40)})()