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
JavaScript
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
jquery.agegate.js
jquery.agegate.min.js
package.json
readme.markdown

readme.markdown

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.