]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6927
authorsoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 10:44:42 +0000 (12:44 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 10:44:42 +0000 (12:44 +0200)
js/quiz.accessibility.js
views/components/modal_more_info.blade.php
views/footer.blade.php
views/screens/arrow.blade.php
views/screens/intro.blade.php
views/screens/outro.blade.php

index 22c6899836d5c350823957c4b541d1242a220565..fd65b698869a4d69d885ed3a9259b0492a9fcce1 100644 (file)
@@ -26,10 +26,10 @@ QuizAccessibility.prototype = {
                 if (key === 'ENTER') {
                     let el = $(':focus').find('[aria-keyshortcuts]')
                     if(!el) {
-                        $('input:focus').click()
+                        $(':focus').click(function (e){ return false; })
                     }
                     if ($this.quiz.utils.isEnabled(el)) {
-                        el.get(0).click();
+                        el.get(0).click((e) => { return false; });
                         return true;
                     }
                 }
index 5a752f1671fdf448e426de0d448f2a2b53015208..ffa20dd19de7faa59bb2209a8569e9c7657d707f 100644 (file)
@@ -1,7 +1,7 @@
 <div class="explaination">
     <div class="explaination-wrapper">
         <p class="explaination-text"></p>
-        <a class="close-explaination" href="javascript:void(0)">
+        <a class="close-explaination" href="#">
             <span data-icon="wrong"></span>
         </a>
     </div>
index 53afb2782295ecc661d14a191c0d5b6419f56521..00ac58e26083ed798032a2e1909df8d77914f663 100644 (file)
@@ -1,20 +1,20 @@
 <footer class="footer-question footer">
     @isset($reset)
-        <a class="btn secondary reset" aria-keyshortcuts="R" href="javascript:void(0)">
+        <a class="btn secondary reset" aria-keyshortcuts="R" href="#">
             <span class="text">{{$__('Reset')}}</span>
             <span class="access">R</span>
         </a>
     @endisset
 
     @if(isset($info) && trim($info))
-        <a class="btn secondary none moreinfo" aria-keyshortcuts="M" href="javascript:void(0)">
+        <a class="btn secondary none moreinfo" aria-keyshortcuts="M" href="#">
             <span class="text">{{$__('More infos')}}</span>
             <span class="access infos">M</span>
         </a>
     @endif
 
     <a class="btn primary {{ isset($matchMaking) ? "confirmMatch" : "action validate" }} {{ $countdown ? ' countdown' : ''  }}"
-       aria-keyshortcuts="Space" href="javascript:void(0)">
+       aria-keyshortcuts="Space" href="#">
         <span class="text">
             @if(isset($matchMaking))
                 {{ $__('Confirm the match') }}
@@ -31,7 +31,7 @@
     </a>
 
     @if($data['instantReview'])
-        <a class="btn primary action none continue" aria-keyshortcuts="Space" href="javascript:void(0)">
+        <a class="btn primary action none continue" aria-keyshortcuts="Space" href="#">
             <span class="text">{{$__('Continue')}}</span>
             <span class="access space">{{$__('space')}}</span>
         </a>
index 5947324448857d071551b9dad29b445c8dd99d18..71f5938c0fd9e3123c0f34777d957ec1ccb7eb6e 100644 (file)
@@ -7,7 +7,7 @@
         $key='ARROWRIGHT';
     }
 @endphp
-<a href="javascript:void(0)">
+<a href="#">
     <div class="controls {{$side}} {{$action}}" aria-keyshortcuts="{{$key}}">
         <p>{{$text}}</p>
         <div class="access">
index 6477ee6f4ed543b677c181545e15785408abde05..72bedf84c46051e9a0690cf1990a0f266eaf10a5 100644 (file)
@@ -25,7 +25,7 @@
         <div class="markdown only-mobile">{!! $markdownToHTML($data->intro_text_mobile?:$data->intro_text) !!}</div>
     </div>
     <footer class="footer">
-        <a id="start" aria-keyshortcuts="Space" class="btn primary" href="javascript:void(0)">
+        <a id="start" aria-keyshortcuts="Space" class="btn primary" href="#">
             {{$data->intro_button?:$__('Let\'s start')}}<span class="access space">{{$__('space')}}</span>
         </a>
     </footer>
index 8f4fbe6808bd51339b4219766bf21fa50bc55d01..cf4601aacabc60a08de88e70d7a9c00a2b2be01d 100644 (file)
@@ -40,7 +40,7 @@
                     </div>
                     @if($data->restart_button)
                         <div class="restart-sentence-mobile">{{$__('Want to improve your score?')}}</div>
-                        <a class="btn secondary restart restart-mobile" href="javascript:void(0)">
+                        <a class="btn secondary restart restart-mobile" href="#">
                             <span data-icon="reset"></span>
                             {{$__('Restart')}}
                         </a>
@@ -53,7 +53,7 @@
                 @endif
                 <div class="score-controls">
                     @if($data->restart_button)
-                        <a class="btn secondary restart" aria-keyshortcuts="r" href="javascript:void(0)">
+                        <a class="btn secondary restart" aria-keyshortcuts="r" href="#">
                             <span class="text">{{$__('Restart')}}</span>
                             <span class="access">R</span>
                         </a>