javascript additions to hotpot's: where to store them?

javascript additions to hotpot's: where to store them?

by Phillip Peyraud -
Number of replies: 3

Hello to all,
I have added custom javascript lines to my hotpot exercises. I stored them in the same folder as the exercises themselves (in the Taskchain folder)
They work fine, but I have a large number of exercises, and editing my javascripts lines means replacing all the files for each taskchain.

I would like to have just one .js file that would be called from the <HEAD> section of the Hotpot files just like you call a regular js library. I've tried to store the file in a folder in the same domain, but it does not get loaded.

My question is: where should I put the .js file and how can I call it?

Thanks for you much appreciated help. smile

Average of ratings: -
In reply to Phillip Peyraud

Re: javascript additions to hotpot's: where to store them?

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Hi Phillip,
there are several ways to accomplish this.
I think the simplest is to add the
In reply to Phillip Peyraud

Re: javascript additions to hotpot's: where to store them?

by Phillip Peyraud -
Hi!
Your answer seems to have been shortened somehow.
Would you mind writing i in full?
Thank you so much.
In reply to Phillip Peyraud

Re: javascript additions to hotpot's: where to store them?

by Phillip Peyraud -
Hi Gordon,
Any chance that you might finish your answer?
I would be very interestedi in your advice.