I'm using introjs.
But when a user ends the intro, then refreshes the page, introjs starts up again.
Is there a way to only show a walkthrough once per user?
For example I have it where when a user first signs into my website - introjs will popup. I only want it to pop up for that initial welcome.
Potential Solutions
- Maybe there is a way to trigger introjs via the create action like one would with a flash message?
- I could replicate all my header, sidebar, and challenges section code into pages/tutorial.html.erb and make a route www.websitename.com/tutorial, but then that would be a lot of code to duplicate and then whenever I change something in the site I would have to change it in tutorial too.
- Is there a way to adjust this javascript method in application.js to trigger only once per user
$(function () { introJs().start() })
?
I just use data-intro=""
for each step of the walkthrough.