- Feb 22, 2022
- 43
- 42
Hey, just a heads up, i am very new to javascript and twine. The goal of my javascript is to play the video with the video id="myVideo" only when it appears on the users screen. The javascript i have works fine when posted in the script section of the passage where the video is at. However, it fails when i post it to my javascript sheet. Why is that?
working code when posted in passage:
does not work when simply copied to the javascript sheet like this:
why is that, and how do i fix this? I do not want to put the whole script into every passage where i use a video, i would rather have that script in the javascript sheet.
thanks,
working code when posted in passage:
You don't have permission to view the spoiler content.
Log in or register now.
You don't have permission to view the spoiler content.
Log in or register now.
why is that, and how do i fix this? I do not want to put the whole script into every passage where i use a video, i would rather have that script in the javascript sheet.
thanks,