Files
HOA_Financial_Platform/frontend/index.html

47 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HOA LedgerIQ</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
(function(d,t) {
var BASE_URL="https://chat.hoaledgeriq.com";
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js";
g.async=true;
s.parentNode.insertBefore(g,s);
g.onload=function(){
window.chatwootSDK.run({
websiteToken:'K6VXvTtKXvaCMvre4yK85SPb',
baseUrl:BASE_URL
})
}
})(document,"script");
</script>
<script>
window.addEventListener('chatwoot:ready', function () {
// 1. Identify the user (use your real variables/server-side values)
window.$chatwoot.setUser("{{ current_user.id }}", { // or just a string like "user-123"
identifier: "{{ current_user.id }}",
name: "{{ current_user.name }}",
email: "{{ current_user.email }}",
// identifier_hash: "your-hmac-hash-if-using-verification",
});
// 2. Send current URL + extras
window.$chatwoot.setCustomAttributes({
current_page_url: window.location.href,
// e.g. user_plan: "premium",
// last_action: "viewed_pricing"
});
});
</script>
</body>
</html>