From 2faaecf36612e79a9c407091883781cd6955c1ac Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 26 Sep 2023 15:14:38 +0200 Subject: [PATCH] wip #6305 --- js/quiz.match.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js/quiz.match.js b/js/quiz.match.js index 956ab56..3a7526f 100644 --- a/js/quiz.match.js +++ b/js/quiz.match.js @@ -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; -- 2.39.5