You are calling the file http://eternalvale.infinityfreeapp.com/dnd/dmscreen/quickref.js, but it does not exist and returns a 404.
Also, you page is not valid HTML. You are missing the DOCTYPE, HEAD, and BODY elements. Because of this, all your code is going into the HEAD, and HTML that is meant to show in the browser viewport will not be rendered properly there.
Look at the URL you are calling the JS file with. You are not calling it correctly. If the file is in a folder titled “js”, than the file path needs to match that.
Right now, this is the file path you are using: http://eternalvale.infinityfreeapp.com/dnd/dmscreen/quickref.js. As you can see, the “js” folder does not exist in that path. You need to update your code to call the correct file, and make it valid HTML, or you may run into more issues later.
I don’t know what your website is supposed to do at all
From the files I assume it’s a D&D game and map
Where did you download the source code from?
Is there a newer version of that code?
Or did you write everything yourself?
If you don’t know enough javascript (also scope) and other things
maybe it’s faster to find a more modern version of code online (that works),
rather than struggling to correct the code.
If something is old and has a lot of outdated methods
it is possible that it will give you an error in some other place again.
Nope just changed it up a bit. The exports were incorrect for non static websites. But I have absolutely no programming experience when it comes to javascript. I code mostly in java and c++.