| OLD | NEW |
| 1 /* Copyright (c) 2010 | 1 /* Copyright (c) 2010 |
| 2 * @author Laurence Wheway | 2 * @author Laurence Wheway |
| 3 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.p
hp) | 3 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.p
hp) |
| 4 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. | 4 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. |
| 5 * | 5 * |
| 6 * @version 1.2.0 | 6 * @version 1.2.0 |
| 7 */ | 7 */ |
| 8 (function($) { | 8 (function($) { |
| 9 jQuery.extend({ | 9 jQuery.extend({ |
| 10 isOnScreen: function(box, container) { | 10 isOnScreen: function(box, container) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 if( $(this).offset().left+$(this).width()-container.left > 0
&& | 46 if( $(this).offset().left+$(this).width()-container.left > 0
&& |
| 47 $(this).offset().left < container.width+container.left &
& | 47 $(this).offset().left < container.width+container.left &
& |
| 48 $(this).offset().top+$(this).height()-container.top > 0
&& | 48 $(this).offset().top+$(this).height()-container.top > 0
&& |
| 49 $(this).offset().top < container.height+container.top | 49 $(this).offset().top < container.height+container.top |
| 50 ) return true; | 50 ) return true; |
| 51 return false; | 51 return false; |
| 52 } | 52 } |
| 53 })(jQuery); | 53 })(jQuery); |
| OLD | NEW |