]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6305
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Sep 2023 13:14:38 +0000 (15:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Sep 2023 13:14:38 +0000 (15:14 +0200)
js/quiz.match.js

index 956ab56a0e48aecee409b69da72aad0eab6c9cc1..3a7526fe19671fb15d2ff529b370288d537a44e6 100644 (file)
@@ -1,4 +1,3 @@
-import gsap from "gsap";
 import Swiper from 'swiper';
 import {Navigation, Pagination, Manipulation} from 'swiper/modules';
 import 'swiper/css/navigation';
@@ -105,10 +104,6 @@ QuizMatch.prototype = {
         $(slide).css({transform: 'rotate(' + angle + 'deg) translateY(' + top + 'px)', opacity: opacity});
     },
 
-    deg2rad: function (deg) {
-        return deg * (Math.PI / 180);
-    },
-
     confirmTheMatch: function () {
         let lastIndex = this.swiperTop.slides.length - 1
         let index = this.swiperBottom.activeIndex
@@ -116,7 +111,6 @@ QuizMatch.prototype = {
         this.swiperBottomEl.find(".swiper-slide").get(index).remove()
         this.swiperBottom.update()
 
-
         if (this.swiperTop.activeIndex === lastIndex) {
             this.switchMatchValidateButton()
             return false;