Hi,
I've noticed that using the HTML tag editor (that can be accessed by the
rich-text editor), I'm able to embed JS scripts, and was thus able to create a
draw able canvas (I am attaching a .txt file with the code to this post) inside
of a 'description' type question (though I guess it might as well have been any
other question type).
I was wandering if there is any way I could make this client-side script
interface with the Moodle grade system, to create a costume question type.
I have absolutely no
knowledge of how the Moodle works, but I guess this would require some PHP?
My fantasy would be to be able to simply be able to refer to built-in functions
with names like setAnswer(); from inside the script. This way, I could put my
questions in the context of a little JS game, and set the answer to a question
according to whether the student win or fail the game.
For example, I could place a screenshot
of a Word document (inside the canvas), and have the students mark where they
would click to change the font (by simply drawing on the canvas).
There may be a way to do this using some plugin, but given that I have a lot of
free time, and would like to make the quizzes as diverse and interactive as
possible, I would much rather to have a general solution that will allow me to
program a question behavior without having to learn actual Moodle-plugin
development (unless that is really straight forward to server-side beginners!)
The context for this is that we already plan to use games as a framing for some of the quizzes (which we use more to fill the role of an exercise than that of an exam) we give, and we would love to be able to integrate the scores the students get in these games into the same system which stores the scores for our "regular" quizzes*.
This is almost certainly not practical, but if there is any plugin or method to
achieve something close to this, I'd love to hear about it.
Sorry for rambling, and thanks for taking your time to read!
-Yaniv
*Again, these quizzes are used as a more interactive form of an exercise - we
wouldn't mix together the scores of straight-up exams and those achieved in a
game, since the game also tests skills unrelated to the subject at hand.