It seems like you have opened this file by double-clicking on it. In order to test your build in a browser you need to load this file from a web server. You can either upload this file and the rest of the files from a Defold HTML5 bundle to a web hosting service OR host them using a local web server on your home network.
Overview : Using a small stylized image (90x91 pixels) we apply it to a gui node and set the slice-9 properties, we can then
adjust the size and retain the styling without streching and distortion. :More on Slice-9 with Defold:
The setup consists of a gui collection, gui script, a box node and a texture atlas
Box Node
contains:
A texture set to stylized wood plank image.
Size Mode set to Manual
Slice 9 adjusted settings
Gui script
Use:
For animating the node to different sizes, showing slice-9 at its potential.
Scripts
slice9.gui_script
If you want to play with these examples, you can get the project on Github.
Do you want to see more examples? Why not write a few yourself and submit a pull request? We love contributions.