-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (66 loc) · 2.23 KB
/
index.html
File metadata and controls
66 lines (66 loc) · 2.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WellMate UI Component Showcase</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: #121212;
}
.webgl-error {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
color: #e0e0e0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
text-align: center;
padding: 20px;
box-sizing: border-box;
}
.webgl-error h1 {
color: #ff5252;
margin-bottom: 16px;
}
.webgl-error p {
max-width: 600px;
line-height: 1.6;
margin-bottom: 12px;
}
.webgl-error code {
background: #2d2d2d;
padding: 2px 8px;
border-radius: 4px;
font-size: 14px;
}
</style>
</head>
<body>
<script>
(function() {
var canvas = document.createElement('canvas');
var gl = canvas.getContext('webgl2') || canvas.getContext('webgl');
if (!gl) {
document.body.innerHTML = '<div class="webgl-error">' +
'<h1>WebGL Required</h1>' +
'<p>This application requires WebGL to render graphics, but WebGL is not available in your browser.</p>' +
'<p>If you\'re using <strong>LibreWolf</strong> or a privacy-focused browser, WebGL may be disabled for fingerprint protection.</p>' +
'<p>To enable WebGL in LibreWolf:</p>' +
'<p>1. Open <code>about:config</code></p>' +
'<p>2. Search for <code>webgl.disabled</code></p>' +
'<p>3. Set it to <code>false</code></p>' +
'</div>';
throw new Error('WebGL not available');
}
})();
</script>
<script src="wellmate-showcase.js"></script>
</body>
</html>