The example below takes again all the elements seen previously. For a better reuse and legibility of the code the definition of Styles is stored in an additional Javascript files.
Example
Run the example
See the source code
See the style definitions