Adam_Li
asked on
Anyone familiar with PhotoSwipe?
Hi
I have downloaded PhotoSwipe and try to have it run as i want on our website. Im almost done but I have an issue. The JS-application runs in page load but i want it to run on btn click. I have a button that starts the JS but thats only possible after the JS has been closed.
http://photoswipe.com/documentation/getting-started.html
Go to line "At the end you should get something like this:" and try the solution open Source from "@dimsemenov".
You see that the application start by showing images. If you click "close" (X) in upper right corner you se a button named "OpenPhotoSwipe". Thats how i want it; just a button running JS.
I have downloaded PhotoSwipe and try to have it run as i want on our website. Im almost done but I have an issue. The JS-application runs in page load but i want it to run on btn click. I have a button that starts the JS but thats only possible after the JS has been closed.
http://photoswipe.com/documentation/getting-started.html
Go to line "At the end you should get something like this:" and try the solution open Source from "@dimsemenov".
You see that the application start by showing images. If you click "close" (X) in upper right corner you se a button named "OpenPhotoSwipe". Thats how i want it; just a button running JS.
ASKER
Yes. What do you mean? I have doe this Solution on my website but i want it to load by clicking button. Not at start.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://codepen.io/dimsemenov/pen/gbadPv