Help with javascript

0 votes
asked Jul 30 in Stacks by mikmikkelsen (115 points)
edited Sep 26 by q2aadmin

I managed to make a small stack where I use an html page and a css page with code in it.
Now I want to make a stack where I also make java script code in it.
Can anyone show me an example of some java script code i can write in js file and then how i call this code and get the code to do something from the html file or css file in the stack

1 Answer

0 votes
answered Sep 26 by q2aadmin (6,015 points)

There are lots of examples on the YourHead GitHub pages. Here's the link to a simple example that uses Javascript to display images: https://github.com/yourhead/ImageFunStack. Just download the stack and look at how it assigns templates.

There's another question about templates here: http://cafe.yourhead.com/?qa=189/how-to-calle-a-java-script-function-in-a-stack

...