]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6927
authorsoufiane <soufiane@cubedesigners.com>
Tue, 21 May 2024 14:35:46 +0000 (16:35 +0200)
committersoufiane <soufiane@cubedesigners.com>
Tue, 21 May 2024 14:35:46 +0000 (16:35 +0200)
js/quiz.draganddrop.js
views/screens/arrow.blade.php

index 5f9b80c3c740cf03548c823b80299f1fc147f3d5..b85bb4d0bab862ecb2f2f5bfbaf49f2651428fef 100644 (file)
@@ -23,6 +23,9 @@ QuizDragAndDrop.prototype = {
             } else {
                 zone = 'zone-2';
             }
+
+            let index = $this.activeScreen.find(".list-item:nth-child(1)").data('id')
+            $this.sendCurrentAnswerToArea(zone,index);
         });
 
 
index 5a50208017e8fa4a361ae92a718aa7e1005c9f51..71f5938c0fd9e3123c0f34777d957ec1ccb7eb6e 100644 (file)
@@ -7,10 +7,11 @@
         $key='ARROWRIGHT';
     }
 @endphp
-
-<div class="controls {{$side}} {{$action}}" aria-keyshortcuts="{{$key}}">
-    <p>{{$text}}</p>
-    <div class="access">
-        <span data-icon="arrow"></span>
+<a href="#">
+    <div class="controls {{$side}} {{$action}}" aria-keyshortcuts="{{$key}}">
+        <p>{{$text}}</p>
+        <div class="access">
+            <span data-icon="arrow"></span>
+        </div>
     </div>
-</div>
+</a>