included in netdata.js
Costa Tsaousis (ktsaou) committed
Apr 25, 2014 at 01:10 UTC
d566b0cabbdf6d36363d6af78e8362f57e36d998
1 file changed
-27
web/jquery.visible.js
deleted
-27
@@ -1,27 +0,0 @@
1
-(function($){
2
-
3
- /**
4
- * Copyright 2012, Digital Fusion
5
- * Licensed under the MIT license.
6
- * http://teamdf.com/jquery-plugins/license/
7
- *
8
- * @author Sam Sehnert
9
- * @desc A small plugin that checks whether elements are within
10
- * the user visible viewport of a web browser.
11
- * only accounts for vertical position, not horizontal.
12
- */
13
- $.fn.visible = function(partial){
14
-
15
- var $t = $(this),
16
- $w = $(window),
17
- viewTop = $w.scrollTop(),
18
- viewBottom = viewTop + $w.height(),
19
- _top = $t.offset().top,
20
- _bottom = _top + $t.height(),
21
- compareTop = partial === true ? _bottom : _top,
22
- compareBottom = partial === true ? _top : _bottom;
23
-
24
- return ((compareBottom <= viewBottom) && (compareTop >= viewTop));
25
- };
26
-
27
-})(jQuery);
\ No newline at end of file