]> git.wh0rd.org Git - tt-rss.git/commitdiff
loading splash screen
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 Nov 2005 08:45:00 +0000 (09:45 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 Nov 2005 08:45:00 +0000 (09:45 +0100)
config.php-dist
tt-rss.css
tt-rss.js
tt-rss.php

index a879fddd4372fef3341accae0162d80df5c6cbec..b8005e1b66927e00d1abe19d095d7ee603fcd95a 100644 (file)
@@ -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
 
 ?>
 
index 271037a90c6c252f0864b2ed431adf80bb7a7e5c..ed5796eb5b19051f5c56513cf94d63fc5e1ea2ca 100644 (file)
@@ -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;
+}
index 13b7e50a64d368f89ade399513db9cc84ab94406..d4a31bcdd95f7c5f992631003e59fa6cbfbc13c3 100644 (file)
--- 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";
+       }
 
 }
 
index 88dc8876e963cf6678691ed561954f63b941632d..edd4099a9eb11ccf21b350624faf607a8f15cf2e 100644 (file)
 
 <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>