-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (94 loc) · 2.18 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Calibration example</title>
<style type="text/css">
html, body {
font-family: sans-serif;
font-size: 12pt;
}
#page {
max-width: 400px;
margin: 0 auto;
padding: 0 1rem;
}
button {
border: 0;
background-color: #fc3;
color: #000;
padding: 1rem;
font-family: inherit;
font-size: inherit;
}
button {
cursor: pointer;
}
button.large {
width: 100%;
margin: 0 auto;
text-align: center;
font-size: 1.5rem;
}
h1 {
text-align: center;
}
#current-offset {
font-size: 3rem;
text-align: center;
font-weight: bold;
}
p {
margin: 1em 0;
}
#calibrate {
display: none;
}
#progress-bar {
position: relative;
padding: 0;
padding-bottom: 4px;
margin-bottom: 1rem;
}
#current-time {
position: absolute;
height: 100%;
background-color: #fc3;
}
</style>
</head>
<body>
<div id="page">
<div id="connect">
<h1>Calibration example</h1>
<p>
<label>
Cloud-Sync hostname:
<input type="text" value="cloud-sync.example.com" id="input-hostname" />
</label>
</p>
<p>
<label>
Cloud-Sync port:
<input value="" id="input-port" type="number" placeholder="leave empty for default" />
</label>
</p>
<button class="large" id="btn-init">Connect</button>
</div>
<div id="calibrate">
<h1>Set device latency</h1>
<div id="progress-bar">
<div id="current-time"> </div>
</div>
<p>
<button id="btn-increase" class="large">+10</button>
</p>
<p id="current-offset">…</p>
<p>
<button id="btn-decrease" class="large">-10</button>
</p>
</div>
</div>
</body>
</html>