age verify, help its taken me forever to figure this much out |
age verify, help its taken me forever to figure this much out |
trizkit995 |
Feb 4 2016, 02:52 PM
Post
#1
|
Group: Members Posts: 2 Joined: 4-February 16 Member No.: 23,958 |
i have spent way too much time trying to get this code to work. i dont think i even qualify as an amature coder. its an age verification script for a e-vape web store, hosted on godaddy.com
issues i am having is how do i make this a pop up? how do i point it at my website if the click over 19? and how do i redirect to another site ie google if clicked under 19? i don't understand how to implement a timed cookie so it doesn't A) cause a continual loading of the site and B) doesn't pop up every time some one visits my site. i appreciate in advance any help you can give me the code i have come up with is below <div id="age-modal-overlay" class="age-modal__overlay active-modal"></div> <form id="age-verify" class="modal age-modal active-modal" method="get" action="" novalidate="novalidate"> <div class="background-inner"> <div class="white-background"> <p>AGE VERIFICATION</p> <h5 class"age-modal__text"="">ARE YOU OF LEGAL SMOKING AGE?</h5> <div class="age-verify-box"> <div class="left-box-container"> <div class="age-verify-button age-modal__btn btn btn-primary" data-age="18">Yes</div> <div class="age">I am of legal smoking age</div> </div> <!-- <p class="not-legal">I am of legal smoking age.</p> --> <div class="right-box-container"> <div class="age-verify-button age-modal__btn btn btn-default" data-age="17">No</div> <div class="age">I am NOT of legal smoking age</div> </div> </div> </div> </div> <!-- <p class="legal">I am NOT legal smoking age.</p> --> <div class="white-product-section"> <h6>The products on this website are intended for adults only.</h6> <p id="entering">By entering this website, you certify that you are of legal smoking age in the province in which you reside</p> </div> </form> |
trizkit995 |
Feb 4 2016, 05:11 PM
Post
#2
|
Group: Members Posts: 2 Joined: 4-February 16 Member No.: 23,958 |
to clarify i have come up with this code by looking at other web site age verification code. i dont even know if this is close to right
|
Darin McGrew |
Feb 5 2016, 02:05 AM
Post
#3
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Please see the FAQ entry How do I use forms?
|
Lo-Fi Version | Time is now: 25th April 2024 - 11:21 PM |