muesli-hd / muesli

Mathematisches Übungsgruppen- und Scheinlisten-Interface
GNU General Public License v3.0
26 stars 13 forks source link

Regression introduced in PR #106 #163

Open christian-heusel opened 2 years ago

christian-heusel commented 2 years ago

The Apri Fools JS doesnt work any more :( https://github.com/muesli-hd/muesli/commit/5d1fec2d41bae4df7cc580d8c4943b1363d9bf65

Error is:

Uncaught TypeError: document.getElementById(...) is null
    setRandomBackgroundColor https://muesli.mathi.uni-heidelberg.de/static/js/april_fool.js:13
    aprilFool https://muesli.mathi.uni-heidelberg.de/static/js/april_fool.js:23
    onload https://muesli.mathi.uni-heidelberg.de/user/login:1
april_fool.js:13:14
    setRandomBackgroundColor https://muesli.mathi.uni-heidelberg.de/static/js/april_fool.js:13
    aprilFool https://muesli.mathi.uni-heidelberg.de/static/js/april_fool.js:23
    onload https://muesli.mathi.uni-heidelberg.de/user/login:1