Skip to content

Commit

Permalink
Fix #7.
Browse files Browse the repository at this point in the history
  • Loading branch information
panteng committed Jun 7, 2016
1 parent 88ef736 commit 87bb23e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/javascripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$(document).ready(function () {
var bgMusic = $('audio').get(0);
var $btnMusic = $('.btn-music');
var $btnSwipe = $('.btn-swipe');
var $upArrow = $('.up-arrow');

// background music control
$btnMusic.click(function () {
Expand Down Expand Up @@ -47,9 +47,9 @@
},
onTransitionStart: function (swiper) { // on the last slide, hide .btn-swipe
if (swiper.activeIndex === swiper.slides.length - 1) {
$btnSwipe.hide();
$upArrow.hide();
} else {
$btnSwipe.show();
$upArrow.show();
}
},
onTransitionEnd: function (swiper) { // play animations of the current slide
Expand Down

0 comments on commit 87bb23e

Please sign in to comment.