vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.75k stars 769 forks source link

When using auto open, do not auto open again after user closes once #232

Closed preddz closed 8 years ago

preddz commented 8 years ago

Hi.

I have the modal set to open automatically.

But is there a way in the settings not to auto open again, once the user has closed the window the first time?

I am very javascript challenged so a code example would be great. Thanks!

preddz commented 8 years ago

Ok, think I've solved it with help from this stack thread:

http://stackoverflow.com/questions/30059370/set-cookie-in-mod-remodal-when-the-window-closes-and-reappears-anymore

And js-cookie:

https://github.com/js-cookie/js-cookie