diff options
-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; +} |