criteriaOptions = [
{
key: "startDate",
type: "date",
name: "Start Date",
beforeLabel: "Show me between ",
default: moment( new Date ).subtract( 1, "year" ).toDate(),
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
AA | |
AAPL | |
ABC | |
ACN | |
ADBE | |
ADP | |
ADSK | |
AET | |
AGN | |
AKAM |
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
var consoleLogSpy = function() { | |
return { | |
start: _start, | |
stop: _stop | |
}; | |
function _start( callback ) { |
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
/** | |
* @author Ray Peters <[email protected]> | |
* If this helped you out, please let me know! Happy coding. | |
*/ | |
/** | |
* handleObj | |
* | |
* type: String: The type of event, such as "click". When special event mapping | |
* is used via bindType or delegateType, this will be the mapped type. |
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
/** | |
* A dynamic throttling function. | |
* -> See a demo @ https://jsfiddle.net/raypeters/nkk71qjk/ | |
* | |
* @method throttleUntil | |
* @_condition {Function} the function that determines if the next call is locked | |
* @_options {Object} a namespace for instance options | |
* @_options.onLeading {Function} ran continuously until locked | |
* @_options.onTrailing {Function} ran once upon unlock | |
* @_options.onThrottle {Function} ran if locked |
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
/** | |
* Overlays iframes to prevent capturing mousewheels while | |
* scrolling down a long page. Click to destroy. | |
* | |
* @author Ray Peters <[email protected]> | |
*/ | |
;( function(){ | |
$(function(){ | |
$( "iframe" ).each( function(){ | |
addOverlay( $( this ) ); |
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 separateInvalids() { | |
var skipErrors = [ "maxFiles" ]; | |
valids = []; | |
invalids = []; | |
angular.forEach(allNewFiles, function (file) { | |
if (file.$error) { | |
if ( skipErrors.indexOf( file.$error ) !== -1 ) return; | |
invalids.push(file); |
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
$( document ).ready( | |
function() { | |
//$('*[opt-id="74478fdc-1885-0eba-36ab-4387fd0c15bb"]').hide(); | |
//$("a[href='http://ontraport.com/fakelink']").attr('href', 'javascript:show_chapters()'); | |
var navIsOn = false; | |
$( document.body ).on( "click", "a[href='http://ontraport.com/fakelink']", function( ev ){ | |
if ( navIsOn ) { | |
hide_chapters(); | |
navIsOn = false; |
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
var queueJob = function(){ | |
var total = 0; | |
return function( count ) { | |
count || ( count = 1 ); | |
for ( var i = 0; i < count; ++i ) { | |
setTimeout( function(){ | |
++total; | |
console.log( "job: ", total ); |
NewerOlder