From: Marek Stępniowski Date: Mon, 29 Sep 2008 11:37:53 +0000 (+0200) Subject: Added infobar from BrowseHappy.pl for Internet Explorer 6. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/cd06816dd36efc08b36af102ae384606bb5ba419?ds=sidebyside Added infobar from BrowseHappy.pl for Internet Explorer 6. --- diff --git a/wolnelektury/media/infobar/infobar.css b/wolnelektury/media/infobar/infobar.css new file mode 100644 index 000000000..fbab95163 --- /dev/null +++ b/wolnelektury/media/infobar/infobar.css @@ -0,0 +1,4 @@ +/*Based on No IE Information Bar 0.2.6 by Martin Ng , modified by Kornel Lesinski. Under license:http://creativecommons.org/licenses/by-nc/2.0/legalcode*/ +@media screen{#viewplot{ +padding:0; /* << Tutaj ustaw margines jak dla */ +width:100%;height:95%;overflow:auto;height:expression(this.parentNode.offsetHeight-this.offsetTop);position:relative}html{border-top:0;border-left:0;border-bottom:0;overflow:hidden;height:100%}body{margin:0;padding:0;overflow:hidden;height:100%}#infobar{width:100%;font:normal 8pt/1 "MS Sans Serif"}#infobar a{display:block;font:message-box;zoom:1;color:InfoText;background:InfoBackground url(infobar.gif) no-repeat fixed .33em .2em;padding:.45em .3em .45em 2.3em;border-bottom:.16em outset;text-align:left;text-decoration:none;cursor:default}#infobar a{font-size:8pt;letter-spacing:0}#infobar a:hover{color:HighlightText;background-color:Highlight}}#infobar b{position:absolute;right:5px;top:3px;font-size:11px;font-family:webdings;cursor:hand}@media print{#infobar{display:none}} \ No newline at end of file diff --git a/wolnelektury/media/infobar/infobar.gif b/wolnelektury/media/infobar/infobar.gif new file mode 100644 index 000000000..12b74741f Binary files /dev/null and b/wolnelektury/media/infobar/infobar.gif differ diff --git a/wolnelektury/media/infobar/infobar.js b/wolnelektury/media/infobar/infobar.js new file mode 100644 index 000000000..b2e75caea --- /dev/null +++ b/wolnelektury/media/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)})() diff --git a/wolnelektury/templates/base.html b/wolnelektury/templates/base.html index ff77e2745..1c60b4151 100644 --- a/wolnelektury/templates/base.html +++ b/wolnelektury/templates/base.html @@ -13,6 +13,10 @@ {% endblock %} +
{% chunk "top-message" %}