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
/** | |
* T*****: Racing For Awareness Contest and Sweepstakes. | |
* @author Joe Johnson (joe.johnson@icrossing.com) | |
* @requires jQuery | |
* @namespace | |
*/ | |
var R4A = { | |
hasContestEnded: true, | |
Shirts: {}, places: [], | |
sweepstakes: "forms.html", |
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
/** | |
* @namespace | |
* TCR (<masked>) is a global namespace object containing | |
* the methods and properties used throughout this application. | |
* @requires jQuery-1.8.2 and Portfolio.JS (and its dependencies). | |
*/ | |
var TCR = { | |
Data: { Images: $() }, | |
Images: { Slideshow: [], Gallery: [] }, | |
initSlideshow: function(){ |
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
/** | |
* SLP.Modules.Codes extends the SLP.Modules object on DOM-ready. | |
* @module Codes | |
*/ | |
SLP.Modules.Codes = { | |
/** | |
* First validate for empty fields, then check the campaign codes, | |
* making sure that they begin with T(masked), L(masked), or S(masked). | |
* @param {object} event jQuery Event object (form submit) | |
* @return {boolean} true if all validation passes. |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
min: { | |
plugins: { | |
src: ["vendor/jquery.isotope.min.js","vendor/plugins.js","vendor/modal.js","vendor/jqpp.js"], | |
dest: "dist/plugins.min.js", | |
separator: ';' | |
}, | |
app: { |
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
/** | |
* Retina image update script. Invoke with Retina.render(). | |
* Retina.render() may be passed a selector for img selection. | |
* The default filter looks for imgs with data-scale="retina". | |
* @param {string|function} expr A CSS selector expression or jQuery filter function. | |
* @return {boolean|collection} Returns false or (for Retina displays) the images updated. | |
* @author Joe Johnson (joe.johnson@icrossing.com) | |
*/ | |
(function(ns,$){ | |
ns.Retina = { |
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
if (![].unique) { | |
Array.prototype.unique = function() { | |
var n = {}, r = [], i = 0, l = this.length; | |
for (; i < l; i++) { | |
if (this[i] && !n[this[i]]) { | |
n[this[i]] = true; | |
r.push(this[i]); | |
} | |
} | |
return r; |
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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
MS = Sharecize = { | |
d3: d3, | |
DOM: { | |
$view: $('#MS-container'), | |
$content: $('section#content'), | |
$console: $('aside#console > div') | |
}, | |
Writer: function (DOM) { | |
if (!DOM) DOM = Sharecize.DOM.$content; | |
if (!DOM.jquery) DOM = $(DOM); |
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
<form> | |
<input name="username" placeholder="username" /> | |
<input name="password" type="password" placeholder="password" /> | |
</form> |