Energy Saving Mode For Your Website

Energy saving Image
Save Energy
In today's world energy is wasted like anything, it is necessary for us to limit the use of conventional resources.
We should not simply waste the energy which we get for our daily life convience.
While browsing, running computer costs a lot of energy, and in today multiple tabs browsers has made it possible to utitlise a lot of energy, by simply opening sites and sites after one in each tab.......
So, we should take the motive to care of energy resources, lets each and every website be energy saving, website by simply inserting the code.

How Does This Code Work To Save The Energy ?

While user, reader lands on your website and just keeps open in an another tab of their browser, the code used to save energy, while get activate and blackout your webpage, and will keep on showing message until the user doesn't move their cursor on the tab of your website or close it.

Here is the screen shot
Screenshot of energy saving mode enabled, blackout on user's computer
Energy Saving Enabled, Blackout on user's screen


What If the User Is active On the webpage but it still gets into energy mode ?

No, probably not, until the is user active, user won't see a message of power saving and turning your website into a blackout. Until you decide and mention into the code at after how many after seconds and minutes blackout has to be done after the user is inactive on your website.

Will it affect my site in any way ?

No, it will not affect your website, design, content in any way, because the code is intelligent and works silently until the user becomes in active on your website, while opening in browser.

Can I get the code, and what should i do with code ?


Copy and paste the code to your website's template, after the <head> tag.
This code is run, executed on jquery, If your website is not running on jquery, simply add this lines after the <head> tag


Troubleshooting


What if i want the blackout message to be appear in my language, Non - English
The script provided by Online Leaf Supports probably round above 30 languages.
The supported languages are
ak - Akan
ar - Arabic
da - Danish
de - German
en - English
es - Spanish
fr - French
fi - Filipino
gr - Greek
hr - Croatian
id - Indonesian
it - Italian
jp - Japanese
kr - Korean
lt - Lithuanian
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
For using this code you will need to just little tweak by adding a simple sentence ?lang=Select-any-language-from-above.

how do i set time to the script?

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.

Now Combination Of Language And Time Used. In The script are as follows.



Where the Language is selected Danish, and time is set to 90 seconds i.e is 1.5 min.




Enjoy :)

0 comments:

Post a Comment