From 87bb23e03b77086b4f0700bb6a7dd384d2402a63 Mon Sep 17 00:00:00 2001 From: Chris Pan Date: Tue, 7 Jun 2016 17:46:48 +0800 Subject: [PATCH] Fix #7. --- app/src/javascripts/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/javascripts/main.js b/app/src/javascripts/main.js index 6153bd7..018599d 100644 --- a/app/src/javascripts/main.js +++ b/app/src/javascripts/main.js @@ -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 () { @@ -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