Skip to content

Commit

Permalink
[STYLE] fix js formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Oct 18, 2016
1 parent 4685c3f commit 3ab4879
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions dev/js/main/plugins/news/newsCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@

// initialize swiper when document ready
// http://idangero.us/swiper/api/
$('.js__news-carousel').each(function(){
$(this).swiper({
nextButton: $(this).parent().find('.js__news-carousel__btn-next'),
prevButton: $(this).parent().find('.js__news-carousel__btn-prev'),
pagination: '.js__news-carousel__pagination',
paginationClickable: true,
slidesPerView: 4,
preloadImages: false,
spaceBetween: 30,
$('.js__news-carousel').each(function() {
$(this).swiper({
nextButton: $(this).parent().find('.js__news-carousel__btn-next'),
prevButton: $(this).parent().find('.js__news-carousel__btn-prev'),
pagination: '.js__news-carousel__pagination',
paginationClickable: true,
slidesPerView: 4,
preloadImages: false,
spaceBetween: 30,

// Responsive breakpoints
breakpoints: {
// Responsive breakpoints
breakpoints: {

// when window width is <= 480px
500: {
slidesPerView: 1
},
// when window width is <= 768px
767: {
slidesPerView: 2
},
// when window width is <= 992px
991: {
slidesPerView: 3
},
// when window width is <= 1199px
1199: {
slidesPerView: 4
// when window width is <= 480px
500: {
slidesPerView: 1
},
// when window width is <= 768px
767: {
slidesPerView: 2
},
// when window width is <= 992px
991: {
slidesPerView: 3
},
// when window width is <= 1199px
1199: {
slidesPerView: 4
}
}
}
});
});
});
});

Expand Down

0 comments on commit 3ab4879

Please sign in to comment.