Dual Pane/Screen for Moodle Quiz

Dual Pane/Screen for Moodle Quiz

by Joey Kanseps -
Number of replies: 48

Hello everyone!


I've been looking for a way to lay out my moodle quiz questions in a "dual pane" or "split screen" mode. In this setup, the left pane/screen is static and would contain descriptions/long texts/video/audio while the right pane will show the questions. I came across this long discussion and I believe this is exactly the feature that I need - https://moodle.org/mod/forum/discuss.php?d=61067#p276564 


It seems like they were able to develop this feature that is why the discussion was closed. However, I can no longer access the links that contains the working files that I needed to download


I am thinking maybe this feature is already integrated with the latest moodle versions or plugins (I am using moodle version 3.7.1) but I haven't got any luck finding it.  


Can someone please help and steer me in the right direction? I would appreciate any help.


Thank you!

Average of ratings: -
In reply to Joey Kanseps

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Joey,

You can easily do it with a few html or javascript lines. See Reading comprehension ↗.

Average of ratings: Useful (3)
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Joey Kanseps -

Hi Dominique,

Thank you for sharing this! I think this fits my requirement. However, I'm zero knowledge on working with javascript etc., so i'm desperately trying to follow the intructions shown in moodleformulas.

I managed to get the code from the xml file and try it in my sample questions. If I understand it correctly, I need to put the contents of the text box in a description. Then add the rest of the questions in a single page. I did manage to overflow the text box on the succeeding questions using the z-index but it doesn't go all the way through the right-hand side. Thus, you will find the box of each questions overflowing, please see the portion boxed in red in the attached image.   



Is there a way to adjust it further to the right? Or perhaps remove the border line in each of the questions?

Btw, is there an option to register in moodleformulas.org? I am unable to access the sample courses using the username 'student' with password 'Moodle2018#'.

Once again, thank you and I really appreciate all your help!


In reply to Joey Kanseps

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

The appearance of the page can be adjusted in different ways.

You can adjust the text box further to the right by editing the HTML of the Description's question text and changing 300px to a smaller value:

<div style="position: fixed; width:auto; overflow: auto; height:80%; margin-right:300px; etc.

Or you can remove borders by inserting the following script in the HTML of the Description's question text:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
    $(document).ready(function() {
        $(".formulation").css("border", "none");
    });
</script>

Best of all, you can resize the width of the questions by inserting the following script in the HTML of the Description's question text:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
    $(document).ready(function() {
        $(".formulation").css("width", "75%");
    });
</script>

You're right about the z-index, it had to be increased. I cleaned up the example which now increases the right padding of the region-main-box:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
    $(document).ready(function() {
        $("#region-main-box").css("paddingRight", "30%");
    });
</script>

Check out the new XML file at https://moodleformulas.org/course/view.php?id=49&section=12 ↗.

Note that the password to moodleformulas is now 'Formulas.1'

Average of ratings: Useful (1)
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Joey Kanseps -
Hi Dominique,

The solution works as expected. Thank you very much!
Though I received feedback from some users that the "Finish Attempt" button at the bottom right often gets buried by the text field when the user scrolls the entire page down. I tried it and found it to be a pain to scroll the page carefully just to see the button again and be able to click it. See comparison screen shots below.

 

So, a couple of suggestions if you would not mind:
  • perhaps we can move the button to the left side or maybe in the middle (just before the right edge of the question box)
  • It would be nice as well if we could maximize the entire page like removing the box that contains the question flags (left-hand side) and moving the "Quiz navigation" block at the bottom of the quiz page.
I would appreciate if you could provide a workaround to accomplish these. Also, I know these suggestions are no longer in the correct category of the forum, so feel free to move it as you see fit.

Once again, thank you and more power!
In reply to Joey Kanseps

Re: Dual Pane/Screen for Moodle Quiz

by Şehriban Al Issa -

Hi Joey, 

I have been trying to figure out how to split scrollable screen for a long; however, i have not been to figure out how to do this. By the way, I am using Moodle 3.6.  I am trying to apply what is written in the forums however it seems too complicated with the formulas. Is there a possibilty to upload screenshots of the steps for me.  I also would like to put different types of questions on one page; multiple choice, short answer, true false, drag and drop ... The text itsself doen't need to be scrollabe but the questions to appear either on the right  or left side of the text should be scrollable. If it is not possible, please show me what is possible for the time being. If you could help me ASAP, I will be very glad

Thank you very much 

In reply to Şehriban Al Issa

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Sheriban,

Did you take a look at "Reading comprehension"?

