aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-20 01:13:19 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-20 01:13:19 -0700
commit177a6d7f79f5e237eb6d0811e8e28732a4c90d03 (patch)
tree8dc94921d49cb6c0d46514f3bd7fcb50b67a2fd9
parente583ba0bff7e506aadd2c50dd73f45b69ed4e58f (diff)
downloadvolse-hubzilla-177a6d7f79f5e237eb6d0811e8e28732a4c90d03.tar.gz
volse-hubzilla-177a6d7f79f5e237eb6d0811e8e28732a4c90d03.tar.bz2
volse-hubzilla-177a6d7f79f5e237eb6d0811e8e28732a4c90d03.zip
provide visual indicator when pausing ajax updates
-rw-r--r--images/pause.gifbin0 -> 866 bytes
-rw-r--r--images/play.gifbin0 -> 912 bytes
-rw-r--r--include/main.js9
-rw-r--r--index.php2
-rw-r--r--view/theme/default/style.css8
5 files changed, 16 insertions, 3 deletions
diff --git a/images/pause.gif b/images/pause.gif
new file mode 100644
index 000000000..dc57c4c98
--- /dev/null
+++ b/images/pause.gif
Binary files differ
diff --git a/images/play.gif b/images/play.gif
new file mode 100644
index 000000000..4010f056d
--- /dev/null
+++ b/images/play.gif
Binary files differ
diff --git a/include/main.js b/include/main.js
index cc44db5d4..645170b41 100644
--- a/include/main.js
+++ b/include/main.js
@@ -46,10 +46,17 @@
$(document).keypress(function(event) {
if(event.keyCode == '19') {
event.preventDefault();
- if(stopped == false)
+ if(stopped == false) {
stopped = true;
+ $('#pause img').attr('src','images/pause.gif');
+ $('#pause img').css({'border': '1px solid black'});
+
+ }
else {
stopped = false;
+ $('#pause img').attr('src','');
+ $('#pause img').css({'border': 'none'});
+
}
}
});
diff --git a/index.php b/index.php
index 8002f57fd..9b9e708f7 100644
--- a/index.php
+++ b/index.php
@@ -86,7 +86,7 @@ if(x($_SESSION,'sysmsg')) {
// Feel free to comment out this line on production sites.
$a->page['content'] .= $debug_text;
-
+$a->page['content'] .= '<div id="pause"><img src="" alt="" /></div>';
// build page
// Navigation (menu) template
diff --git a/view/theme/default/style.css b/view/theme/default/style.css
index 21d95cd68..a97ad9331 100644
--- a/view/theme/default/style.css
+++ b/view/theme/default/style.css
@@ -1579,4 +1579,10 @@ input#dfrn-url {
#dfrn-request-networks {
margin-bottom: 30px;
-} \ No newline at end of file
+}
+
+#pause {
+ position: fixed;
+ bottom: 5px;
+ right: 5px;
+}