Link to home
Start Free TrialLog in
Avatar of Adam_Li
Adam_LiFlag for Norway

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.
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Did you look at the code on codepen?
http://codepen.io/dimsemenov/pen/gbadPv
Avatar of Adam_Li

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
Avatar of Leonidas Dosas
Leonidas Dosas
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial