]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6927
authorsoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 13:04:13 +0000 (15:04 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 13:04:13 +0000 (15:04 +0200)
js/quiz.screens.js
views/screens/question_multiple.blade.php

index 3636206930026649f7d06fc304be9cb7e06b8322..16e3166fb84f5ec97d64e8a07a2a8a588f886da7 100644 (file)
@@ -52,10 +52,6 @@ QuizScreens.prototype = {
             $this.updateUserAnswers();
         });
 
-        $(document).on('click', 'a[href="#"]' ,function (e){
-            return false;
-        })
-
         // Cliquer sur le bouton suivant
         $(document).on("click", ".active-screen.next .action", function () {
 
index 451e9aef878cb41515432906c384a94aa3c0d02f..ce278dc84d21c67f3672e3a298979db85d518f77 100644 (file)
@@ -6,18 +6,16 @@
         <form id="form-{{$position}}">
             <ul class="list">
                 @foreach($question['answers'] as $key => $answer)
-                    <li class="list-item">
-                        <a href="#">
-                            <input type="{{ $question['multiple'] ? 'checkbox' : 'radio' }}"
-                                   name="answer"
-                                   id="question-{{$position.$key}}" class="none" value="{{$key}}">
-                            <label for="question-{{$position.$key}}" aria-keyshortcuts="{{$alphabet[$key]}}">
-                                <span class="content">
-                                    <span class="relative">{{$answer['answer']}}</span>
-                                    <span class="access">{{$alphabet[$key]}}</span>
-                                </span>
-                            </label>
-                        </a>
+                    <li class="list-item" tabindex="{{$key}}">
+                        <input type="{{ $question['multiple'] ? 'checkbox' : 'radio' }}"
+                               name="answer"
+                               id="question-{{$position.$key}}" class="none" value="{{$key}}">
+                        <label for="question-{{$position.$key}}" aria-keyshortcuts="{{$alphabet[$key]}}">
+                            <span class="content">
+                                <span class="relative">{{$answer['answer']}}</span>
+                                <span class="access">{{$alphabet[$key]}}</span>
+                            </span>
+                        </label>
                     </li>
                 @endforeach
             </ul>