From: Jan Michel Date: Sat, 9 Jul 2016 13:03:33 +0000 (+0200) Subject: add arrow keys to select pictures to show to all in presenter X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e4433f17642a7ecd679585fab7f8c869acd22f02;p=labtools.git add arrow keys to select pictures to show to all in presenter --- diff --git a/presenter/scripts.js b/presenter/scripts.js index 5b2cafa..720d97d 100644 --- a/presenter/scripts.js +++ b/presenter/scripts.js @@ -39,6 +39,25 @@ function present(f) { alert("Select a file to show!"); } } + +function presentNext(d) { + if(d==40) d=1; + else if(d==38) d=-1; + else return true; + current = currentPic.split(',',1); + for(i=0;i
 
'; + + c = currentPic.split(',',1); + document.getElementById('current').innerHTML = "Current: "+c[0]; + } setTimeout('getData("getPic.pl?old='+t+'&room='+currentRoom+'",null,updatepresentation)',1000); } diff --git a/presenter/showroom.pl b/presenter/showroom.pl index 2fc030b..1cc9b32 100755 --- a/presenter/showroom.pl +++ b/presenter/showroom.pl @@ -25,7 +25,7 @@ print < - + HDOC print <Remote Presenter
<-- Click to show or just watch! @@ -41,8 +41,7 @@ Select a file and press upload. -
- +
HDOC diff --git a/presenter/style.css b/presenter/style.css index f498115..66585e0 100644 --- a/presenter/style.css +++ b/presenter/style.css @@ -2,6 +2,7 @@ html { height:100%; margin:0; padding:0; + font-size:9pt; } @@ -115,3 +116,4 @@ h1 { text-align:center; background:white; } +