OLD | NEW |
1 // Coverage.py HTML report browser code. | 1 // Coverage.py HTML report browser code. |
2 /*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, in
dent: 4 */ | 2 /*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, in
dent: 4 */ |
3 /*global coverage: true, document, window, $ */ | 3 /*global coverage: true, document, window, $ */ |
4 | 4 |
5 coverage = {}; | 5 coverage = {}; |
6 | 6 |
7 // Find all the elements with shortkey_* class, and use them to assign a shotrtc
ut key. | 7 // Find all the elements with shortkey_* class, and use them to assign a shotrtc
ut key. |
8 coverage.assign_shortkeys = function () { | 8 coverage.assign_shortkeys = function () { |
9 $("*[class*='shortkey_']").each(function (i, e) { | 9 $("*[class*='shortkey_']").each(function (i, e) { |
10 $.each($(e).attr("class").split(" "), function (i, c) { | 10 $.each($(e).attr("class").split(" "), function (i, c) { |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 } | 367 } |
368 }; | 368 }; |
369 | 369 |
370 coverage.scroll_window = function (to_pos) { | 370 coverage.scroll_window = function (to_pos) { |
371 $("html,body").animate({scrollTop: to_pos}, 200); | 371 $("html,body").animate({scrollTop: to_pos}, 200); |
372 }; | 372 }; |
373 | 373 |
374 coverage.finish_scrolling = function () { | 374 coverage.finish_scrolling = function () { |
375 $("html,body").stop(true, true); | 375 $("html,body").stop(true, true); |
376 }; | 376 }; |
OLD | NEW |