-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
26 lines (24 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/image-activate-account.png" />
<link rel="stylesheet" type="text/css" media="all" href="https://use.typekit.net/vtt7ckl.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>xActivate</title>
<!-- <script data-consolejs-channel="400a127c-958f-36ba-9ef7-44e6948f1b5b" src="https://remotejs.com/agent/agent.js"></script> -->
</head>
<body class="h-full">
<div id="root" class="font-sans flex justify-center h-full"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
<script>
const head = document.getElementsByTagName('head')[0];
const link = document.createElement('link');
const currentUrl = window.location.href;
const searchParams = new URL(currentUrl).searchParams;
const xAppStyle = searchParams.get('xAppStyle') || 'light';
const body = document.querySelector('body');
body?.classList.add(xAppStyle.toLowerCase());
</script>