Ok managed to get a function call working by placing it in utilities.js, but really this all seems rather messy to implement. Every time you publish a project of overwrites a new utilities.js file, so you have to re-apply the custom functions. Captivate just doesn't seem setup properly for javascript integration.
How would I go about including html? i.e. where does the html go?
I'm trying to get this simple line graphics demo script working from within Captivate 8. The javascript goes in the function in the utilities.js, but what about the html?
<canvasid="myCanvas"width="200"height="100"
style="border:1px solid #000000;">
</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(0,0,150,75);
</script>