Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 757 Bytes

readme.markdown

File metadata and controls

21 lines (17 loc) · 757 Bytes

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.