Our school is currently trying to use moodle more actively and got some of the teachers of the lower classes to design exercises. They've decided to let a student do the work of actually implementing it, because it certainly is the cheapest option. That student happens to be me, and I just noticed that they probably ripped me off, since it isn't even close to the "Just copy&paste it" they said it was going to be.
While I've somehow managed to work my way through most of it, some of the teachers had special requests that I can't fulfill using the usual go-to question type cloze. One particular request I am currently stuck with comes from the German teacher that decided it would be a good idea to include dialogue sequences between tasks, in which three characters discuss their issues with grammar and stuff. She sent me a script like the ones you get in theater class, and with it came an image with the three characters. She told me to use image editing magic to add speech bubbles, and probably expects me to do that for every. single. sentence.. No way I'm doing that, it's like Romeo and Juliet act I through V worth of text.
My idea was to just copy&paste it into the question (usually the description type), put the whole thing into a <p> tag with a certain class, and just let javascript parse it, replace the paragraph with a canvas, and let it figure out by itself where to put the the text, which size it has to be and all that stuff. Idea got accepted because I argued that "it would save a significant amount of bandwidth" (and my time). I put it together two days ago, and it honestly somehow works even better than I expected. But I've literally made zero progress since then, since I just can't figure out how to actually add it to moodle itself.
I could send it to the CS teacher so he can upload it to the server, but I don't know where to go from that point onward. It would probably work fine if I just add a reference to it in every single question it would be used in like
<p class="conversation">
Lieselotte: ...
...
<script src="http://www.example.com/conversation.js"></script>
Any help would be appreciated. Thanks in advance
... I am not sure anymore whether two months worth of pocket money are actually worth it