-
Notifications
You must be signed in to change notification settings - Fork 813
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b6f17e
commit 883071f
Showing
324 changed files
with
54,764 additions
and
6,404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...rowser.WebDashboard/dashboard-ui/bower_components/emby-webcomponents/visibleinviewport.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
define([], function () { | ||
|
||
/** | ||
* Copyright 2012, Digital Fusion | ||
* Licensed under the MIT license. | ||
* http://teamdf.com/jquery-plugins/license/ | ||
* | ||
* @author Sam Sehnert | ||
* @desc A small plugin that checks whether elements are within | ||
* the user visible viewport of a web browser. | ||
* only accounts for vertical position, not horizontal. | ||
*/ | ||
function visibleInViewport(elem, partial, thresholdX, thresholdY) { | ||
|
||
thresholdX = thresholdX || 0; | ||
thresholdY = thresholdY || 0; | ||
|
||
var vpWidth = window.innerWidth, | ||
vpHeight = window.innerHeight; | ||
|
||
// Use this native browser method, if available. | ||
var rec = elem.getBoundingClientRect(), | ||
tViz = rec.top >= 0 && rec.top < vpHeight + thresholdY, | ||
bViz = rec.bottom > 0 && rec.bottom <= vpHeight + thresholdY, | ||
lViz = rec.left >= 0 && rec.left < vpWidth + thresholdX, | ||
rViz = rec.right > 0 && rec.right <= vpWidth + thresholdX, | ||
vVisible = partial ? tViz || bViz : tViz && bViz, | ||
hVisible = partial ? lViz || rViz : lViz && rViz; | ||
|
||
return vVisible && hVisible; | ||
} | ||
|
||
return visibleInViewport; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
MediaBrowser.WebDashboard/dashboard-ui/bower_components/hls.js/bower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.