Summary:
I'm using a script called Elevatezoom to zoom in on a map image I have. I am unable to make it work by copying the script and pasting it into Twine's Javascript section for the story. The only way I've gotten it to work is by having the file in the same directory and manually editing the HTML file to have a script at the end of the <head> element. I would rather not have to do this every time.
Description:
The script should make it so that when I mouse over the image, it creates a smaller box around the cursor that acts as a lens and zooms into the image by displaying a larger image that is also included.
Here's a folder with two examples!
In the first example, the script is pasted into the story and is the way I wish I could get it to work. When I mouse over the image, however, the browser spits out a script error
Here's a screenshot of the issue!
In the second example, the story works fine, but it does not include the script in the Javascript section. Instead, it is manually edited in at the end of the <head> element. This works but is un-optimal for me and I would like to find a way to be able to have it work in a manner similar to the first example.
If you don't want to check yourself, here's a screenshot with the manual edit highlighted in notepad++!
If possible, I would not like to have to manually include the script every time I make a change and need to republish for testing. Is there some sort of way to include the script with the file as it's being published, or fix it so that it works when pasted into the story's Javascript section?