-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.html
executable file
·190 lines (171 loc) · 6.35 KB
/
ui.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Navigation Window</title>
<script type="text/javascript" src="navigation.js"></script>
<script type="text/javascript" src="util.js"></script>
<script type="text/javascript" src="lib/vis-network.min.js"></script>
<script type="text/javascript" src="lib/uri.all.min.js"></script>
<style type="text/css">
body {
font-family: monospace;
}
.btn {
padding: 5pt;
border: 0;
border-right: 5pt solid hsl(55, 100%, 45%);
background-color: hsl(55, 100%, 50%);
font-family: monospace;
}
.btn:hover:enabled {
color: saddlebrown;
}
.btn:active:enabled {
background-color: hsl(55, 100%, 45%);
border-right: 0;
border-left: 5pt solid white;
}
#explainer {
position: absolute;
top: 0;
bottom: 0;
left: 0;
max-width: 420px;
margin: 10px;
}
#explainer-source-node {
stroke: hsl(55, 100%, 40%);
fill: hsl(55, 100%, 50%);
}
#explainer-other-node {
stroke: hsl(205, 100%, 40%);
fill: hsl(205, 100%, 50%);
}
#explainer-unknown-node {
stroke: hsl(55, 20%, 70%);
fill: hsl(55, 20%, 80%);
}
#nav-graph {
position: absolute;
top: 0;
bottom: 50px;
left: calc(420px + 10px);
right: 0;
margin: 10px;
border: 1px solid lightgray;
}
#controls {
position: absolute;
bottom: 0;
left: calc(420px + 10px);
right: 0;
margin: 10px;
height: 40px;
}
#overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(50, 50, 50, 0.2);
}
#modal {
max-width: 420px;
margin-top: 100px;
margin-left: auto;
margin-right: auto;
background-color: white;
padding: 10px;
}
#contribute-data {
resize: none;
}
#modal-controls {
margin-top: 10px;
}
#modal-close-control {
width: 100%;
display: inline-block;
text-align: right;
text-decoration: underline;
cursor: pointer;
}
</style>
</head>
<body>
<div id="explainer">
<h1 id="extension-name" class="localized-text"></h1>
<h2 id="what-is-it-for" class="localized-text"></h2>
<p id="what-is-it-for-answer-1" class="localized-text"></p>
<p id="what-is-it-for-answer-2" class="localized-text"></p>
<h2 id="how-does-it-work" class="localized-text"></h2>
<ol>
<li id="how-does-it-work-answer-1" class="localized-text"></li>
<li id="how-does-it-work-answer-2" class="localized-text"></li>
</ol>
<p id="how-does-it-work-warning" class="localized-text"></p>
<h2 id="how-to-interpret-the-graph" class="localized-text"></h2>
<p id="how-to-interpret-the-graph-answer-1" class="localized-text"></p>
<p id="how-to-interpret-the-graph-answer-2" class="localized-text"></p>
<p id="how-to-interpret-the-graph-answer-3" class="localized-text"></p>
<ul>
<li id="how-to-interpret-the-graph-answer-3-yellow-nodes" class="localized-text"></li>
<li id="how-to-interpret-the-graph-answer-3-blue-nodes" class="localized-text"></li>
<li id="how-to-interpret-the-graph-answer-3-gray-nodes" class="localized-text"></li>
</ul>
<hr>
<p>
<i id="any-question-or-suggestion" class="localized-text"></i>
</p>
</div>
<!-- TODO reactive UI: if small screen: graph below explainer -->
<div id="nav-graph"></div>
<div id="controls">
<span id="begin-control-label" class="localized-text"></span>
<input id="begin-control" type="date" value="2021-04-01">
<span id="end-control-label" class="localized-text"></span>
<input id="end-control" type="date" value="2021-04-02">
<input id="render-control" type="button" class="btn localized-control">
<input id="anonymize-control" type="button" class="btn localized-control">
<input id="contribute-control" type="button" class="btn localized-control">
<span id="render-message" class="localized-text" hidden></span>
<span id="no-data-message" class="localized-text" hidden></span>
</div>
<div id="overlay" hidden>
<div id="modal">
<span id="modal-close-control" class="localized-text"></span>
<br>
<p id="modal-to-contribute" class="localized-text"></p>
<ol>
<li>
<p id="modal-to-contribute-step-1" class="localized-text"></p>
<textarea id="contribute-data" readonly rows="10" cols="40"></textarea>
<br>
<div id="modal-controls">
<input id="modal-copy-control" disabled type="button" class="btn localized-control">
<span id="modal-render-message" class="localized-text"></span>
<span id="modal-copy-message" class="localized-text" hidden></span>
</div>
</li>
<li>
<p id="modal-to-contribute-step-2" class="localized-text"></p>
<ul>
<li id="modal-to-contribute-step-2-windows" class="localized-text"></li>
<li id="modal-to-contribute-step-2-mac" class="localized-text"></li>
<li id="modal-to-contribute-step-2-linux" class="localized-text"></li>
</ul>
</li>
<li>
<p id="modal-to-contribute-step-3" class="localized-text"></p>
</li>
<li>
<p id="modal-to-contribute-step-4" class="localized-text"></p>
</li>
</ol>
</div>
</div>
<script type="text/javascript" src="controls.js"></script>
</body>
</html>