-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
329 lines (291 loc) · 10.2 KB
/
index.html
File metadata and controls
329 lines (291 loc) · 10.2 KB
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!--
CAUTION:
This file and its static contents are optimized in production.
Test all changes post-optimization before deployment.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>AnonSecLab - Privacy Tools</title>
<meta name="description"
content="Discover AnonSecLab Privacy Tools, the privacy tool to maximize your privacy and security on Windows, macOS, and Linux. Easily use best practices to prevent tracking and make your life secure and private." />
<meta name="robots" content="index,follow" />
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<!-- Improve initial load time for critical assets by preloading -->
<link rel="preload" href="/icon-splash.png" as="image" type="image/png">
<!--
Security meta tags based on OWASP recommendations.
See https://owasp.org/www-project-secure-headers/ci/headers_add.json for all recommended policies.
Exceptions:
- [+] `style-src 'unsafe-inline'` : Required for Vue.
- [+] `img-src data:` : Required for Ace (code editor) CSS.
- [+] `script-src: 'unsafe-inline'` : Required for Vite legacy (@vitejs/plugin-legacy) for production builds.
- [-] `upgrade-insecure-requests` : Required for development on macOS Safari or Safari will block requests on `http://localhost`.
-->
<meta http-equiv="Content-Security-Policy" content="
default-src 'self';
script-src 'self' 'unsafe-inline';
style-src 'self' 'unsafe-inline';
img-src 'self' data:;
form-action 'self';
object-src 'none';
block-all-mixed-content;
">
<meta name="referrer" content="no-referrer">
</head>
<body>
<noscript>
<style>
#javascriptDisabled {
background: #eceef1;
margin: 5rem auto;
max-width: 800px;
padding: 3rem;
border: 1px solid#333a45;
font-size: 18px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}
</style>
<div id="javascriptDisabled">
<h1>Problem loading page</h1>
<p>
The page does not work without JavaScript enabled.
Please enable it to use AnonSecLab Privacy Tools.
Don't worry; AnonSecLab Privacy Tools is secure, transparent, and open-source.
</p>
</div>
</noscript>
<div id="app">
</div>
<aside id="splash-screen" class="
splash-screen
splash-screen--js-only
" role="status" aria-live="polite" aria-label="Application loading screen"
aria-description="Initial loading screen while AnonSecLab Privacy Tools prepares its options. This typically takes a few seconds.">
<!-- This content will be removed once the application loads -->
<style>
:root {
--splash-color-text: #66CCFF;
--splash-color-background: #0D0D0D;
--splash-color-spinner-filled: #66CCFF;
--splash-color-spinner-empty: rgba(102, 204, 255, 0.2);
--splash-size-logo: min(200px, calc(100vw/3));
--splash-size-spinner: calc(var(--splash-size-logo) * 1.75);
--splash-font-size-large: 21px;
--splash-font-size-normal: 17px;
--splash-spacing-absolute-large: 15px;
--splash-font-family:
/* System font stack */
system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, Helvetica, sans-serif;
--splash-animation-duration-spin: 2s;
--splash-animation-duration-spin-complete: 1s;
--splash-animation-duration-logo-breathe: 3s;
--splash-animation-duration-logo-breathe-last: 1s;
--splash-animation-duration-all-fadeout: 1.5s;
--splash-animation-duration-text-fadeout: 0.4s;
--splash-animation-delay-long-load-message: 15s;
}
.splash-screen,
.splash-screen * {
box-sizing: border-box;
/* Using border-box ensures padding doesn't affect final dimensions, preventing layout shifts */
}
.splash-screen {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
padding: var(--splash-spacing-absolute-large);
/* Adds padding to prevent content from touching screen edges on small mobile devices */
background: var(--splash-color-background);
flex-direction: column;
align-items: center;
gap: var(--splash-spacing-absolute-large);
z-index: 9999;
/* High z-index ensures splash screen remains on top of all application elements during loading phase */
}
.splash-screen--fading {
animation: splash-animation-fade-out var(--splash-animation-duration-all-fadeout) ease-out forwards;
pointer-events: none;
}
@keyframes splash-animation-fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.splash-screen__spinner-container {
position: relative;
width: var(--splash-size-spinner);
height: var(--splash-size-spinner);
display: flex;
justify-content: center;
align-items: center;
}
.splash-screen__spinner {
position: absolute;
border: 3px solid var(--splash-color-spinner-empty);
border-radius: 50%;
border-top: 3px solid var(--splash-color-spinner-filled);
animation: splash-animation-spin var(--splash-animation-duration-spin) linear infinite;
width: 100%;
height: 100%;
}
@keyframes splash-animation-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.splash-screen--fading .splash-screen__spinner {
animation: splash-animation-spin-complete var(--splash-animation-duration-spin-complete) forwards ease-out;
}
@keyframes splash-animation-spin-complete {
to {
border-color: var(--splash-color-spinner-filled);
transform: rotate(360deg) scale(1.05);
}
}
.splash-screen__text {
color: var(--splash-color-text);
font-family: var(--splash-font-family);
/* Helps avoid layout shift */
margin: 0 !important;
/* Helps avoid layout shift */
padding: 0 !important;
/* Helps avoid layout shift */
line-height: 1.5;
/* Helps avoid layout shift */
}
.splash-screen--fading .splash-screen__text {
opacity: 0;
transition: opacity var(--splash-animation-duration-text-fadeout) ease;
}
.splash-screen__text--large {
font-size: var(--splash-font-size-large);
}
.splash-screen__text--normal {
font-size: var(--splash-font-size-normal);
}
.splash-screen__text--delayed {
animation: splash-animation-show 0s var(--splash-animation-delay-long-load-message) forwards;
visibility: hidden;
}
.splash-screen--fading .splash-screen__text--delayed {
animation: none;
/* Cancel the "show" animation */
visibility: hidden !important;
/* Keep it hidden */
}
@keyframes splash-animation-show {
to {
visibility: visible;
}
}
.splash-screen__logo {
width: var(--splash-size-logo);
height: var(--splash-size-logo);
object-fit: contain;
animation: splash-animation-breathe var(--splash-animation-duration-logo-breathe) ease-in-out infinite;
}
@keyframes splash-animation-breathe {
0% {
transform: scale(0.95);
opacity: 0.7;
}
50% {
transform: scale(1.05);
opacity: 1;
}
100% {
transform: scale(0.95);
opacity: 0.7;
}
}
.splash-screen--fading .splash-screen__logo {
animation: splash-animation-logo-complete var(--splash-animation-duration-logo-breathe-last) forwards ease-out;
}
@keyframes splash-animation-logo-complete {
to {
transform: scale(1.3);
opacity: 1;
}
}
.splash-screen--js-only {
display: none !important;
}
@keyframes splash-animation-fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style>
<div class="splash-screen__spinner-container" aria-hidden="true">
<div class="splash-screen__spinner"></div>
<img src="/icon-splash.png" alt="AnonSecLab logo" class="splash-screen__logo" />
</div>
<p class="
splash-screen__text
splash-screen__text--large
">
Preparing your privacy options
</p>
<p class="
splash-screen__text
splash-screen__text--normal
splash-screen__text--delayed
">
Taking too long? Please let us know.
</p>
</div>
<script>
const splashScreenDom = {
id: 'splash-screen',
classes: {
javascriptOnly: 'splash-screen--js-only',
fading: 'splash-screen--fading'
},
events: {
appReady: 'app-ready'
},
animations: {
fadeOut: 'splash-animation-fade-out',
},
};
// Display content only when JavaScript is enabled
Array
.from(document.getElementsByClassName(splashScreenDom.classes.javascriptOnly))
.forEach((element) => {
element.classList.remove(splashScreenDom.classes.javascriptOnly);
});
// Remove splash screen when app is ready
document.addEventListener(splashScreenDom.events.appReady, () => {
const splash = document.getElementById(splashScreenDom.id);
splash.classList.add(splashScreenDom.classes.fading);
splash.addEventListener('animationend', (event) => {
if (event.animationName === splashScreenDom.animations.fadeOut) {
splash.remove();
}
});
});
</script>
</aside>
<script type="module" src="/main.ts"></script>
</body>
</html>