Instantly share code, notes, and snippets.

What would you like to do?
JavaScript Alcohol Age Gateway Example
<meta charset="utf-8">
<meta http-equiv="Content-Type" context="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Drinks N' Alcohol</title>
<link href="" rel="stylesheet">
<link href="..//bouncer.css" rel="stylesheet">
body {
background-image: url('img/drankin.jpg');
background-size: cover;
<h1>Alcoholic Material</h1>
<p>Restricted stuff involving drinking within...</p>
<script src=""></script>
<script src=""></script>
<script src="../bouncer.js"></script>
$(function() {
//Settings for Bounder.js Plugin
var settings = {
"image" : '',
"message" : "As part of our commitment to responsible drinking, we just need to check that you're of legal drinking age.",
"redirect" : '',
"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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment