-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo3.html
31 lines (31 loc) · 995 Bytes
/
demo3.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport">
<title>Document</title>
</head>
<body>
<script src='https://phoenix.hellonext.co/embed.js'></script>
<div data-hellonext></div>
<script>
const getQueryStringParams = () => {
const query = new URLSearchParams(window.location.search).toString();
return query ? (/^[?#]/.test(query) ? query.slice(1) : query).split('&').reduce((params, param) => {
let [key, value] = param.split('=');
params[key] = value ? decodeURIComponent(value.replace(/\+/g, ' ')) : '';
return params;
}, {}) : {}
};
</script>
<script>
let params = getQueryStringParams();
hellonext.init({
embedURL: 'https://phoenix.hellonext.co/embed/b/Private-Board',
ssoToken: params.token,
height: '100%',
width: '100%'
});
</script>
</body>
</html>