-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
90 lines (73 loc) · 2.37 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
83
84
85
86
87
88
89
90
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="manifest" href="manifest.json">
<!-- link rel="stylesheet" href="styles.css" -->
<style>
.myButton {
background-color: #000000;
border-radius: 28px;
border: 1px solid #18ab29;
display: inline-block;
cursor: pointer;
color: #ffffff;
font-family: Arial;
font-size: 17px;
padding: 16px 31px;
text-decoration: none;
text-shadow: 0px 1px 0px #2f6627;
}
.myButton:hover {
background-color: #000000;
}
.myButton:active {
position: relative;
top: 1px;
}
</style>
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="manifest" href="manifest.json">
<!-- link rel="stylesheet" href="styles.css" -->
<script src="storage.js"></script>
<title>Mi Band 1</title>
<script>
function logout() {
sessionStorage.clear();
window.location.href = "./login/dist/index.html"
}
</script>
</head>
</style>
<title>Mi Band 2</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body
style="background-image: url(walpaper.png) ; background-repeat: no-repeat; font-family: 'Courier New', Courier, monospace">
<center>
<header>
<div class="p-1 mb-2 bg-primary text-white" style="text-align: center; font-size:30px;" onclick="logout()">Logout
</div>
<h1 style="color: aliceblue">
Please Connect
Fitness Band
</h1>
<button id="scanBtn" class=" myButton ">Scan</button>
</header>
<main style="font-family: 'Courier New', Courier, monospace;font-size: 15px; color: red">
<pre id="output"></pre>
</main>
</center>
<script src="webapp.bundle.js"></script>
<script>
// Install service worker - for offline support (not working properly, so disabled)
/*if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('serviceworker.js');
}*/
</script>
</body>
</html>