@@ -15,6 +15,15 @@ A moodle-based training area for maths aiming to prepare students for their stud
## Troubleshooting
### Training Area Looks Messy
It may appear that for security reasons, your moodle-system can't fetch the script `alquiz.js` from `https://marvin.hs-bochum.de/~mneugebauer/alquiz.js`. If so, download the script from this repository and move it to a place on your own server. Afterwards you have to change the `<script src="...">`-url in the beginning of each question.
### Ressources won't load
It may appear that for security reasons, your moodle-system can't fetch the script `alquiz.js` from `https://marvin.hs-bochum.de/~mneugebauer/alquiz.js`. In this case the training area exists in your moodle-system, but will behave like any other test-element in moodle. For example, the maths-worlds-cluster and the endboss-symbols in the navigation bar (see screenshot above) won't appear. If so, download the script from this repository and move it to a place on your own server. Afterwards you have to change the `<script src="...">`-url in the beginning of each(!) question.
The same may appear for images used in the trigonometry-questions and the avatar-icon(s). Downlaod them from this repository (`img`-directory), move them to your server and change the urls in the regarding questions.
### Training area looks messy or does not work properly
The script-file `alquiz.js` adds additional CSS-styling information to the loaded page. These stylings are optimized for the moodle-system of Hochschule Bochum. It may not fit to the stylings of your moodle-system. This may cause troubles for up to two cases:
1. If this only relates to the desgin of the training area, you have to identify the two lines, where `alquiz.js` adds the styling information to the page and adapt them to your moodle-system. To do so, search for `document.createElement("style");` and edit the related variable declaration `.innerHTML = "..."`.
1. If this also applies to the functionality of the training area (e. g. the question feedback is not shown in the speech bubble above the question, but below the question), you have to adapt any `querySelector`, `querySelectorAll` and `getElementById` function in `alquiz.js` to operate correctly with your moodle-system.
## License
See the [LICENSE](./LICENSE)-file for license rights and limitations (MIT).