X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/651d9f8d7a700bfbc9d2c10a2f79eed9af8d62e4..39b57edfe705be3f21a2bc5670d4c0e3e68c2d17:/foto/album.inc.php 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();