Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: tools/telemetry/third_party/coverage/doc/sample_html/jquery.isonscreen.js

Issue 1366913004: Add coverage Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698