diff options
author | Andrew Dolgov <[email protected]> | 2007-11-21 08:08:25 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-11-21 08:08:25 +0100 |
commit | 22e064069510573b1baf3d1c9b1d97493bd48795 (patch) | |
tree | 677cfc8ab66bf1e3d3bfb4a863c7e41eac12ddee /feedlist.js | |
parent | 6b5544caabe6dae7a55e854e5a256488dbde8de9 (diff) |
feed_init: fade out footer after timeout (closes #171)
Diffstat (limited to 'feedlist.js')
-rw-r--r-- | feedlist.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/feedlist.js b/feedlist.js index 577357b4d..03dea359a 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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); + } +} |