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

update components

This commit is contained in:
Luke Pulverenti 2016-06-25 02:04:53 -04:00
parent 2d86f49653
commit ab58f98cc1
27 changed files with 276 additions and 129 deletions

View file

@ -3,13 +3,21 @@
function enableAnimation(elem) {
if (browser.mobile) {
i
return false;
}
return elem.animate;
}
function enableRotation() {
if (browser.tv) {
return false;
}
return true;
}
function backdrop() {
var self = this;
@ -270,7 +278,7 @@
currentRotatingImages = images;
currentRotationIndex = -1;
if (images.length > 1) {
if (images.length > 1 && enableRotation()) {
rotationInterval = setInterval(onRotationInterval, 20000);
}
onRotationInterval();