Created
January 13, 2017 21:01
-
-
Save pomle/f12152c8a93f1fed3bff96bce9703696 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
function wait() { | |
if (window.Swiper) { | |
clearInterval(timer); | |
var swiper = new Swiper ('.swiper-container', { | |
direction: 'horizontal', | |
loop: true, | |
pagination: '.swiper-pagination', | |
nextButton: 'nav .next', | |
prevButton: 'nav .prev', | |
}); | |
} | |
} | |
var timer = setInterval(wait, 100); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment