Giter VIP home page Giter VIP logo

jqverify's Introduction

jqverify

An age verification tool (or age gate) using HTML, CSS, and jQuery/JavaScript. Live Demo

This age verification system is set up for Legal Drinking Age, has a 'Remember Me' JS cookie option, and works in a modal window. It could easily be adapted for other uses.

I wrote / pieced this together because I could not find a solution that was frontend-only, and had all of the HTML, countries/drinking ages, set cookies, and had a 'remember me' checkbox.

Basic Use

Add the content in modal.html and modal.css to all entry points of your site. Upload jqverify.js, and include it in your header or footer, depending on your preference (I call it in the footer): <script src="./jqverify.js"></script>

Then wrap your sensitive content in a div like so: <div id="content" class="content"></div>

If you already have a content wrapper, just update content = "#content"; as needed in jqverify.js.

If you want to test it repeatedly, there's a commented out function call at the top of jqverify.js \\ eraseCookie('jqverify');

License and Credits

© 2013 Komejo. Created by Joe Komenda.

Credit to Cats Who Code for the 'Validate a date of birth using jQuery' section.

jqverify.js is released under the MIT license.

jqverify's People

Contributors

komejo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.