-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
53 lines (48 loc) · 2.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My Battery Info</title>
<!-- add manifest.json file that allows you to control how the app behaves as a pwa -->
<link rel="manifest" href="/manifest.json">
<!--properties for apple devices-->
<meta name="apple-mobile-web-app-capable" content="yes"/><!--allows the webpage to function as a pwa on an apple device-->
<meta name="apple-mobile-web-app-status-bar-style" content="black"/><!--controls how the status bar will look on an apple device-->
<meta name="apple-mobile-web-app-title" content="PWAGram"/>
<link rel="apple-touch-icon" href="/assets/img/icons/apple-icon-60x60.png" sizes="60x60"/>
<link rel="apple-touch-icon" href="/assets/img/icons/apple-icon-72x72.png" sizes="72x72"/>
<link rel="apple-touch-icon" href="/assets/img/icons/apple-icon-76x76.png" sizes="76x76"/>
<link rel="apple-touch-icon" href="/assets/img/icons/apple-icon-114x114.png" sizes="114x114"/>
<link rel="apple-touch-icon" href="/assets/img/icons/apple-icon-120x120.png" sizes="120x120"/>
<link rel="apple-touch-icon" href="/assets/img/icons/apple-icon-144x144.png" sizes="144x144"/>
<link rel="apple-touch-icon" href="/assets/img/icons/apple-icon-152x152.png" sizes="152x152"/>
<link rel="apple-touch-icon" href="/assets/img/icons/apple-icon-180x180.png" sizes="180x180"/>
<!--properties for internet explorer-->
<meta name="msapplication-TitleImage" content="/assets/img/icons/app-icon-144x144.png"/>
<meta name="msapplication-TitleColor" content="#ffffff"/>
<meta name="theme-color" content="#3f51b5"/>
<link rel="stylesheet" href="/assets/css/style.css">
<link rel="stylesheet" href="/assets/css/font-awesome.min.css">
</head>
<body>
<div id="page-wrapper">
<div id="battery-wrapper">
<div id="battery-level">
<p id="percentage"></p>
</div>
<div class="charging-status">
<i class="fa fa-plug" id="charging-icon"></i>
</div>
</div>
<div id="unsupported-browser">
<div class="img-wrapper">
<img src="/assets/img/unsupported.png" alt="">
</div>
<p>Oops! Your browser does not support the <a href="https://caniuse.com/#feat=battery-status"> Battery API </a> Try using another browser.</p>
</div>
</div>
<script src="/assets/js/script.js"></script>
</body>
</html>