Mercurial > hg > mgallery
changeset 74:f2ba5a9f0aa8
Remove large image zoom.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 14 Sep 2016 17:33:14 +0300 |
parents | 5e98fe999fac |
children | 441d5338960e |
files | basic.css mgallery.php |
diffstat | 2 files changed, 0 insertions(+), 68 deletions(-) [+] |
line wrap: on
line diff
--- a/basic.css Wed Sep 14 17:31:49 2016 +0300 +++ b/basic.css Wed Sep 14 17:33:14 2016 +0300 @@ -214,33 +214,6 @@ } -#imageLarge { - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - z-index: 20; - display: none; - margin: 1em; -} - -#imageLarge img { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - width: auto; - height: auto; - max-width: 100%; - max-height: 100%; - margin-left: auto; - margin-right: auto; - border: 4px solid white; -} - - #languages { position: absolute; right: 1.5em;
--- a/mgallery.php Wed Sep 14 17:31:49 2016 +0300 +++ b/mgallery.php Wed Sep 14 17:33:14 2016 +0300 @@ -542,9 +542,6 @@ mgPrintPageHeader($pageTitle); echo mgGetLanguageSelector(). - "<div id=\"imageLarge\"><img src=\"". - $galImageURL.$galPath."/".$galImage."\" alt=\"". - chentities($data["base"].$galMedSuffix.$data["ext"])."\" /></div>\n". "<h1>".chentities($pageTitle)."</h1>\n"; if ($naviFlags & GNAV_BREADCRUMBS) @@ -583,32 +580,6 @@ "var mgalExpanded = false;\n". "\n"; ?> -function mgalExpandClose(force) -{ - mgalExpanded = !mgalExpanded; - if (!force) - mgalExpanded = false; - - var mlink = document.getElementById("imageLink"); - var mlarge = document.getElementById("imageLarge"); - if (mlink && mlarge) - { - mlink.style.visibility = mgalExpanded ? "hidden" : "visible"; - mlarge.style.display = mgalExpanded ? "block" : "none"; - } - return false; -} - - -function mgalMouseExpandClose(event, force) -{ - if (!event.ctrlKey) - return mgalExpandClose(force); - else - return true; -} - - function mgalNavigateTo(url) { if (url != "") @@ -636,15 +607,6 @@ mgalNavigateTo(mgalNextURL); break; - case 13: - case 48: - mgalExpandClose(true); - break; - - case 27: - mgalExpandClose(false); - break; - default: return true; } @@ -653,9 +615,6 @@ return false; } - -document.getElementById("imageLarge").onclick = function(event) { return mgalMouseExpandClose(event, false); } -document.getElementById("imageLink").onclick = function(event) { return mgalMouseExpandClose(event, true); } document.onkeypress = mgalProcessKeyPress; <?