From 177a6d7f79f5e237eb6d0811e8e28732a4c90d03 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 20 Sep 2010 01:13:19 -0700 Subject: [PATCH] provide visual indicator when pausing ajax updates --- images/pause.gif | Bin 0 -> 866 bytes images/play.gif | Bin 0 -> 912 bytes include/main.js | 9 ++++++++- index.php | 2 +- view/theme/default/style.css | 8 +++++++- 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 images/pause.gif create mode 100644 images/play.gif diff --git a/images/pause.gif b/images/pause.gif new file mode 100644 index 0000000000000000000000000000000000000000..dc57c4c98124f8a8dd7d1ab70118ce7b3ebe22df GIT binary patch literal 866 zcmV-o1D*UwNk%v~VGsZi0OyMU000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~EC2ui01yBW000O_0RIUbNU)&6g9sBMgac*Lzc5e`C3FEm%s&kPq)e=M sG2=#y7&RiK2-4$7jv+sG6nT*3N|h-Q3NjPwUmY`-6zbf`(_laVJAdq*{r~^~ literal 0 HcmV?d00001 diff --git a/images/play.gif b/images/play.gif new file mode 100644 index 0000000000000000000000000000000000000000..4010f056d298bb618700ec9557c331d6b0546d5e GIT binary patch literal 912 zcmV;B18@9CNk%v~VGsZi0OybZ000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~EC2ui01yBW000Pe0RIUbNU-2Qe+Lm7B$yAL!i5C8@d1@i;6sDiU;t=B z>Yl}g*>V5?0AWe0g9Ss59613AFO&jRt{mB*O0|?CXVNr8kD$zv0VIGC_c3Np02iJh mvv@Jv4FDFT++u3bnvo~2_!TwyPT4w$1TS7RsBmn-fB-vAVzP|@ literal 0 HcmV?d00001 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'] .= '
'; // 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; +}