So I've been trying to get this calendar to work on DokuWiki and this is the script.js file for it
https://github.com/williamtroup/Calendar.js/blob/main/src/calendar.js
On line 511, _parameter_Document = null,
On line 1316, _parameter_Document.body.addEventListener( "click", hideSideMenu );
When I run the plug-in locally (with web server), it loads in the calendar fine like with absolutely no errors
https://www.imgpaste.net/image/SS0Kcx
However, when I put the plug-in on my web hosted wiki, I get
Uncaught TypeError: _parameter_Document.body is null
And that stops it from fully running (like getting to the bottom of) the script.js file
Any help with understanding what's going on here would be appreciated