This sample site demonstrates the use of Battery Status API.
Level: Unknown
Power source: Unknown
Charging time: Inf
Discharging time: Inf
Sorry, your web browser still does not support Battery Status API. Try again using a different web browser that supports it.
What is Battery Status API?
From its abstract:
This specification defines an API that provides information about the battery status of the hosting device.
To learn more, please read the official specification at https://www.w3.org/TR/battery-status/.