From 30b3f54142a115fa5ba402156f465cf7d2f9a4df Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 20 Apr 2015 21:49:48 +0200 Subject: [PATCH] latest changes to presenter --- presenter/scripts.js | 9 +++++++-- presenter/style.css | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/presenter/scripts.js b/presenter/scripts.js index e6eb137..ef481e7 100644 --- a/presenter/scripts.js +++ b/presenter/scripts.js @@ -31,7 +31,12 @@ function updatefiles() { } function present(f) { - getData("showPic.pl?"+f); + if(f != "") { + getData("showPic.pl?"+f); + } + else { + alert("Select a file to show!"); + } } function updatepresentation(t) { @@ -45,4 +50,4 @@ function updatepresentation(t) { setTimeout('updatefiles();',500); -setTimeout('getData("getPic.pl",null,updatepresentation)',1000); \ No newline at end of file +setTimeout('getData("getPic.pl",null,updatepresentation)',1000); diff --git a/presenter/style.css b/presenter/style.css index 9fafb57..c50d40a 100644 --- a/presenter/style.css +++ b/presenter/style.css @@ -47,7 +47,8 @@ body { #content img { height:100%; - width:100%; + /*width:100%;*/ + max-width:100%; object-fit:contain; margin:0; padding:0; @@ -65,4 +66,4 @@ div.but { color:#889; } - \ No newline at end of file + -- 2.43.0