Added infobar from BrowseHappy.pl for Internet Explorer 6.
authorMarek Stępniowski <marek@stepniowski.com>
Mon, 29 Sep 2008 11:37:53 +0000 (13:37 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Mon, 29 Sep 2008 11:37:53 +0000 (13:37 +0200)
wolnelektury/media/infobar/infobar.css [new file with mode: 0644]
wolnelektury/media/infobar/infobar.gif [new file with mode: 0644]
wolnelektury/media/infobar/infobar.js [new file with mode: 0644]
wolnelektury/templates/base.html

diff --git a/wolnelektury/media/infobar/infobar.css b/wolnelektury/media/infobar/infobar.css
new file mode 100644 (file)
index 0000000..fbab951
--- /dev/null
@@ -0,0 +1,4 @@
+/*Based on No IE Information Bar 0.2.6 by Martin Ng <http://minghong.webhop.org>, 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 <body> */
+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 (file)
index 0000000..12b7474
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 (file)
index 0000000..b2e75ca
--- /dev/null
@@ -0,0 +1,2 @@
+/*Based on No IE Information Bar 0.2.9 by Martin Ng <http://minghong.webhop.org>, 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='<b onclick="infobar.style.display=\'none\';viewplot.height=\'100%\';document.cookie=\'browsehappyinfobar=0; path=/\'">r</b>'+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)})()
index ff77e27..1c60b41 100644 (file)
         {% endblock %}
     </head>
     <body id="{% block bodyid %}base{% endblock %}">
         {% endblock %}
     </head>
     <body id="{% block bodyid %}base{% endblock %}">
+        <!--[if lt IE 7]><link href=/media/infobar/infobar.css rel=stylesheet>
+        <div id=infobar><a href=http://browsehappy.pl/infobar>
+        Internet Explorer nie potrafi poprawnie wyświetlić tej strony. Kliknij tutaj, aby dowiedzieć się więcej...
+        </a></div><div id=viewplot><script src=/media/infobar/infobar.js></script><![endif]-->
         <div id="top-message">
             {% chunk "top-message" %}
         </div>
         <div id="top-message">
             {% chunk "top-message" %}
         </div>