From cd06816dd36efc08b36af102ae384606bb5ba419 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Mon, 29 Sep 2008 13:37:53 +0200 Subject: [PATCH] Added infobar from BrowseHappy.pl for Internet Explorer 6. --- wolnelektury/media/infobar/infobar.css | 4 ++++ wolnelektury/media/infobar/infobar.gif | Bin 0 -> 247 bytes wolnelektury/media/infobar/infobar.js | 2 ++ wolnelektury/templates/base.html | 4 ++++ 4 files changed, 10 insertions(+) create mode 100644 wolnelektury/media/infobar/infobar.css create mode 100644 wolnelektury/media/infobar/infobar.gif create mode 100644 wolnelektury/media/infobar/infobar.js 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 0000000000000000000000000000000000000000..12b74741f22a8aa5fa9c51cfc977f3edd5416414 GIT binary patch literal 247 zcmV4?$iRr#KlE9W#GUb?Zy%>m862><{8A^8LW0018VEC2ui01yBW000Ga;3tlsL7u1am?)||nbwj{@C3~~ zDuD+_x*C81!RdIzVgZP92m*w}Az(yJo*qkq>cONa0zn24eh6};t6(5FtOXBGW#j;} xI|REK{h18@0!eFZ5_1k5e{2L67m0reA{Psj3lf%;5*rpH5eS~2ppYLS06X-8W+4Co literal 0 HcmV?d00001 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" %}
-- 2.20.1