provide visual indicator when pausing ajax updates

This commit is contained in:
Mike Macgirvin 2010-09-20 01:13:19 -07:00
父節點 e583ba0bff
當前提交 177a6d7f79
共有 5 個檔案被更改,包括 16 行新增3 行删除

二進制
images/pause.gif Normal file

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 866 B

二進制
images/play.gif Normal file

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 912 B

查看文件

@ -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

查看文件

@ -1579,4 +1579,10 @@ input#dfrn-url {
#dfrn-request-networks {
margin-bottom: 30px;
}
}
#pause {
position: fixed;
bottom: 5px;
right: 5px;
}