usablica / intro.js

Lightweight, user-friendly onboarding tour library
http://introjs.com
Other
22.8k stars 2.59k forks source link

Implement cookies #413

Closed alexandernst closed 3 years ago

alexandernst commented 9 years ago

It would be useful if Introjs could run only once (based on cookies).

alexlouden commented 9 years ago

I'm using local storage at the moment - show_intro() is called on page load.

function show_intro() {
    if localStorage.getItem('intro_shown') {
        // already shown
        return
    }
    localStorage.setItem('intro_shown', true)
    intro = introJs()
    intro.setOptions([ ... ])
    intro.start()
}
isdaft commented 8 years ago

https://github.com/isdaft/introjs-dropcookie-onhint

hajimurtaza commented 5 years ago

https://github.com/isdaft/introjs-dropcookie-onhint

Can you verify this @afshinm @bozdoz ?

bozdoz commented 5 years ago

Fan of localStorage, not of cookies. I kind of think this is an implementation detail, and not something that should be built into the library.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.