Don't be afraid of the HTML code. Most of it is just simple formatting. smile

Average of ratings: Useful (1)
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Şehriban Al Issa -
Hello Dominique,
Thank you very much for your reply.
I downloaded the XML of your reading comprehension and replaced the reading text with mine. It worked. However, I am unable to share the screenhot with because I can not copy it here for some reason. Is there way to increase its length.

By the way, which formula should I use among the ones you have mentioned and where to insert the text .
You can adjust the text box further to the right by editing the HTML of the Description's question text and changing 300px to a smaller value:
Best of all, you can resize the width of the questions by inserting the following script in the HTML of the Description's question text:
You're right about the z-index, it had to be increased. I cleaned up the example which now increases the right padding of the region-main-box:

Thank you very much.
In reply to Şehriban Al Issa

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Sehriban,

The simplest solution may simply be to use two windows. In other words, each pane is in fact a window, and text and questions are displayed in separate windows, both of which are independently resizable and scrollable.

All that is required is a description question containing the text to be read and a small JavaScript to display this text in a new window.

This solution should work on Windows type desk computers. It may not work on tablets and phones.

The HTML code of the description question containing the text to be read and the JavaScript to display it in a new window is given below. Note that you have to "manually" place the HTML code of the text to be read in the HTML code of the description question.

<h3>Instructions</h3>

<p>Follow these steps to display the text to be read:</p>

<p>1. Move this window to the right by clicking on the keyboard keys <button>⊞ Win</button> + <button>→</button></p>

<p>2. Click on <button onclick="w201805211024()">Text to read</button></p>

<script>
  function w201805211024() {
    var x = 0.488*screen.availWidth;
    var y = 0.92*screen.availHeight;
    windo = window.open(" ", "_blank", "scrollbars=yes,resizable=yes,width=" + x + " ,height=" + y + " ");
    windo.document.write('<h3>Place the title here</h3><p>Place the first paragraph of the text to be read here.</p><p>Place the second paragraph of the text to be read here.</p><p>Place an image as follows:</p><p><img src="https://moodleformulas.org/draftfile.php/5/user/draft/404179839/Formulas20180521-0935.jpg" width="250" class="img-responsive"></p>');
  }
</script>
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Şehriban Al Issa -
Hello Dominique,
Thank you very much. I have tried the " Reading comprehension in one window" by downloading your xml and importing to my question bank on Moodle. I just replaced the text and it worked well. Thank you so much. I will also try 2 window.

Could you please also share the HTML formula for one window please. Because whenever I want to duplicate it and replace the text with another, changes automaticall are applied to the all texts. I don't want the original reading text to be affected by the new changes I am going to make. Therefore, the fromula for one window will help a lot.
In reply to Şehriban Al Issa

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Sehriban,

Using a single window. With this solution, the standard questions pane is squeezed to the left, and the text to be read is displayed inside a fixed pane on the right. Both the text pane and the questions pane are responsive and scrollable.

All that is required is a description question containing a small JavaScript to squeeze the questions pane to the left and some HTML formatting to display the text inside a pane on the right.

The HTML code of the description question containing the JavaScript to squeeze the questions to the left and the formatting code to display the text in a pane on the right is given below:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
  $(document).ready(function() {
    $("#region-main-box").css("paddingRight","36%");
  });
</script>

<h3>Instructions</h3>
<p>Read the text displayed on the right then answer questions on the left.
</p>

<div style="position: fixed;
  top:50px;
  width:33%;
  overflow: auto;
  height:80%;
  left:65%;
  background-color:#FFF;
  padding:0 25px 0 25px;
  box-shadow: 0 5px 10px #cbcbcb;
  z-index: 1000;">
  <p>Place the first paragraph of the text to be read here.</p>
  <p>Place the second paragraph of the text to be read here.</p>
  <p>Place an image as follows:</p>
  <p><img src="https://moodleformulas.org/draftfile.php/5/user/draft/757313958/Formulas20180521-0935.jpg" width="250" class="img-responsive"></p>
</div>
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Şehriban Al Issa -

Dear Dominique, 

Thank you very much for your response. It was quite helpful. 

I have another question. Is there a possibility to add an mp3 or mp4 instead of the reading text? 

Thank you so much. 

In reply to Şehriban Al Issa

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Sehriban,

You can easily insert an mp4 almost anywhere using the button insertOrEditAnAudioVideoFile.png (Insert or edit an audio/video file) of the Atto editor.

In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Ger Tielemans -
Still it would be great for normal teachers to have in Moodle a super-module where you get a dual pane and could select any other Moodle activity or resource in the left and the right pane....
Average of ratings: Useful (1)
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Ricky Gazali -
Hello Dominique,

