Skip to content

Instantly share code, notes, and snippets.

<head>
<link rel="stylesheet" type="text/css" href="assets/css/jquery.jscrollpane.css" />
<link rel="stylesheet" type="text/css" href="assets/css/leaderboards.css" />
<script type="text/javascript" src="assets/js/jscrollpane/jquery.mousewheel.js"></script>
<script type="text/javascript" src="assets/js/jscrollpane/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="assets/js/leaderboards.js"></script>
</head>
{
"world":{
"me":{
"rank":2,
"fb_user_id":"fb_user_id",
"first_name":"First Name",
"last_name":"Last Name",
"points":1234
},
"entries":[
<?php
/**
* $Id$
*
* Copyright (c) 2011, Donovan Schönknecht. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.min.js"></script>
<script type="text/javascript" src="js/additional-methods.min.js"></script>
</head>
<body>
<form>
<script>
if (typeof console === "undefined"){
console={};
console.log = function(){
return;
}
}
</script>
if (typeof console === "undefined"){
console = {};
console.log = function(){
return;
}
}
Tracking = {
logAction : function(category, action, label)
{
-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// start of your application:didFinishLaunchingWithOptions // ...
[TestFlight takeOff:@"43d0f4c7-bda6-4885-8f21-e6d1067279b9"];
// The rest of your application:didFinishLaunchingWithOptions method// ...
}
$(document).ready(function(){
$('#sprite').css({backgroundPosition: 'center 0px'});
$('#home').click(function(evt){
var spriteVelocity = 500;
var mouseX = evt.pageX;
var spritePosition = $('#sprite').position();
// What is the total distance our sprite has to travel?
var absoluteDistance = Math.abs(mouseX - spritePosition.left);
<object id="cnhomesplash_fo" width="1150px" height="1100px" type="application/x-shockwave-flash" name="cnhomesplash_fo" data="/_/home/media/takeovers/CN_HALL_OF_GAME_TAEKOVER_1150x1100_V1_VOTE.swf">
<param name="allowScriptAccess" value="always">
<param name="allowFullScreen" value="false">
<param name="scale" value="noscale">
<param name="wmode" value="transparent">
<!-- ^^^Change value from "transparent" to "opaque" -->
</object>
<!-- Bind event listener after call to App.init() (line #627 of index.html) -->
<script>
$content = $('.content');
$dialogStart = $('.dialog.start');
$dialogCreateANewCrew = $('.dialog.create-a-new-crew');
$dialogPickYourCrew = $('.dialog.pick-your-crew');
$dialogPickFriend = $('.dialog.pick-friend');
$dialogMeetYourCrew = $('.dialog.meet-your-crew');