summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-18 21:55:28 +0100
committerAlib <aliboba@free.fr>2010-03-18 21:55:28 +0100
commit557f20198fb89fe2256edd48f0a6a79801d761c6 (patch)
tree720843354d302324f4d887cd7ece22c6f89cb035
parentf81b7df03bbd50de903173e7b9c4967f1014ee7b (diff)
downloadistreamdev-557f20198fb89fe2256edd48f0a6a79801d761c6.tar.gz
istreamdev-557f20198fb89fe2256edd48f0a6a79801d761c6.tar.bz2
fixed centering loading when scrolled down
-rw-r--r--css/istreamdev.css10
-rw-r--r--index.html3
-rw-r--r--js/istreamdev.js2
3 files changed, 6 insertions, 9 deletions
diff --git a/css/istreamdev.css b/css/istreamdev.css
index 493eeb1..5d48d98 100644
--- a/css/istreamdev.css
+++ b/css/istreamdev.css
@@ -1,8 +1,6 @@
-
div.loader {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
-
background-image: url(../img/loading.gif);
background-repeat: no-repeat;
background-position: 50% 50%;
@@ -10,13 +8,11 @@ div.loader {
vertical-align: middle;
height: 100%;
width: 100%;
- position: absolute;
- z-index: 10;
- left: 0px;
- top: 0px;
+ z-index: 100;
+ left: 0;
opacity: .85;
display: block;
-
+ position: absolute;
}
ul li img.menuicon {
diff --git a/index.html b/index.html
index d41ce9f..425e5fb 100644
--- a/index.html
+++ b/index.html
@@ -19,7 +19,8 @@
<div id="loader"></div>
<div id="jqt">
<!---------------------------------- HOME SCREEN (always present) ---------------------------------->
- <div id="home" class="current">
+
+ <div id="home" class="current">
<div class="toolbar">
<h1>HOME</h1>
</div>
diff --git a/js/istreamdev.js b/js/istreamdev.js
index fa9acb9..cffc610 100644
--- a/js/istreamdev.js
+++ b/js/istreamdev.js
@@ -70,7 +70,7 @@ $('#home_but').tap(function(event) {
function json_start(button) {
$(button).addClass('active');
$('#loader').addClass("loader");
-
+ $('#loader').css("top", window.pageYOffset);
}
function json_complete(destination,effect) {
$('#loader').removeClass("loader");