Auto pop-up script / cookie notification

Hi, do we have a script within Foundation that let’s us add those auto pop-ups to comply with EU’s GDPR Law?

Would appreciate any help. I tried using javascripts from other websites but I prefer using scripts designed for a Foundation site.

Thank you very much.

No, this is not part of any frontend framework, even Bootstrap as this is not in the scope of it.

You can use any solution and style it as needed or use our Reveal component for this or use some custom code: https://get.foundation/sites/docs/reveal.html

Thank you, Daniel! I appreciate your quick reply. I want to try Reveal but don’t know how to auto-load the Modal. Any tips? Thank you.

See the JS methods at the bottom to trigger a modal.

hey there worldrom, any updates since your last post? i’m wondering the exact same thing and wondering what you’ve done so far? thanks
i’m still learning, i am a beginner so thanks for all the help, both of you Daniel and worldrom.
would appreciate anything new. thanks

Still not successful. Will let you know. If in case you find a solution, let me know too :slight_smile:

Hi Daniel, I’m still not successful in adding the Reveal to automatically pop-up when loading the page, (then just click close to close the modal). Any other tips on how can I automatically display the (Cookie notification) pop-up in homepage? Thank you.

setTimeout, jQuery.ready and programmatically initializing and opening it should work. What exactly did you try so far?

I can only set it if there’s a hyperlink to trigger it. The default setting. Have limited programming knowledge, not sure how to do it in Javascript within Foundation. When you have time, hope you can help. Thanks a lot.

1 Like

See the following example: