From e4433f17642a7ecd679585fab7f8c869acd22f02 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Sat, 9 Jul 2016 15:03:33 +0200 Subject: [PATCH] add arrow keys to select pictures to show to all in presenter --- presenter/scripts.js | 23 +++++++++++++++++++++++ presenter/showroom.pl | 5 ++--- presenter/style.css | 2 ++ 3 files changed, 27 insertions(+), 3 deletions(-) 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; } + -- 2.43.0