Explorar o código

Add slidesToKeep option to set the number of slides kept behind the main slide

Jay Salvat %!s(int64=8) %!d(string=hai) anos
pai
achega
2e440db701
Modificáronse 4 ficheiros con 6 adicións e 4 borrados
  1. 3 2
      dist/vegas.js
  2. 1 1
      dist/vegas.min.js
  3. 0 0
      dist/vegas.min.js.map
  4. 2 1
      src/vegas.js

+ 3 - 2
dist/vegas.js

@@ -1,6 +1,6 @@
 /*!-----------------------------------------------------------------------------
  * Vegas - Fullscreen Backgrounds and Slideshows.
- * v2.3.1 - built 2016-09-18
+ * v2.3.1 - built 2016-09-28
  * Licensed under the MIT License.
  * http://vegas.jaysalvat.com/
  * ----------------------------------------------------------------------------
@@ -34,6 +34,7 @@
         animation:               null,
         animationDuration:       'auto',
         animationRegister:       [],
+        slidesToKeep:            1,
         init:  function () {},
         play:  function () {},
         pause: function () {},
@@ -522,7 +523,7 @@
                         }
                     }
 
-                    for (var i = 0; i < $slides.length - 4; i++) {
+                    for (var i = 0; i < $slides.length - self.settings.slidesToKeep; i++) {
                          $slides.eq(i).remove();
                     }
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
dist/vegas.min.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/vegas.min.js.map


+ 2 - 1
src/vegas.js

@@ -25,6 +25,7 @@
         animation:               null,
         animationDuration:       'auto',
         animationRegister:       [],
+        slidesToKeep:            1,
         init:  function () {},
         play:  function () {},
         pause: function () {},
@@ -513,7 +514,7 @@
                         }
                     }
 
-                    for (var i = 0; i < $slides.length - 4; i++) {
+                    for (var i = 0; i < $slides.length - self.settings.slidesToKeep; i++) {
                          $slides.eq(i).remove();
                     }
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio