commit 5e692746b23f6151ad4cf12a298f2005ed6816f9
parent b17fceed02e07a4f0c64f4fe70bf1a8b9e9ecec1
Author: Felicitus <felicitus@felicitus.org>
Date: Wed, 29 Jun 2011 23:37:14 +0200
Added loading screen
Diffstat:
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/frontend/css/PartKeepr.css b/frontend/css/PartKeepr.css
@@ -65,4 +65,7 @@ td.o2 {
.remoteimagefield {
border: 1px solid black;
-}-
\ No newline at end of file
+}
+
+#loading { position: absolute; width: 180px; margin: -70px 0 0 -90px; height: 140px; top: 50%; left: 50%; }
+#loading .logo { background: url(../resources/images/loading.gif) no-repeat; position: absolute; display: block; top: 25px; left: 22px; width: 120px; height: 120px; }
diff --git a/frontend/index.php b/frontend/index.php
@@ -36,7 +36,7 @@ include("config.php");
<link rel="stylesheet" type="text/css" href="css/PartKeepr.css"/>
</head>
<body>
-
+<div id="loading"><span class="logo"></span></div>
<?php
// @todo put that somewhere else. This is only a stupid hack.
function return_bytes ($size_str)
diff --git a/frontend/js/PartKeepr.js b/frontend/js/PartKeepr.js
@@ -9,6 +9,7 @@ PartKeepr.application = null;
Ext.application({
name: 'PartKeepr',
launch: function() {
+ Ext.get("loading").hide();
Ext.setLocale('en_US');
this.createLayout();
diff --git a/frontend/resources/images/loading.gif b/frontend/resources/images/loading.gif
Binary files differ.