Skip to content

Simple age verification, 'age gate', plugin required by some content providers for mature content. Supports cookies when used with jquery-cookie: https://github.com/carhartl/jquery-cookie

Notifications You must be signed in to change notification settings

MatthewCallis/jquery-age-gate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Age Gate Plugin

Simple age verification, 'age gate', plugin required by some content providers for mature content. Supports cookies when used with jquery-cookie. Original code concept from CatsWhoCode.com.

Useage

$('#age-restricted').agegate({
  age: 21,
  legal: function(){
    $('#age-restricted').empty().append('<iframe src="..."></iframe>');
  },
  underage: function(){
    alert("Sorry, you must be at least " + this.age + " years old in order to continue.");
    $('#age-restricted').empty();
  }
});

License

Released under the GPLv2 license.

About

Simple age verification, 'age gate', plugin required by some content providers for mature content. Supports cookies when used with jquery-cookie: https://github.com/carhartl/jquery-cookie

Resources

Stars

Watchers

Forks

Packages

No packages published