From: soufiane Date: Fri, 22 Sep 2023 12:48:59 +0000 (+0200) Subject: wip #6182 @1:00 question match X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2f5f1aac234064b9dcf55007c59e7556ec52ad1a;p=fluidbook-toolbox-quiz.git wip #6182 @1:00 question match --- diff --git a/js/quiz.match.js b/js/quiz.match.js index f69f032..300d964 100644 --- a/js/quiz.match.js +++ b/js/quiz.match.js @@ -105,14 +105,14 @@ QuizMatch.prototype = { this.quiz.screens.currentQuestionAnswers.push(answer) if(this.swiperTop.activeIndex === lastIndex) { - this.validateButton() + this.switchMatchValidateButton() return false } this.swiperTop.slideNext() }, - validateButton: function() { + switchMatchValidateButton: function() { let btn = $(".active-screen").find(".confirmMatch"), text = this.quiz.l10n.__('Validate answer'); diff --git a/views/screens/arrow.blade.php b/views/screens/arrow.blade.php index a4ba78c..5a50208 100644 --- a/views/screens/arrow.blade.php +++ b/views/screens/arrow.blade.php @@ -8,7 +8,7 @@ } @endphp -
+

{{$text}}

diff --git a/views/screens/question_draganddrop.blade.php b/views/screens/question_draganddrop.blade.php index 3f2db1d..231272f 100644 --- a/views/screens/question_draganddrop.blade.php +++ b/views/screens/question_draganddrop.blade.php @@ -3,7 +3,7 @@ @include('header_question', ['question' => $question, 'data' => $data, 'max' => $max, 'position' => $position])
- @include('screens.arrow',['side'=>'left']) + @include('screens.arrow',['side'=>'left','action'=>'move-card'])
    @foreach($question['answers'] as $key => $answer)
  • @@ -13,7 +13,7 @@ @endforeach
- @include('screens.arrow',['side'=>'right']) + @include('screens.arrow',['side'=>'right','action'=>'move-card'])
@include('screens.question_draganddrop_area',['area'=>2,'question'=>$question,'theme'=>$theme]) diff --git a/views/screens/question_match.blade.php b/views/screens/question_match.blade.php index 6fa3b0e..09455aa 100644 --- a/views/screens/question_match.blade.php +++ b/views/screens/question_match.blade.php @@ -9,7 +9,7 @@
- @include('screens.arrow',['side'=>'left']) + @include('screens.arrow',['side'=>'left','action'=>'move-slide'])
@@ -20,7 +20,7 @@ @endforeach
- @include('screens.arrow',['side'=>'right']) + @include('screens.arrow',['side'=>'right','action'=>'move-slide'])