changeset 230:6b34b61b956b

Add a horrible kludge for using the info button to display also the image info on mobile.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 26 Mar 2018 17:03:48 +0300
parents 9dcfd808c092
children 2731d2d8400e
files basic.css mgallery.js
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/basic.css	Mon Mar 26 17:03:09 2018 +0300
+++ b/basic.css	Mon Mar 26 17:03:48 2018 +0300
@@ -507,4 +507,10 @@
 	#pageUpNaviButton {
 		right: 4em;
 	}
+
+	#infoBox {
+		background: black;
+		display: none;
+		opacity: 1;
+	}
 }
--- a/mgallery.js	Mon Mar 26 17:03:09 2018 +0300
+++ b/mgallery.js	Mon Mar 26 17:03:48 2018 +0300
@@ -158,6 +158,10 @@
   var mviinfo = document.getElementById("infoBox");
 
   mvinfo.style.display  =  mvstate ? "block" : "none";
+
+  if (window.getComputedStyle(mviinfo).opacity == 1)
+    mviinfo.style.display = mvstate ? "block" : "none";
+
   mvbut.style.display   = !mvstate ? "block" : "none";
   mvnbut.style.display  = !mvstate ? "block" : "none";
   mvInfoOpen = mvstate;