assets/js/script.js
/**
     * @desc Toggle swiper videos on active slides
     * @param {object} swiper - swiper slider
     */
@desc Toggle swiper videos on active slides
@param {object} swiper - swiper slider
@desc Toggle swiper videos on active slides @param { object } swiper - swiper slider
function toggleSwiperInnerVideos(swiper) {
      var prevSlide = $(swiper.slides[swiper.previousIndex]),
        nextSlide = $(swiper.slides[swiper.activeIndex]),
        videos,
        videoItems = prevSlide.find("video");
      for (var i = 0; i < videoItems.length; i++) {
        if (!videoItems[i].paused) videoItems[i].pause();
      }
      videos = nextSlide.find("video");
      if (videos.length && !isMobile) {
        videos.get(0).play();
      }
    }
function toggleSwiperInnerVideos ( swiper ) { var prevSlide = $ ( swiper . slides [ swiper . previousIndex ] ) , nextSlide = $ ( swiper . slides [ swiper . activeIndex ] ) , videos , videoItems = prevSlide . find ( "video" ) ; for ( var i = 0 ; i < videoItems . length ; i ++ ) { if ( ! videoItems [ i ] . paused ) videoItems [ i ] . pause ( ) ; } videos = nextSlide . find ( "video" ) ; if ( videos . length && ! isMobile ) { videos . get ( 0 ) . play ( ) ; } }
@desc Toggle swiper videos on active slides
 @param {object} swiper - swiper slider
@desc Toggle swiper videos on active slides @param { object } swiper - swiper slider