Mercurial > hg > mgallery
diff mgallery.js @ 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 | 548a349bc015 |
line wrap: on
line diff
--- 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;