Fork me on GitHub

Battery Status API - Surge Pricing POC

Battery more than 50% or charging: Traditional Marketing can be used.
Battery less than 50% and not charging: Call to action bigger, maybe offer that will expire soon.
The Battery Status API is not supported on this browser. List of supported browsers.

Read cdemi's Blog Post (Ab)Using the HTML5 Battery Status API for Advertising or view the source on GitHub.