-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
public.html
89 lines (79 loc) · 2.92 KB
/
public.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon.png?v=1">
<title>Twitchat</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0' name='viewport' />
<meta name="description" content="Full featured Twitch chat alternative that tries to fill in gaps of the official Twitch chat" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta property="og:url" content="https://twitchat.fr" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Twitchat" />
<meta property="og:description" content="Full featured Twitch chat alternative that tries to fill in gaps of the official Twitch chat" />
<meta property="og:image" content="https://twitchat.fr/share.png?v=1" />
<meta property="og:image" content="https://twitchat.fr/share_small.png?v=1" />
<meta property="og:image:type" content="image/png" />
<meta property="og:locale" content="fr_FR" />
<meta property="og:locale:alternate" content="en_GB" />
<meta name="revisit-after" content="30 days">
<meta name="robots" content="index, follow">
<link rel="author" href="https://www.durss.ninja" />
<link rel="canonical" href="https://twitchat.fr/">
<link rel="manifest" href="/manifest.json">
<style>
body {
background-color: transparent;
padding: 0;
margin: 0;
min-width: 100%;
min-height: 100vh;
}
body.theme {
background-color: #18181b;
/* background: linear-gradient(180deg, #07876966 0%, #07876900 100%); */
background-size: 100% 100vh;
background-repeat: no-repeat;
background-position: top center;
}
body.theme.light {
background-color: #ffffff;
}
</style>
</head>
<body class="theme">
<script type="text/javascript">
try {
let theme = localStorage.getItem("twitchat_theme");
//Apply theme from storage
if(theme) {
document.body.classList.add(theme === "light"? "light" : "dark");
}else
//Apply theme from browser pref
if(matchMedia("(prefers-color-scheme: light)").matches){
document.body.classList.add("light");
}else{
document.body.classList.add("dark");
}
}catch(error){
console.log(error);
}
function setInitMessage(message) {
}
</script>
<noscript>
<strong>We're sorry but Twitchat cannot work without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<div id="error" style="display: none;">
<div>Twitchat loading failed :(</div>
<div>Try refreshing and cleaning up your cache!</div>
</div>
<script type="module" src="/src_front/public.ts"></script>
</body>
</html>