Website Age Verification Plugin with jQuery

File Size: 12.5 KB
Views Total: 34584
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Website Age Verification Plugin with jQuery

A lightweight jQuery plugin that displays a cookie based age verification popup for your visitors to confirm their age before viewing the content of your website.

How to use it:

1. Load the Age Verification CSS for basic popup styles.

<link href="css/age-verification.css" rel="stylesheet">

2. Load jQuery Javascript library and the jQuery cookie plugin.

<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>

3. Load the jQuery Age Verification plugin after loading jQuery library.

<script src="js/age-verification.js"></script>

4. That's it. Edit the age-verification.js script to create your own verification messages.

Changelog:

2018-09-18

  • Fixed missing symbol

2016-05-19

  • Update age-verification.js

2015-03-12

  • The av_positionPrompt function doesn't get attached to the window's resize event unless it's needed.

This awesome jQuery plugin is developed by stevemeisner. For more Advanced Usages, please check the demo page or visit the official website.