Cookie Consent - Modal wrapper but just on the first load possible?

Thank you !!

I’ve changed it to that script but now it loads an empty page when I export it. I’ve deleted all cookies in my web browser to be sure it wasn’t accepted already.

Once this error is solved, how do I activate the cookie ? I mean, how do I assign that function to the orange button ?

Thank you again for taking the time to write that script and for helping me!!