update components
This commit is contained in:
parent
2d86f49653
commit
ab58f98cc1
27 changed files with 276 additions and 129 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue