-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (72 loc) · 2.59 KB
/
index.html
File metadata and controls
78 lines (72 loc) · 2.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
id="favicon"
rel="icon"
type="image/svg+xml"
href="/lightning-favicon.svg"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="ZScore - Analyze text complexity, calculate information entropy, word frequency and lexical diversity metrics with this powerful linguistic analysis tool."
/>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://zscore-ai.netlify.app/" />
<meta property="og:title" content="ZScore - Shannon Entropy Calculator" />
<meta
property="og:description"
content="Analyze text complexity, calculate information entropy, word frequency and lexical diversity metrics with this powerful linguistic analysis tool."
/>
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://zscore-ai.netlify.app/" />
<meta
property="twitter:title"
content="ZScore - Shannon Entropy Calculator"
/>
<meta
property="twitter:description"
content="Analyze text complexity, calculate information entropy, word frequency and lexical diversity metrics with this powerful linguistic analysis tool."
/>
<title>ZScore</title>
<script>
// Load the favicon from localStorage if available
const storedFaviconType =
localStorage.getItem("zscore-favicon-type") || "default";
const favicon = document.getElementById("favicon");
switch (storedFaviconType) {
case "alt":
favicon.href = "/lightning-alt-favicon.svg";
break;
case "filled":
favicon.href = "/lightning-filled-favicon.svg";
break;
default:
favicon.href = "/lightning-favicon.svg";
}
// Add window event to allow updating favicon from React components
window.updateFavicon = function (type) {
const favicon = document.getElementById("favicon");
localStorage.setItem("zscore-favicon-type", type);
switch (type) {
case "alt":
favicon.href = "/lightning-alt-favicon.svg";
break;
case "filled":
favicon.href = "/lightning-filled-favicon.svg";
break;
default:
favicon.href = "/lightning-favicon.svg";
}
};
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>