This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function () { | |
if (!document.cookie.match('(^|;) ?' + 'adult' + '=([^;]*)(;|$)')) { | |
var adult=confirm("This site is adult in nature. By clicking OK you agree that you are over 19 years of age"); | |
console.log(adult); | |
if (adult == true) | |
{ | |
var expires = new Date(); | |
expires.setTime(expires.getTime() + (1 * 24 * 60 * 60 * 1000)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FB.getLoginStatus(function (response) { | |
console.log(response); | |
if (response.status === 'connected') { | |
// updatePermissions(); | |
// the user is logged in and has authenticated your | |
// app, and response.authResponse supplies | |
// the user's ID, a valid access token, a signed | |
// request, and the time the access token | |
// and signed request each expire | |
FB.login(function (response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |