You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I would like to use the same button to go back where I was before I clicked it.
I click the button -> I go to a certain slide -> I click it again and I go back to the section/slide previously opened.
Is that even possible ?
If not, I would consider an option such as:
I click the button -> I go to a certain slide -> I click it again and I go to an other slide.
I click the button -> I go to a certain slide -> I click it again and I go back to the section/slide previously opened.
Is that even possible ?
Many things are possible with the right knowledge ;)
All you have to do is record what was the active section index when you click the button, save it into a variable, and then use that value whenever you click on the button again.
For general JavaScript queries, you might want to consider asking in other places such as https://stackoverflow.com/ where they'll be able to help you much better.
Hello,
First of all thank you very much for fullpage.js.
It's been a blast so far.
I can't find a solution to my problem, and that's because I'm a beginner at writing in javascript.
Anyway.
I created an onclick function to create a button on my page. And it works great.
However, I would like to use the same button to go back where I was before I clicked it.
I click the button -> I go to a certain slide -> I click it again and I go back to the section/slide previously opened.
Is that even possible ?
If not, I would consider an option such as:
I click the button -> I go to a certain slide -> I click it again and I go to an other slide.
I tried this
I only get the 'else' condition to work. I'm pretty sure that I wrote that wrong.
Help would be appreciated.
Many thanks .
Olivier
The text was updated successfully, but these errors were encountered: