This is similar to the typical 'document.getElementById', however the API version should be used instead as Tumult Hype may reassign ids in cases of collision. Searches the current document for the specified id (entered through the Identity inspector's "Unique Element ID") and returns the DOM HTML Element. Returns an array of all user-defined JavaScript functions in the Tumult Hype Document.Īn object to put any user-defined data associated with the Tumult Hype Document. Use this to reference assets added via the Resource Library. Returns the string value for the the document’s resources folder URL. This value can be used with document.getElementById() to retrieve the container element itself. Returns the id of the container div for the document. This value can be used in the global HYPE.documents. Use this to reference documents added via the Resource Library.įor example, if you’ve added jquery-1.8.2.min.js to your document using the Resource Library, this one line will import jQuery 1.8.2 into your Hype document, allowing you to use jQuery when previewing your Hype document: Open a new chat ChatGPT session and first inform ChatGPT about the Tumult Hype API, as it doesn't seem to know about it.Ĭopy and paste the following (click the small icon) Learn the following API and acknowledge by only writing "The Tumult Hype 4 API has been loaded…":Ī substitution variable for the document's resources folder. To use this, register an account and visit by Open AI. This thread is an instruction (experiment) to use ChatGPT to write (simple) code functions for Hype.
0 Comments
Leave a Reply. |