Thank you. Your code is so useful.
Btw, is there a way to remove or hide the quiz navigation block?
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Syed Mustafa -
Hello Dominique,

I am fairly new to Moodle and your code is exactly what I have been searching to add Reading Comprehension questions within Quiz. I need a small variation in this code wherein the Reading pane has to be on the left and the question/s on the right.

I have tried this with some changes to the styling (with my limited knowledge) and could move the passage, question and answer text. But, the answer radio buttons remain to the left and overlap the reading passage.

Please suggest how I can interchange the passage and question-answer panes.

Thank you
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Govind Desikan -

Hi Dominique,

After loads of searching, found your choice the closest to what we wanted to achieve. At the same time, I am semi-technical and hope you wouldn't mind my dumb question. Thanks for providing vast inputs on the same. 

I have read through the and have downloaded the xml file mentioned at moodleformulas for "Reading Comprehension". My challenge is where should this javascript be introduced? Any specific Moodle config file? If so, can you share a step-by-step process to achieve the same? Will the suggested process work on the Moodle version mentioned below?

Yet again, thanks in advance for your support. 

My Moodle version: Moodle 3.11.2 (Build: 20210729)


Regards


Govind

In reply to Govind Desikan

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Govind,

Thank you for your interest in this issue. I'll get back to you later this week.

In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Govind,

Sorry for the delay in responding to you. Please see JavaScript solution ↗ and Where to place JavaScript code ↗. If that doesn't answer your question, don't hesitate to ask for clarification. I will try to answer more quickly next time.

In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Govind Desikan -
Hello Dominique,

Thanks for the response and it helped a lot in trying to achieve what I intended. Apologies for the late acknowledgement as the pandemic forced me to be away from my system with all bit of health issues.

Coming to the problem, the solution suggested by you is excellent and in line with what I wanted to include in my quiz. I had downloaded the xml mentioned and have tried and it works great. However, I am facing an additional requirement. The xml expects the questions to be multi-choice. If you can advise me on what changes I can do to the xml if I require it for a "short answer" question type or a "gapfill" question type?

To give you a clearer perspective, I have uploaded a document in the following link
as well as attaching. 
The first page of this document is the passage which I would post in one of the window of the display whereas the other window will be questions (in page-2 of this document), which, at the moment, I am forced to use "Short answer" type question or "Gapfill" question. 
Average of ratings: Useful (1)
In reply to Govind Desikan

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Govind,

You can easily rearrange the questions using a small and very simple script placed in a Description question which contains the text to be read. Questions of any type and number can be placed to the left or right of the text. You can try the quizzes below at https://moodleformulas.org/course/view.php?id=77&section=79 ↗.

Average of ratings: Useful (2)
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Phúc Nguyễn -

Morning Domonique,

I downloaded and import the XML from your link, but it doesn't have answers but only question.

I see that in your script, there are a few <div> blocks but I don't know where to put those blocks in the quiz description or it will be generated by JS?

Can we have an example XML file which include questions and answers?

Thank you.

In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Michael Boyd -
Hello Again
Where exactly on the list of activities can I find Reading comprehension as a choice? I attach a screenshot of the menu. I have looked but can't seem to find it.... Thanks and sorry to keep bothering you.


In reply to Joey Kanseps

Re: Dual Pane/Screen for Moodle Quiz

by Lê Bá Hùng -
I encountered the same issues and write the HTML code for the CLOZE question type right here which will help you show question in dual pane with a full screen button for convenience.
https://codepen.io/bi1101/pen/abKoYbL
You can just copy the code into the HTML editor of Cloze and change the text as you wish.
In reply to Joey Kanseps

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello,

I'm working on a new version of the script for dual panes. All you need to specify is which one is the description question and how many questions are attached to it. Students can display the description question on the left or on the right, and they can "stick" the dual block to make it easier to answer.

Here is a prerview where the third question is the description question and the next two questions are attached to it.

In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Michael Boyd -
Thanks for all of your advice but I can't find the reading comprehension file that I need in the main menu. I need to do a reading comprehension test and the text is quite long, so it should also be scrollable. 
In reply to Joey Kanseps

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello,

Here is the latest dual pane feature, unfortunately not yet a plugin sad

Create a Text block (HTML block in Moodle<4.0) in a quiz.

Place the script attached below in the HTML code of this block.

A "dual pane" is composed of a question, generally a description question, and one or more questions related to it, displayed side by side in a quiz.

There can be either zero or only one dual pane on each page of a quiz.

