diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-09-06 13:16:37 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-09-06 13:16:37 -0400 |
commit | a7c2cdb0c01185663834a00cee09b046d291de37 (patch) | |
tree | 6983d65c03ef43dd29a0e514f4c3aed667ca521e /js | |
parent | b5abac0767b3ac4278ba21dfc2f423049695e594 (diff) |
removes files no longer needed
Diffstat (limited to 'js')
-rw-r--r-- | js/jquery.onscreen.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/js/jquery.onscreen.js b/js/jquery.onscreen.js deleted file mode 100644 index bbd1f3d4d..000000000 --- a/js/jquery.onscreen.js +++ /dev/null @@ -1,22 +0,0 @@ -// onScreen jQuery plugin v0.2.1 -// (c) 2011 Ben Pickles -// -// http://benpickles.github.com/onScreen -// -// Released under MIT license. -;(function($) { - $.expr[":"].onScreen = function(elem) { - var $window = $(window) - var viewport_top = $window.scrollTop() - var viewport_height = $window.height() - var viewport_bottom = viewport_top + viewport_height - var $elem = $(elem) - var top = $elem.offset().top - var height = $elem.height() - var bottom = top + height - - return (top >= viewport_top && top < viewport_bottom) || - (bottom > viewport_top && bottom <= viewport_bottom) || - (height > viewport_height && top <= viewport_top && bottom >= viewport_bottom) - } -})(jQuery); |