Wallpapers
From CCIL
Revision as of 09:09, 20 April 2017 by Atanas.ilchev (Talk | contribs)
The wallpapers component provide nice, changing wallpapers for your interface. It comes as two components:
- Core - The component itself, includes the JavaScripts of the functionality, but not wallpaper images at all.
- CCIL - Includes 4 sets of background images:
- Nature
- Aircraft
- Cars
- Yana
Include
Maven
<dependency> <groupId>net.ccil</groupId> <version>${ccil.version}</version> <artifactId>ccil-ui-wallpapers</artifactId> <scope>runtime</scope> <type>war</type> </dependency>
HTML
<!-- JavaScript --> <script type='text/javascript' src='ccil/js/ccil.js'></script> <script type='text/javascript' src='ccil/js/ccil-wallpapers.js'></script>
Requires
API
path
Specifies the path to look for collections.json file.
CCIL.ui.wallpaper.path = 'dym/wallpapers/';
The default value is 'ccil/wallpapers/', if you include the ccil-ui-wallpapers-core component, you will have the following pre-defined set:
- Nature
- Aircraft
- Cars
- Yana
setRandom
Sets a random wallpaper as a background of the page.
CCIL.ui.wallpaper.setRandom();