X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/bad405058add16983241e38c338589575123e5a5..943688a66694cc3d97188c7b789207aa3ee8bfc2:/foto/album.inc.php diff --git a/foto/album.inc.php b/foto/album.inc.php index e961196..a0a6c70 100644 --- a/foto/album.inc.php +++ b/foto/album.inc.php @@ -26,7 +26,7 @@ function openphotoswipe(index) { @@ -104,6 +104,11 @@ function imgjustify() { } }; +if (request = window.location.hash.match(/pid=(.*)/)) { + index = images.findIndex(row => row.src == request[1]); + openphotoswipe(index); +} + window.addEventListener('resize', imgjustify, false); imgjustify();