jsc3d
jsc3d copied to clipboard
Adjust loading bar style?
Hi,
I'd like to alter the loading bar a bit, but I can't find any CSS or javascript
code that determines the color etc. of this. I've searched in all files for the
hexadecimal color code(e.g. #FF0000), but it seems the color of the loading bar
changes when the background gradient colors are changed.
Could you tell me how to alter this?
Thanks.
Original issue reported on code.google.com by [email protected] on 26 Feb 2015 at 7:19
[deleted comment]
The generation of the default progress bar is coded in this function
https://code.google.com/p/jsc3d/source/browse/trunk/jsc3d/jsc3d.js#1133, where
you can see its color is automatically calculated to be in contrast to the
background color. You may want to try with a different implementation it to
gain better vissual effects.
A better way is to override the viewer's
onloadingstarted/onloadingprogress/onloadingcomplete event handlers to make
your own progress indicator. These event handlers are documented here:
http://jsc3d.googlecode.com/svn/trunk/jsc3d/docs/symbols/JSC3D.Viewer.html, and
you can see working examples in this
http://jsc3d.googlecode.com/svn/trunk/jsc3d/demos/test.html and this
http://jsc3d.googlecode.com/svn/trunk/jsc3d/demos/temple.html demos.
Original comment by [email protected] on 28 Feb 2015 at 3:53