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 Collision Detection - v1.0 - 1/7/2014 | |
| * http://www.hnldesign.nl/work/code/collision-prevention-using-jquery/ | |
| * | |
| * Copyright (c) 2014 HN Leussink | |
| * Dual licensed under the MIT and GPL licenses. | |
| * | |
| * Example: http://code.hnldesign.nl/demo/hnl.collision.detection.html | |
| */ |
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 inertial Scroller v1.5 | |
| * (c)2013 hnldesign.nl | |
| * This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/. | |
| * | |
| * More information: http://www.hnldesign.nl/work/code/momentum-scrolling-using-jquery/ | |
| */ | |
| /*jslint browser: true*/ | |
| /*global $, jQuery*/ |
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
| //count elements, return jQuery object if more than specified, else return empty object to 'stop' chaining | |
| // usage: $('myElement').atLeast(2).fadeOut(); fadeOut will only execute on elements when 2 or more have been found | |
| (function ($) { | |
| "use strict"; | |
| $.fn.atLeast = function (count) { | |
| if (this.length >= count) { | |
| //return the objects | |
| return this; | |
| } else { | |
| //return empty jquery object to 'break' the chain |
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 valBetween($val, $min, $max) { | |
| return (Math.min($max, Math.max($min, $val))); | |
| } |
NewerOlder