-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
31 lines (30 loc) · 859 Bytes
/
example.html
File metadata and controls
31 lines (30 loc) · 859 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Fleck Partner SDK Example</title>
<style>
html, body { height: 100%; margin: 0; }
#fleck-container { height: 100%; }
</style>
</head>
<body>
<div id="fleck-container"></div>
<script type="module" src="./dist/fleck_sdk.mjs"></script>
<script type="module">
(async () => {
const container = document.getElementById('fleck-container');
const fleck = await fleckSdk.init({
container,
src: 'https://fleck.unlockit.io'
});
// Replace with a JWT injected by your backend.
const jwt = window.FLECK_JWT;
if (jwt) {
fleck.auth({ jwt });
}
})();
</script>
</body>
</html>