Skip to content

Instantly share code, notes, and snippets.

<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));
@Ariestattoo
Ariestattoo / facebook.js
Created January 7, 2014 21:23
Facebook get login status
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) {
@Ariestattoo
Ariestattoo / 0_reuse_code.js
Created January 7, 2014 21:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console