-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
82 lines (79 loc) · 2.94 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#303F9F">
<title>Battery Status - Progressive Web App</title>
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="css/material.min.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<button class="button">Add to home screen</button>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header
mdl-layout--fixed-tabs">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Current battery level</span>
</div>
<div class="mdl-layout__tab-bar mdl-js-ripple-effect">
<a href="#fixed-tab-1" class="mdl-layout__tab is-active">Current level</a>
<a href="#fixed-tab-2" class="mdl-layout__tab">More info</a>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">twitter:
<a href="https://twitter.com/irekrog" target="_blank" rel="noopener">@irekrog</a></span>
</div>
<main class="mdl-layout__content">
<div class="mdl-layout__tab-panel is-active" id="fixed-tab-1">
<div class="page-content">
<div class="battery-content">
<p class="battery-level mdl-spinner mdl-js-spinner is-active"></p>
<div class="battery-fill"></div>
<img id="battery-img" src="images/battery.png" alt="Battery">
</div>
</div>
</div>
<div class="mdl-layout__tab-panel" id="fixed-tab-2">
<div class="page-content">
<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric" scope="col">Info</th>
<th scope="col">Value</th>
</tr>
</thead>
<tbody>
<tr>
<td class="mdl-data-table__cell--non-numeric">Current level</td>
<td class="table__cell--current-level"></td>
</tr>
<tr>
<td class="mdl-data-table__cell--non-numeric">State</td>
<td class="table__cell--charge-state"></td>
</tr>
<tr>
<td class="mdl-data-table__cell--non-numeric">Time to charge</td>
<td class="table__cell--time-to-charge"></td>
</tr>
<tr>
<td class="mdl-data-table__cell--non-numeric">Time to discharge</td>
<td class="table__cell--time-to-discharge"></td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
<div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
</div>
<script src="js/material.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>