This file contains hidden or 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
(function(window){ | |
window.performance = window.performance || {}; | |
performance.now = performance.now || function(){ | |
return +new Date(); | |
}; | |
function AccurateInterval(options){ | |
this.startTime = 0; | |
this.elapsed = 0; | |
this.timeout = 0; |
This file contains hidden or 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
/** | |
* Prefilter for caching ajax calls - adapted from | |
* https://github.com/paulirish/jquery-ajax-localstorage-cache, made to work with jqXHR Deferred Promises. | |
* See also $.ajaxTransport. | |
* New parameters available on the ajax call: | |
* localCache : true, // required if we want to use the cache functionality | |
* cacheTTL : 1, // in hours. Optional | |
* cacheKey : 'post', // optional | |
* isCacheValid : function // optional - return true for valid, false for invalid | |
* @method $.ajaxPrefilter |
This file contains hidden or 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
/** | |
* This function performs the fetch from cache portion of the functionality needed to cache ajax | |
* calls and still fulfill the jqXHR Deferred Promise interface. | |
* See also $.ajaxPrefilter | |
* @method $.ajaxTransport | |
* @params options {Object} Options for the ajax call, modified with ajax standard settings | |
*/ | |
$.ajaxTransport("json", function(options){ | |
if (options.localCache) | |
{ |
This file contains hidden or 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 | |
#set defaults | |
ini=build.ini | |
csspath=../static/css/ | |
jspath=../static/js/ | |
jsout=../static/js/compiled.js | |
cssout=../static/css/compiled.css | |
js= | |
css= |
This file contains hidden or 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
@ECHO OFF | |
@setlocal enableextensions enabledelayedexpansion | |
IF "%1"=="--help" GOTO Usage | |
IF "%1"=="/?" GOTO Usage | |
REM set defaults | |
set ini=build.ini | |
set csspath=../static/css/ | |
set jspath=../static/js/ | |
set jsout=../static/js/compiled.js |
This file contains hidden or 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
/** | |
* jQuery plugin for transparent submission of a form using an $.ajax-like interface. | |
* Usage Examples: | |
* $.transparentSubmit({dataType:'json', form:$('#myForm')}) | |
* $('#myForm').transparentSubmit({dataType:'html'}) | |
* Supports Deferred (.done, .fail, .when, etc.) | |
*/ | |
(function($){ | |
$.transparentSubmit = function(options){ | |
var defer = $.Deferred(), // Deferred object whose promise we will hook into when adding .done, etc to calls |
NewerOlder