forked from univeous/Pixel-Extractor
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·64 lines (63 loc) · 1.88 KB
/
index.html
File metadata and controls
executable file
·64 lines (63 loc) · 1.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#252526">
<!-- SEO_PLACEHOLDER -->
<link rel="manifest" href="./manifest.json">
<link rel="icon" type="image/svg+xml" href="./icon.svg">
<link rel="apple-touch-icon" href="./icon-192.png">
<script src="https://cdn.tailwindcss.com"></script>
<style>
/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #1e1e1e;
}
::-webkit-scrollbar-thumb {
background: #3e3e42;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Pixelated rendering for all canvases */
canvas {
image-rendering: pixelated;
}
</style>
<script type="importmap">
{
"imports": {
"react-dom/": "https://esm.sh/react-dom@^19.2.3/",
"react/": "https://esm.sh/react@^19.2.3/",
"react": "https://esm.sh/react@^19.2.3"
}
}
</script>
</head>
<body class="bg-[#1e1e1e] text-[#d4d4d4] overflow-hidden">
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
<script>
// Register Service Worker for PWA
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
// Get the base path from current location
const basePath = new URL('./', window.location.href).pathname;
navigator.serviceWorker.register(basePath + 'sw.js', { scope: basePath })
.then(reg => {
console.log('[PWA] Service Worker registered:', reg.scope);
})
.catch(err => {
console.warn('[PWA] Service Worker registration failed:', err);
});
});
}
</script>
</body>
</html>