-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (27 loc) · 907 Bytes
/
Copy pathindex.html
File metadata and controls
29 lines (27 loc) · 907 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./plasmid.svg" id="favicon" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Plasmid Defense Network</title>
<script>
// Animated favicon using Web Worker
(function() {
const favicon = document.getElementById('favicon');
const basePath = document.baseURI.replace(/\/[^\/]*$/, '/');
const worker = new Worker(basePath + 'favicon-worker.js');
worker.postMessage({ type: 'init' });
worker.onmessage = function(e) {
if (e.data.type === 'updateFavicon') {
favicon.href = e.data.dataUrl;
}
};
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>