X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/a1bb8561064d0985ecb6c65054bf352f667bc9b7..0d9f10ddb4e7f4788b329f4b4cd6df4a5c6da3ad:/foto/album.inc.php?ds=sidebyside diff --git a/foto/album.inc.php b/foto/album.inc.php index c3f3464..a0a6c70 100644 --- a/foto/album.inc.php +++ b/foto/album.inc.php @@ -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();