]> git.wh0rd.org Git - tt-rss.git/commitdiff
feed_init: fade out footer after timeout (closes #171)
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 21 Nov 2007 07:08:25 +0000 (08:08 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 21 Nov 2007 07:08:25 +0000 (08:08 +0100)
feedlist.js

index 577357b4d761cdae1471fe57b0c931d4c14c0687..03dea359a7fa3aac6a13e6d5ad8dde4a9c912462 100644 (file)
@@ -269,7 +269,40 @@ function feedlist_init() {
                        }
                }
 
+               if (getInitParam("theme") == "") {
+                       setTimeout("hide_footer()", 5000);
+               }
+
        } catch (e) {
                exception_error("feedlist/init", e);
        }
 }
+
+function hide_footer_af(effect) {
+       try {
+               var c = document.getElementById("content-frame");
+
+               if (c) {
+                       c.style.bottom = "0px";
+               } else {
+                       var h = document.getElementById("headlines-frame");
+
+                       if (h) {
+                               h.style.bottom = "0px";
+                       }
+               }
+
+       } catch (e) {
+               exception_error("hide_footer_af", e);
+       }
+}
+
+function hide_footer() {
+       try {
+               if (Element.visible("footer")) {
+                       new Effect.Fade("footer", { afterFinish: hide_footer_af });
+               }
+       } catch (e) {
+               exception_error("hide_footer", e);
+       }
+}