diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-20 01:13:19 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-20 01:13:19 -0700 |
commit | 177a6d7f79f5e237eb6d0811e8e28732a4c90d03 (patch) | |
tree | 8dc94921d49cb6c0d46514f3bd7fcb50b67a2fd9 | |
parent | e583ba0bff7e506aadd2c50dd73f45b69ed4e58f (diff) | |
download | volse-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.gif | bin | 0 -> 866 bytes | |||
-rw-r--r-- | images/play.gif | bin | 0 -> 912 bytes | |||
-rw-r--r-- | include/main.js | 9 | ||||
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | view/theme/default/style.css | 8 |
5 files changed, 16 insertions, 3 deletions
diff --git a/images/pause.gif b/images/pause.gif Binary files differnew file mode 100644 index 000000000..dc57c4c98 --- /dev/null +++ b/images/pause.gif diff --git a/images/play.gif b/images/play.gif Binary files differnew file mode 100644 index 000000000..4010f056d --- /dev/null +++ b/images/play.gif 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'}); + } } }); @@ -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; +} |