There are 3 arrays that set the dual panes for a quiz. The number of elements in each array corresponds to the number of pages of the quiz on which you want dual panes.

The first array is the number of dual panes on each page of the quiz. The elements of the array can only be 1 (one dual pane) or 0 (no dual pane), in other words there can only be one dual pane or no dual pane on a given page of a quiz. For example, with 4 pages in a quiz and dual panes on page 1, 2 and 4, the first array must be [1,1,0,1].

The second array is the question number of the first question of the dual pane, i.e. in general the description question, on each page of the quiz. For example, if the description question on page 1 of the quiz is the third question on this page, the description question on page 2 is the second question and the description question on page 4 is the first question, the second array must be [3,2,0,1].

The third array is the number of questions related to the description question in the dual pane on each page of the quiz. For example, if the dual pane on page 1 has 2 questions, the dual pane on page 2 has 1 question and the dual pane on page 4 has 3 questions, the third array must be [2,1,0,3].

The students can display the description question to the left or to the right of the questions related to it.

The students can modify the relative width of the panes.

When "Sticky panes" is on, the dual pane will stick to the top of the window when scrolling down the quiz, allowing the students to scroll both panes as required (as shown in the video in my previous post).

When reviewing the quiz, the dual panes will only display if "Show one page at a time" is selected.



Average of ratings: Useful (1)
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
How hard do you think it would be to turn it into a plugin? I have been playing with your code, and the result looks excellent.
Average of ratings: Useful (1)
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello Marcus,

Thank you for your feedback.

You're right, it would be hard to imagine an easier plugin:

  • Block plugins are the simplest.
  • There are no security concerns.
  • Database queries need not be used.
  • The actions are very simple: insert a flex-styled element and insert the description question and the related questions as child elements.
  • The interface includes simple toggle button, checkbox and slider.
  • Simple sticky display and formatting.
I'll try to make the plugin, but I do not have a lot of time. If someone wants to do it in the meantime, they can use my code if it helps.
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
"You're right, it would be hard to imagine an easier plugin:"
Says the man who has created  a huge collection the most sophisticated Moodle javascript tweaks on the planet 😍

Thanks for your response Dominique, it is very helpful. It would be the sort of thing I would work on time allowing .
Average of ratings: Useful (2)
In reply to Marcus Green

Re: Dual Pane/Screen for Moodle Quiz

by Lê Bá Hùng -
Have you had a look at this code? It's pretty simple to implement but the drawback is that it has to be in the cloze question type.
https://codepen.io/bi1101/pen/abKoYbL
I'm also trying to add a highlight popup that allow students to highlight when thay do reading exercise using JavaScript (I'm no expert just copy and paste from the internet) but the results is not very good because in moodle 4.0 whenever a html "button" attribute is clicked, the page reload soo its pretty hard to get things behave the way I want it to. If anyone have experience in JavaScript could you take a look at the code and make some adjustments?
In reply to Lê Bá Hùng

Re: Dual Pane/Screen for Moodle Quiz

by Phúc Nguyễn -
Hi Hùng,

I implemented the highlight function to my Moodle long time ago and the function works well like image below. 
However, there are a few things need to improve:
1. Once you include the js file into your quiz, users will able to highlight any text on the screen but not only in the quiz.
2. Once the users refresh the page, change to another question on different page, etc then go back to previous page, all the highlights will be gone. Basically it's just temporary highlight texts on the current page.

I included the js file below, you can play around with them and you have to include the js file into your quiz html.

highlighted

In reply to Phúc Nguyễn

Re: Dual Pane/Screen for Moodle Quiz

by Lê Bá Hùng -
OMG thankyou this is exactly what I needed. But how exactly did you added this into your quiz? I added the code through Html like this and nothing happens

I also use this code on codepen.io and nothing happens either

<script src="https://moodle.org/pluginfile.php/134/mod_forum/attachment/1774169/highlight.js"></script>

Thankyou in advance
In reply to Lê Bá Hùng

Re: Dual Pane/Screen for Moodle Quiz

by Phúc Nguyễn -
try to download the Js file and upload to somewhere first then embed the link in Html code. Im not sure if the attachments in this forum are readable for guest.
In reply to Phúc Nguyễn

Re: Dual Pane/Screen for Moodle Quiz

by Lê Bá Hùng -
I also tried to copy the code from the js file to code pen but that also doesn't work. 

Can you provide an html code example of your quiz?

In reply to Lê Bá Hùng

Re: Dual Pane/Screen for Moodle Quiz

by Phúc Nguyễn -
Sorry, I missed this block, can you try again.

