Tuesday, May 24, 2011 Energy Saving by OnlineLeaf

Simple use

To use Online Leaf with the default settings, simply insert the following code into your website's tag:




Advanced uses

Your website can take advantage of some configurations, to give you more control over how the standby engine runs on your site. For each configuration, you simply add...
?configration=value at the end of savetheenvironment.js
...in the above implementation code, like:



Language support

When the users are inactive, a standby screen is launched with the text "Energy saving mode". This can be configured to display in any of the supported languages, if you add ?lang=code, where code is one of the language short codes below.

Supported languages

ak - Akan
da - Danish
de - German
en - English
es - Spanish
fr - French
fi - Filipino
gr - Greek
hr - Croatian
id - Indonesian
jp - Japanese
it - Italian
ma - Malay
my - Bahasa Melayu
nl - Dutch
pl - Polish
pt - Portuguese
bpt - Brazilian Portuguese
ro - Romanian
sl - Slovenian
se - Swedish
sk - Slovak
sw - Swahili
tr - Turkish
vi - Vietnamese

The following example will be using Slovenian for the standby screen:



Time of inactivity

You can easily define how long time your visitors have to be inactive, for the engine to launch the standby screen, by adding ?time=X where X should be replaced with the number of seconds you would like to define the time interval. An example could be:



... which will set the time of inactivity to 2 minutes (120 seconds).

Combination

In the following example, the engine will write the screen's text in Danish and launch the standby screen when the visitors have been inactive for more than 90 seconds (1.5 minutes).



Something does not work

The standby engine uses the jQuery Javascript library, so if you are using other Javascript libraries or code, we recommend adding...http://www.blogger.com/img/blank.gif



... just after the inserted Online Leaf script to make sure it does not conflict with other variables.

If you are still having problems, please do not hesitate to Contact OnlineLeaf



All credit here goes to OnlineLeaf

0 comments:

Post a Comment