1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update scheduled tasks page

This commit is contained in:
Luke Pulverenti 2015-10-12 15:09:56 -04:00
parent f73a917448
commit 1ac9bfe5aa
65 changed files with 8424 additions and 48 deletions

View file

@ -26,8 +26,8 @@
*/
var $w = $(window);
var thresholdX = Math.max(screen.availWidth * 1.5);
var thresholdY = Math.max(screen.availHeight * 1.5);
var thresholdX = Math.max(screen.availWidth * .5);
var thresholdY = Math.max(screen.availHeight * .5);
function visibleInViewport(elem, partial, hidden, direction) {
@ -200,6 +200,21 @@
} else {
elem.setAttribute("src", url);
}
if ($.browser.chrome && !$.browser.mobile) {
if (!elem.classList.contains('noFade')) {
fadeIn(elem, 1);
}
}
}
function fadeIn(elem, iterations) {
var keyframes = [
{ opacity: '0', offset: 0 },
{ opacity: '1', offset: 1 }];
var timing = { duration: 200, iterations: iterations };
return elem.animate(keyframes, timing);
}
function simpleImageStore() {