Skip to content

Commit

Permalink
Merged master into origin/1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Irmscher committed Aug 10, 2016
2 parents e669861 + 80548ba commit 6f27265
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
18 changes: 9 additions & 9 deletions Resources/Private/Assets/JavaScript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(document).ready(function() {
});

window.initSwiper = function() {

var swiper = [];
$('.swiper-container').each(function(index){

Expand All @@ -21,21 +21,21 @@ window.initSwiper = function() {
});

$el.find('.prev-slide').on('click', function(){
swiper[index].swipePrev();
swiper[index].slidePrev();
});

$el.find('.next-slide').on('click', function(){
swiper[index].swipeNext();
swiper[index].slideNext();
});

positionSwipperBullets();

$(window).resize(function() {

updateSwipers();

positionSwipperBullets();

});

});
Expand Down Expand Up @@ -67,4 +67,4 @@ window.updateSwipers = function() {

});

}
}
17 changes: 9 additions & 8 deletions Resources/Public/JavaScript/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6f27265

Please sign in to comment.