-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
35 lines (35 loc) · 1.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WWDC24.playground</title>
<meta name="description" content="Made with love - SwiftGG">
<link rel="icon" href="../framerusercontent.com/sites/icons/default-favicon.v3.png">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:title" content="WWDC24.playground">
<meta property="og:description" content="Made with love - SwiftGG">
<meta property="og:image" content="https://i.typlog.com/xrealityzonecn/8290698787_891035.png" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="WWDC24.playground">
<meta name="twitter:description" content="Made with love - SwiftGG">
<meta name="twitter:image" content="https://i.typlog.com/xrealityzonecn/8290698787_891035.png" />
<script>
function redirectBasedOnLanguage() {
// 检查用户语言是否包含中文
if (navigator.language.includes('zh')) {
// 如果是中文,跳转到中文页面
window.location.href = '/cn/';
} else {
// 否则,跳转到英文页面
window.location.href = '/en/';
}
}
</script>
</head>
<body onload="redirectBasedOnLanguage();">
<p>WWDC24.playground</p>
<p>Redirecting based on your language preference...</p>
</body>
</html>