-
Notifications
You must be signed in to change notification settings - Fork 240
/
Copy pathconnect-phone.html
79 lines (75 loc) · 2.07 KB
/
connect-phone.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Connect Phone</title>
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<style>
.container {
min-width: 400px;
padding-bottom: 15px;
}
h2 {
margin-top: 15px;
margin-bottom: 20px;
}
.spinner {
display: inline-block;
vertical-align: middle;
border: 3px solid #333;
border-top: 3px solid rgba(0,0,0,0);
border-radius: 50%;
box-sizing: border-box;
width: 16px;
height: 16px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
#state-loading, #state-pairing, #state-success, #state-fail {
display: none;
}
#pairing-domain {
font-weight: bold;
color: blue;
}
#pairing-code {
font-size: 2em;
font-weight: bold;
color: #888;
}
.dark-mode .close {
color: white;
}
</style>
<script src="js/jquery-3.7.1.min.js"></script>
<script src="js/defaults.js"></script>
<script src="js/connect-phone.js"></script>
</head>
<body>
<div class="container">
<button type="button" class="close" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h2>Use My Phone</h2>
<div id="state-loading">
<div class="spinner"></div>
</div>
<div id="state-pairing">
<p>Open https://<span id="pairing-domain">readaloud.link</span> on your phone and enter this pairing code:</p>
<span id="pairing-code"></span>
</div>
<div id="state-success">
Pairing successful.
</div>
<div id="state-fail">
Pairing unsuccessful.
<span id="try-again-button" class="link">Try again</span>
</div>
</div>
</body>
</html>