REMINDER
Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.
SOLVED Pre-home functionality before entering the site
-
We need to redo a site in the area of alcohol, which involves displaying a prevention message before entering the site (example here: https://www.associationdesbarmendefrance.fr), is this possible with AppDrag, if so how?
![alt text]( image url)
-
@mj-lamouret you can do that in Javascript, I recommend checking a localstorage or cookie to check if was already accepted or not by a visitor, if not you redirect to the "blocker" page asking user confirmation
You can place this block of script in the footer of your site so it will be applied to ALL pages
<script> if ( localStorage.getItem("TermsAccepted") != "yes"){ window.location.href = '/confirm.html' } </script>
Then on the confirm.html page on your accept button you can place this javascript action:
localStorage.setItem("TermsAccepted", "yes");
-
@joseph-benguira Great, I will try !