-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathindex.html
115 lines (110 loc) · 2.96 KB
/
index.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="/appflowy.ico"
/>
<link
rel="canonical"
href="https://appflowy.com"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>AppFlowy</title>
<meta
name="description"
content="AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data"
/>
<meta
property="og:title"
content="AppFlowy"
/>
<meta
property="og:site_name"
content="AppFlowy"
>
<meta
property="og:description"
content="AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data"
/>
<meta
property="og:image"
content="/og-image.png"
/>
<meta
property="og:url"
content="https://appflowy.com"
/>
<meta
name="twitter:card"
content="summary_large_image"
/>
<meta
name="twitter:title"
content="AppFlowy"
/>
<meta
name="twitter:description"
content="AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data"
/>
<meta
name="twitter:image"
content="/og-image.png"
/>
<meta
name="twitter:site"
content="@appflowy"
/>
<meta
name="twitter:creator"
content="@appflowy"
/>
<link
href="https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap"
rel="stylesheet"
>
<%- cdnLinks %>
</head>
<body id="body">
<div id="root"></div>
<script
type="module"
src="/src/main.tsx"
></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const userAgent = window.navigator.userAgent.toLowerCase();
const body = document.body;
const isWin = userAgent.indexOf('win') > -1;
const isMac = userAgent.indexOf('mac') > -1;
const isLinux = userAgent.indexOf('linux') > -1;
const isFirefox = userAgent.indexOf('firefox') > -1;
const isChrome = userAgent.indexOf('chrome') > -1;
const isSafari = userAgent.indexOf('safari') > -1;
if (isWin) {
body.setAttribute('data-os', 'windows');
} else if (isMac) {
body.setAttribute('data-os', 'mac');
} else if (isLinux) {
body.setAttribute('data-os', 'linux');
} else {
body.setAttribute('data-os', 'unknown');
}
if (isFirefox) {
body.setAttribute('data-browser', 'firefox');
} else if (isChrome) {
body.setAttribute('data-browser', 'chrome');
} else if (isSafari) {
body.setAttribute('data-browser', 'safari');
} else {
body.setAttribute('data-browser', 'unknown');
}
});
</script>
</body>
</html>