Skip to content

Instantly share code, notes, and snippets.

@d0n601
Last active April 21, 2016 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d0n601/dd393b7a72cd4ef5b645 to your computer and use it in GitHub Desktop.
Save d0n601/dd393b7a72cd4ef5b645 to your computer and use it in GitHub Desktop.
Initialize Drinking Age Gateway
$(function() {
//Settings for drinkingAge Plugin
var settings = {
"image" : 'http://placehold.it/350x150',
"message" : "As part of our commitment to responsible drinking, we just need to check that you're of legal drinking age.",
"redirect" : 'http://responsibility.org',
"deny_message" : "Sorry, but you are not of legal drinking age.<br>You'll be redirected soon...",
"deny_timeout": 5000,
"link_terms" : '/terms',
"link_privacy" : '/privacy'
};
//Initiate bouncer.js (drinkingAge)
drinkingAge(settings);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment