Adding required JS libraries to Hype documents

So I’m still pretty new to Hype and I’m just getting my head around it.

At the moment I’m trying to convert a simple JS script to work with Hype that is dependent on another JS library. Is that possible?

I’ve attached the scripts here if anyone is interested in taking a look. The file called ‘example.js’ is the main script that is dependent on the file ‘poloniex.js’.

Any help would be greatly appreciated. My Hype 3 trial runs out in 4 days and I think I’m definitely going to be purchasing. It’s too awesome! :slight_smile:
poloniex.js-master.zip (9.8 KB)

@peachboy

Drag your poloniex.js file into Hype’s “Resource Library” panel. If the panel is not visible:
Select menu “View” > “Resource Library”.

Then note that your poloniex.js file is referenced in the “Head” of your Hype project’s HTML. View the “Head” by choosing the “Document Inspector” (also located in the “View” menu); then click on “Edit Head HTML…” about a quarter of the way down the panel.

peachboy,

Please ensure you drag the scripts in correct order.

1 Like

Hello wonderful forum people!

I really like the possibilities presented by the sortable JS library and hype. The problems I have are:

  1. I have no clue what I’m doing! :wink:
  2. There are lots of files - which ones do I add to the hype document?
  3. Once the library is in hype - how do I use it?

My aim is to have a list of things to sort into the correct order and then be able to use a function in hype to check if the order is correct. This would be great for educational content for the future generation!

I am sorry I am useless at this but if anyone can take pity on me and help me I would be eternally grateful.

Thanks in advance!