| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <title>Battery Status API - Demo</title> |
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| 8 | <meta http-equiv="cleartype" content="on"> |
| 9 | <meta name="HandheldFriendly" content="True"> |
| 10 | <link rel="stylesheet" href="src/styles.css"> |
| 11 | </head> |
| 12 | <body> |
| 13 | |
| 14 | <header class="demo-header"> |
| 15 | <h1 class="demo-title">Battery Status API</h1> |
| 16 | <p class="not-support" hidden>Your browser doesn't support the Battery Status API :(</p> |
| 17 | </header> |
| 18 | |
| 19 | <article class="battery-card"> |
| 20 | <h1 class="battery-title">Battery Status</h1> |
| 21 | |
| 22 | <div class="battery-box"> |
| 23 | <strong class="battery-percentage"></strong> |
| 24 | <i class="battery"></i> |
| 25 | </div> |
| 26 | |
| 27 | <dl class="battery-info"> |
| 28 | <dt>Power Source</dt> |
| 29 | <dd class="battery-status">---</dd> |
| 30 | |
| 31 | <dt>Level percentage</dt> |
| 32 | <dd class="battery-level">---</dd> |
| 33 | |
| 34 | <dt>Fully charged in</dt> |
| 35 | <dd class="battery-fully">---</dd> |
| 36 | |
| 37 | <dt>Remaining time</dt> |
| 38 | <dd class="battery-remaining">---</dd> |
| 39 | </dl> |
| 40 | |
| 41 | </article> |
| 42 | |
| 43 | <footer> |
| 44 | <a href="https://github.com/pazguille/demo-battery-api" id="github-ribbon"><img width="149" height="149" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
| 45 | by <a href="http://pazguille.me/">Guille Paz</a> with <span class="heart">❤</span> |
| 46 | <iframe id="github-button" src="https://ghbtns.com/github-btn.html?user=pazguille&repo=demo-battery-api&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="152" height="30"></iframe> |
| 47 | </footer> |
| 48 | |
| 49 | <script src="src/index.js" async></script> |
| 50 | </body> |
| 51 | </html> |