javascript library 3djs
- I am trying to use the javascript library 3djs.
I created a map using html and the javascript 3djs library, but when I bring it into captivate as a web object
it does not work. I try many different way to see if the map show up but nothing seems to work.
I know that Jquery and Bootstrap are integrated into captivate.
How to integrate the 3djs into captivate?
The method on the forum lieve points too may be simpler than what I do, but I found this piece of code on a forum once and it works well for me:
function addScript(src){
var s = document.createElement (‘script’);
s.setAttribute(‘src’, src);
document.body.appendChild(s);
}
addScript(‘TweenMax.min.js’);
In this example I’m adding the Greensock library. I place this code on my first slide with the on enter action. Then add the .js file next to where the outputted index.html file is.
Hope that helps!
I am not a JS expert, but may I point to a thread where a real JS guru has been answering a similar question?
https://forums.adobe.com/message/10332434#10332434
You must be logged in to post a comment.