summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-16 09:45:00 +0100
committerAndrew Dolgov <[email protected]>2005-11-16 09:45:00 +0100
commit2f587484afa7ce5330d92b234784e3d5957f0c57 (patch)
treef8e415062e1cc159c8f75cd50a6d163aff686f04
parent50773ad43ffb018c9c8b18b461fc92a5c6a5975e (diff)
loading splash screen
-rw-r--r--config.php-dist4
-rw-r--r--tt-rss.css16
-rw-r--r--tt-rss.js5
-rw-r--r--tt-rss.php10
4 files changed, 34 insertions, 1 deletions
diff --git a/config.php-dist b/config.php-dist
index a879fddd4..b8005e1b6 100644
--- a/config.php-dist
+++ b/config.php-dist
@@ -64,7 +64,9 @@
define(DISPLAY_FEEDLIST_ACTIONS, false);
// display actions dropbox in feedlist, if disabled these actions are
// available in the global actions dropbox
-
+
+ define(ENABLE_SPLASH, true);
+ // enable splashscreen on loading
?>
diff --git a/tt-rss.css b/tt-rss.css
index 271037a90..ed5796eb5 100644
--- a/tt-rss.css
+++ b/tt-rss.css
@@ -503,3 +503,19 @@ div.bigErrorMsg {
padding : 30px;
margin : 20px;
}
+
+#splash {
+ z-index : 3;
+ width : 100%;
+ height : 100%;
+ position : absolute;
+ text-align : center;
+ background-image : url("images/vgrad_light_rev.png");
+ background-color : white;
+ background-position : top left;
+ background-repeat : repeat-x;
+}
+
+td.innerSplash {
+ margin : 35px;
+}
diff --git a/tt-rss.js b/tt-rss.js
index 13b7e50a6..d4a31bcdd 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -390,6 +390,11 @@ function init_second_stage() {
setTimeout("timeout()", 2*1000);
// scheduleFeedUpdate(true);
+ var splash = document.getElementById("splash");
+
+ if (splash) {
+ splash.style.display = "none";
+ }
}
diff --git a/tt-rss.php b/tt-rss.php
index 88dc8876e..edd4099a9 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -31,6 +31,16 @@
<body onload="init()">
+<? if (ENABLE_SPLASH) { ?>
+<div id="splash">
+ <table width='100%' height='100%'><tr>
+ <td class="innerSplash" valign="middle" align="center">
+ <img src="images/ttrss_logo.png" alt="logo">
+ <p>Loading, please wait...</p>
+ </td></tr></table>
+</div>
+<? } ?>
+
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
<? if (DISPLAY_HEADER) { ?>
<tr>