|
Post by Melaga on Apr 20, 2014 0:02:11 GMT
|
|
|
Post by Hippani on Apr 20, 2014 14:26:20 GMT
Import a js file from the library menu.
|
|
|
Post by Melaga on Apr 29, 2014 11:57:42 GMT
Thanks Gordon, Ok I have this jsfiddel example that uses an external js library: jsfiddle.net/melaga/qp8Kz/How can I import this to be a part of a movie in hippo, please?
|
|
|
Post by Melaga on Apr 29, 2014 12:01:07 GMT
|
|
|
Post by Hippani on Apr 29, 2014 12:32:38 GMT
I'm not sure, I've never used fiddle, is there an additional js file or something?
|
|
|
Post by Melaga on Apr 30, 2014 0:08:05 GMT
|
|
|
Post by Hippani on Apr 30, 2014 8:06:00 GMT
What happens when you copy and paste that code into a js file in Hippo. Have you also looked at the HTML object which allows you to add your own HTML?
|
|
|
Post by Melaga on Apr 30, 2014 10:20:04 GMT
Ok here is the html version of that: jsbin.com/fajek/1/editI copied and pasted this html and added as html to library and then to movie but it shows only the html text.
|
|
|
Post by Melaga on Apr 30, 2014 10:31:33 GMT
|
|
|
Post by Hippani on Apr 30, 2014 12:31:20 GMT
|
|
|
Post by Hippani on Apr 30, 2014 12:33:22 GMT
You only want to add this code to the html object:
var s = Snap(600,600);
var c = s.circle(150, 150, 80).attr({ fill: "none", stroke: 'red', strokeWidth: 161, strokeDasharray: "0 600 600 0", strokeDashoffset: 1000 });
Snap.animate(0,600, function( value ){ c.attr({ 'strokeDashoffset': value })
},5000 );
|
|
|
Post by Hippani on Apr 30, 2014 12:33:50 GMT
You then need to add the javascript library as a .js page.
|
|
|
Post by Melaga on May 1, 2014 1:10:18 GMT
|
|
|
Post by Hippani on May 1, 2014 8:09:37 GMT
I've not tried it, I can't really help make somebody elses software work. It looks like you are doing it right. You also need to add a js file with the snap library or whatever. Then you export to HTML.
|
|
|
Post by Melaga on May 1, 2014 10:42:36 GMT
Thanks Gordon, Do you have any example of adding any js code and its supporting external library like jQuery or anything else that you have added to the Hippo, please?!
Could you please explain more about this" You also need to add a js file with the snap library or whatever. Then you export to HTML."
|
|