mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
added url sharing support
This commit is contained in:
@@ -152,6 +152,10 @@
|
||||
var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options);
|
||||
gallery.init();
|
||||
}
|
||||
if (window.location.href.indexOf("pid=") > -1) {
|
||||
var pid = window.location.href.split('pid=')[1].split('#')[0];
|
||||
openSwipe(parseInt(pid));
|
||||
}
|
||||
</script>
|
||||
{%- endif %}
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user