Edit: Fixed it with delaying the function the correct way.
Apologies for the simple nature of this question, I’ve read up about how to call hype actions via external JS, but cannot get a very simple thing to work.
Here is my java script that I’m running at the end just before the closing body. It may not work due to running so quickly after the document loads, but that’s a guess.
Essentially I want to play a timeline if it’s within a certain time of day. The JS for the time to trigger works, the JS to play the timeline works when within an on click button, but they do not work together. I’m sure theres something really basic here but I’m very new to JS.
Thanks for any help, I did try and read other posts first.