|
Post by Melaga on May 13, 2014 14:26:28 GMT
Hi gordon,
You mentioned that " Hippo is a library in itself ". Could you explain where is hippo library located in your program please? I did some research and noticed that anywhere your Hippo library is, we can put any external js library and it would work!
|
|
|
Post by Hippani on May 13, 2014 18:44:21 GMT
Hippo is like a library. When you export to HTML, it exports only the functions of the library you need, to keep the file size down. Would it help if there was an option to add code to the header?
|
|
|
Post by Melaga on May 13, 2014 23:49:49 GMT
Yes it would help if you could add an eternal library to the movie so it wouldn't need to load the external library every time a code is added to an html object.
|
|
|
Post by Hippani on May 14, 2014 9:33:41 GMT
OK, we've added a new feature. In the movie properties you can now add your own custom HTML to the HEAD or BODY.
|
|
|
Post by Melaga on May 14, 2014 11:55:56 GMT
That is cool. Thank you Gordon! I am using the latest mac version 3.5.5232.0 and when I update it says it is the latest but doesn't have that feature yet!
|
|
|
Post by Hippani on May 14, 2014 15:48:40 GMT
Ah... We've not done the mac update yet sorry, hopefully that will come soon.
|
|
|
Post by Melaga on May 16, 2014 9:16:48 GMT
|
|
|
Post by Melaga on May 16, 2014 9:24:35 GMT
|
|
|
Post by Hippani on May 16, 2014 11:13:53 GMT
Change the head to this:
<script src="testhipo_Media/snap.svg-min.js"></script> <style>svg{display:block !important;}</style>
You need the sub folder name 'testhipo_Media' as the .js is in a folder on my PC. Also the svg tag is hidden by default in Hippo.
|
|
|
Post by Melaga on May 16, 2014 12:08:53 GMT
Thank you Gordon, That is awesome! How can we achieve a drag and resize of that html object code, The same way you could drag pictures in your movie? right now, no matter where you put the html object it displays the result at the same place. If I want to add more html objects, they are going to be placed on top of each other.
|
|
|
Post by Hippani on May 16, 2014 12:45:14 GMT
You'll have to read up on what snap does and what it's features are. It's separate from Hippo. If you want to drag and drop or move it around you'll need to look at the snap documentation. One way to keep it in the html block is to do this:
<style>svg{display:block !important;position:relative;}</style>
but that will apply to all svg and screw up any svg hippo creates. Maybe look in snap to see you to change the style of just the snap svg object. In the code you use it shows how to add styles to the circle, maybe there is a similar method to add it to the svg object. As for drag and drop, you'll have to ask snap. We have drag and drop demos on our site but they are for hippo objects.
|
|
|
Post by Melaga on May 17, 2014 7:47:34 GMT
Thank you Gordon, The snap approach wouldn't work because I can't (pre)view the snap svg object in Hippo before exporting it. Though, If I use the Hippo webpage object I could use Hippo to drag and resize it to wherever I want! The only problem with that is ,on each page load, I load the Sanp Library again. so, I load Snap library many times in a movie. Is there a way around for this?! Like, is there a way for the webpage object to look for external libraries loaded into the movie(main Html)?
|
|
|
Post by Hippani on May 18, 2014 18:40:33 GMT
Usually web browsers cache external files so they are only downloaded once. You could also use the 'offline cache' export option or create the snap library as a server page and set caching.
|
|
|
Post by Melaga on May 20, 2014 6:36:29 GMT
Thank you Gordon, My trial just ended and can't test what I want to achieve anymore. Is that possible to put the webpage object in free version please?!
|
|
|
Post by Hippani on May 20, 2014 10:15:12 GMT
Ah, sorry we can't do that. Just use a different computer.
|
|