How to path animation via js?
Tumult Forums » JavaScript
by Olof
4d ago
How can I animate the length of a vector line using JavaScript? I'm trying to access the path, but somehow I'm not succeeding. In my example, the vector line is at 50% and should be animated to 100%. my basic script: var animationDuration = 2; var strokeDashOffsetValue = 100; var svgElement = hypeDocument.getElementById('pie_path') hypeDocument.startTimelineNamed('animation', hypeDocument.kDirectionForward); hypeDocument.continueTimelineNamed('animation', hypeDocument.kDirectionForward); hypeDocument.setElementProperty(svgElement, 'stroke-das ..read more
Visit website
Mini game with Hype | iOS app
Tumult Forums » JavaScript
by bptstmlgt
1w ago
Hi everyone, I'm an indie iOS developer, and I'm seriously considering adding a game inside my app. My app is built in Swift, and I've recently read that Apple's guidelines recommend to use HTML5 for mini games. I upgraded to Hype Pro today (long overdue, I've been using Hype since 2014!) My question is: what do you think is the feasability of creating a game, to be embedded inside an iOS app, using Hype? My interrogations revolve around state management & saving progress. I suppose that will involve a lot of JavaScript, and I haven't used it yet inside a Hype project. I'm comfortable with ..read more
Visit website
Linking between Hype javascript scripts?
Tumult Forums » JavaScript
by BannerMan
2w ago
Hola, Perhaps I've missed some parts in the documentation, but I'm wondering if its possible to communicate between Script files without putting everything in the head html. For example if I have these js files within hype: myScriptA() and a second myScriptB(). Right now these don't communicate, so variables set in script A will not talk to the script B unless I make it a global variable in the head. Is there a possibility to have these scripts talk with eachother? So for example in myScriptA() I want to reference to a function in myScriptB(), is there some hype syntax to reference other js fi ..read more
Visit website
Can't get target="_self" to work
Tumult Forums » JavaScript
by dburdick
3w ago
I can not figure out the correct syntax for this. We have a series of maps (2020 - 2024). There is a Year selector to switch between them. The links are working as they should but they open in new windows instead of _self. Northern Illinois Fire Sprinkler Advisory Board Fire Sprinkler Saves Interactive Map 2022 - Northern Illinois Fire Sprinkler... Est. reading time: 1 minute <form name="jump3"> <select name="menu" id="yearmenu" > <option value="#">YEAR</option> <option value="https://firesprinklerassoc.org/fire-sprinkler-saves-interactive-map-2020/">2020< ..read more
Visit website
Change text from url
Tumult Forums » JavaScript
by VickyMadhas
3w ago
https://YOURURL?to1=John+Cena&to2=$+200.000&to3=#1245691&to4=30+January+2024 How to implement that URL become to this page 2 posts - 2 participants Read full topic ..read more
Visit website
Audio playlist with javascript arrays
Tumult Forums » JavaScript
by alastair
3w ago
I am trying to make an audio playlist for around 20 pieces of audio, each with title, artist name and small graphic. When I have done audio projects before I have given each track its own javascript to play, pause, forward 20 and rewind 20. This works fine with a few tracks but clunky with more, so it needs javascript arrays for the name, title and graphic - that is where I begin to struggle. I have been looking at Hypedocks where there is a good example: hypedocks.com HypeDocks » UI Music Player This is exactly the sort of thing I want to do - but it’s complicated. I don’t understand how the ..read more
Visit website
Detect visitor country!
Tumult Forums » JavaScript
by Arnaldo
1M ago
Hello everyone. please I need help I'm building my website entirely on Hype, but I want to detect the visitor's country on the home page to separate customers by language. (English and Spanish) Is it possible to detect if a visitor is not in the US and trigger a scene so the visitor can choose which language they prefer? 3 posts - 3 participants Read full topic ..read more
Visit website
Advance timeline on button click within Bootstrap Accordion menu
Tumult Forums » JavaScript
by grzesiek.rogala
2M ago
I have a manually added Bootstrap accordion menu which includes buttons that collapse and expand the menu sections. I would like to also use these buttons to advance the timeline and that's where I'm stuck. I assigned an onclick function to each of the buttons and I included this function within the document head. However, I don't know how to write the function as the following doesn't work that way. hypeDocument.continueTimelineNamed('timelineName', hypeDocument.kDirectionForward, false) I think I need to take an entirely different direction but cannot find anything in the Hype API documentat ..read more
Visit website
Remove ressources that are no longer used
Tumult Forums » JavaScript
by KaareBaekgaard
2M ago
I used a sample file from this forum to try out a javascript feature. But ultimately I decided against it and removed the ressources from the file. But I still used the file to build a website. Now I have the problem, that there are still references to the missing ressources somewhere - even though I do not use the feature. I get plenty of error messages in the browser developer window – stating that the ressources cannot be found. I want to delete the unused code from my hype document, but how? A few javascripts are saved with the html when I export the page, but the content look like jibberi ..read more
Visit website
Issue with detecting timeline direction inside a symbol instance
Tumult Forums » JavaScript
by grzesiek.rogala
3M ago
Hi Folks I have an issue with detecting timeline direction inside a symbol instance with an if/else statement. In my project, I have a symbol instance with a timeline named 'Progress'. The timeline includes a simple progress bar that is advanced by clicking the forward button and reversed by clicking the reverse button. In the middle of the 'Progress' timeline, I placed a trigger that is supposed to run the check_timeline() function. This function is a simple if/else statement which is supposed to check the direction of the timeline. If the timeline is running forward the button above the time ..read more
Visit website

Follow Tumult Forums » JavaScript on FeedSpot

Continue with Google
Continue with Apple
OR