script
In reply to Phúc Nguyễn

Trả lời: Re: Dual Pane/Screen for Moodle Quiz

by Lê Bá Hùng -
OMG thankyou so much! It works wonders!

Just some minor problem:
When I go into fullscreen there are no popups to hightlight. I guess this is the default behavior because other extension doesn't pop up durring full screen too, but I would be nice to have it work during full screen. I'll mess around with it and keep you updated
In reply to Lê Bá Hùng

Re: Dual Pane/Screen for Moodle Quiz

by Ngọc Ân Nguyễn -
I'm facing a problem when I do my Quiz: I can't select the answer to Multichoice (MCV) in Cloze Question when I'm in fullscreen mode. My moodle version is 4.1. Do you have any similar issues?
In reply to Lê Bá Hùng

Re: Dual Pane/Screen for Moodle Quiz

by Trọng Nguyễn Nguyễn -
Thanks for sharing the codes. Just great to apply and learn from your codes. However, I faced a problem with the fullscreen function. My whole window turns dark whenever the fullscreen function is used. 

Could you help me to identify what problem it was and how to fix it. 

Many thanks for your sharing. 
Attachment Screenshot 2023-08-27 233809.png
In reply to Trọng Nguyễn Nguyễn

Re: Dual Pane/Screen for Moodle Quiz

by Lê Bá Hùng -
I encountered this too and it has to do with some CSS code, but I don't remember which part. An easy thing for you to do is open the Chrome dev tool to adjust the CSS there and see what works. After that, copy the adjusted CSS code to the custom CSS in Moodle. Best of luck!
In reply to Marcus Green

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello Lê Bá,

Thank you for sharing your code.

... add a highlight popup that allow students to highlight when they do reading exercise...

Could you explain? Do you want to highlight text like this?

In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Lê Bá Hùng -
Yes, highlight which behaves just like in my code, it's just that when I use that code in moodle it doesn't work as I want it to. When ever a html button (regardless of its function) is pressed, the moodle page reload
In reply to Dominique Bauer

Re: Dual Pane/Screen for Moodle Quiz

by Marco Ciccarini -
Hello Dominique,

thank you for the code, but I'm having some trouble to let it work.

I'm on moodle 3.10, I'm tring different configuration, but no way to let it work. It shows html block with the dual pane setting, but it didn't rearrenge the questions in the page. The three arrays should be set correctly. Could be the type of questions that creates problem? I'm using description and multiple choice.

I was also thinking that could be a time problem? I mean that javascript load to fast before the page get loaded?

Tahnk You for any help
In reply to Marco Ciccarini

Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello Michael,

I don't think it is the question types because the script should work with all question types. I don't think it's a time problem either because the script should load without problem. It may be something that I have overlooked.

If you are available, we could look at this on Zoom today (Friday) at 15:00 UTC+0 i.e 16:00 UTC+1 in Italy. Just click on https://etsmtl.zoom.us/j/81478018652?pwd=YlUwbTVZZVRZVW51NjFCREFJTU1lQT09 at that time.

What are your three arrays?
In reply to Dominique Bauer

Ri: Re: Dual Pane/Screen for Moodle Quiz

by Marco Ciccarini -
Hi Dominique,

thank You very much, I found the problem! It was in the quiz setting, I have (by default) in the Appearance menu, the "Show blocks during quiz attempts" setted to "No". Now I've setted on Yes and it works perfectly. Thank You very much for Your script, really usefull.
In reply to Marco Ciccarini

Ri: Re: Dual Pane/Screen for Moodle Quiz

by Marco Ciccarini -
One more thing. Since in my moodle I was in italian language, I had to modified line 53 according with new word "pagina" instead of "page".
In reply to Marco Ciccarini

Re: Ri: Re: Dual Pane/Screen for Moodle Quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello Marco,

Thank you for reporting this problem to me. It is one of the disadvantages of the script not being a plugin in its own right, you may have to make some adjustments.

Please could you give me the content of this line.
In reply to Dominique Bauer

Re: Ri: Re: Dual Pane/Screen for Moodle Quiz

by Michael Boyd -
Dear Dominique
I am answering here but Marco is from my institution and he was trying to help me. I have managed to get the dual pane working for my exam (thanks also to Marco), but I have a couple of questions with formatting. 
This is what I get:





It looks good but there are still two problems here: The text is too long so I would like to make it scrollable and in the first activity on the right (drag and drop) the gaps are too long so they run off the text box. Is there any easy way to fix this or to move the quiz navigation box so it doesn't get in the way?
Thanks again for all your help.