forked from ztjhz/BetterChatGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (53 loc) · 2.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" />
<meta property="og:image" content="https://bettergpt.chat/social.png" />
<meta name="twitter:image" content="https://bettergpt.chat/social.png" />
<meta
name="description"
content="Play and chat smarter with BetterChatGPT - an amazing open-source web app with a better UI for exploring OpenAI's ChatGPT API! "
/>
<meta
name="twitter:description"
content="Play and chat smarter with BetterChatGPT - an amazing open-source web app with a better UI for exploring OpenAI's ChatGPT API! "
/>
<meta name="twitter:title" content="Better ChatGPT" />
<meta name="twitter:card" content="summary_large_image" />
<title>Nexus ChatGPT</title>
<script>
// Function to get a cookie by name
function getCookie(name) {
const cookies = document.cookie.split(';').map(cookie => cookie.trim());
console.log('Cookies Array:', cookies); // Debugging line
for (let cookie of cookies) {
if (cookie.startsWith(name + '=')) {
return cookie.substring((name + '=').length);
}
}
return null;
}
function onTurnstileSuccess(token) {
console.log('Turnstile token:', token);
}
window.onload = function() {
console.log('All Cookies:', document.cookie);
const sessionCookie = getCookie('session_id');
console.log('Session Cookie:', sessionCookie);
if (!sessionCookie) {
// If not, redirect to the login page
window.location.href = 'https://www.nexusmind.tech?error=login';
}
};
</script>
</head>
<body>
<div id="root"></div>
<div id="modal-root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>