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
@mixin clearfix { | |
&:after { | |
clear:both; | |
content:""; | |
display:table; | |
} | |
} |
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 debounce | |
@param {function} func the function to be debounced | |
@param {int} wait the time to wait after event has stopped firing | |
@param {boolean} immediate whether to run the function immediately or wait for the timeout | |
*/ | |
module.exports = function(func, wait, immediate) { | |
// create var to store the timeout in | |
var timeout; | |
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
// Uses CommonJS, AMD or browser globals to create a jQuery plugin. | |
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define(['jquery'], factory); | |
} else if (typeof exports === 'object') { | |
// Node/CommonJS | |
factory(require('jquery')); | |
} else { |
NewerOlder