Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/max-programming/battery-info-typescript

I built a simple battery info app in vanilla JavaScript using the battery web api in the navigator and Bootstrap. Check out my YouTube channel too if u like: https://youtube.com/MaxProgramming/
https://github.com/max-programming/battery-info-typescript

battery-info bootstrap hacktoberfest javascript js navigator navigator-api ts typescript vanilla-javascript webpack

Last synced: 2 months ago
JSON representation

I built a simple battery info app in vanilla JavaScript using the battery web api in the navigator and Bootstrap. Check out my YouTube channel too if u like: https://youtube.com/MaxProgramming/

Awesome Lists containing this project

README

        

# battery-info-javascript

I built a simple battery info app using the `getBattery` web API in the `navigator` and Typescript.

It will show you the current battery status of your device with some cool and tasty emojis 😏. And charging if it is charging.

## Useful links
[`getBattery` API](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getBattery)

[Codepen](https://codepen.io/Max_Programming/full/jObeGMj)

[YouTube tutorial](https://youtu.be/J8_hwKSeffY)

## Browsers that don't support the `navigator.getBattery` API: 🚫

- Brave
- Firefox
- Safari

etc...

Font used in the project: [Audiowide](https://fonts.google.com/specimen/Audiowide).

Bootstrap Theme used: [Darkly on Bootswatch](https://bootswatch.com/darkly/).

![Screenshot](screenshot.jpg)