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
/* | |
* Skeleton V1.1 | |
* Copyright 2011, Dave Gamache | |
* www.getskeleton.com | |
* Free to use under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* 8/17/2011 | |
*/ | |
/* Table of Content |
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
window.log = window.log || function(message){ | |
if (window.console && window.console.log){ | |
window.console.log(message); | |
} | |
}; |
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
/** | |
* Basic debug AMD module | |
* usage: debug.log('inside coolFunc',this,arguments); | |
*/ | |
/*jslint browser: true, vars: true, white: true, forin: true */ | |
/*global define, require */ | |
(function(){ | |
'use strict'; | |
var debug = { |
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
/** | |
* Move in a circle without wrapper elements | |
* Idea by Aryeh Gregor, simplified by Lea Verou | |
*/ | |
@keyframes rot { | |
from { | |
transform: rotate(0deg) | |
translate(-150px) | |
rotate(0deg); |
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
settings = $.extend({}, DEFAULTS, o || {}); |
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
// usage: log('inside coolFunc', this, arguments); | |
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ | |
window.log = function(){ | |
log.history = log.history || []; // store logs to an array for reference | |
log.history.push(arguments); | |
if(this.console) { | |
arguments.callee = arguments.callee.caller; | |
console.log( Array.prototype.slice.call(arguments) ); | |
} | |
}; |
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
.loading { | |
background: url(/images/rfulive/loading.gif) no-repeat center center; | |
width: 100%; | |
height: 100%; | |
z-index: 20; | |
position: absolute; | |
text-indent: -999em; | |
overflow: hidden; | |
top: 0; | |
left: 0; |
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
formatDate = function( timestamp ){ | |
/* | |
Could be either date type : /Date(1397397600000)/ | |
Or : 2014-03-18T20:45:00 | |
*/ | |
var newDate = timestamp.indexOf('T') > -1 ? timestamp : parseInt(timestamp.split('(')[1]) | |
, d = new Date(newDate) | |
, time | |
, minutes = (d.getMinutes() === 0) ? '00' : d.getMinutes() | |
; |
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
/*jshint laxcomma : true */ | |
var BaseModuleConstructor | |
, NewClass = require('./newclass') | |
, _newClassInstance | |
, $ = $ || window.jQuery | |
; |
OlderNewer