-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (43 loc) · 1.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Widget Testing HTML</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
<style>
html,
body {
height: 100vh;
width: 100vw;
background-color: wheat;
border: 1px solid black;
}
</style>
</head>
<body class="d-flex flex-column align-items-start h-100 w-100">
<button class="pjuge btn btn-sm btn-light" id="widgetID">Widget</button>
<!-- <script src="https://widgets.hellonext.co/HNWidget.js"></script> -->
<!-- <script src="https://royalenfield.hellonext.co/HNWidget.js"></script> -->
<script src="https://wbvj0xdxxqi-royalenfield.hellonext.co/widget.js"></script>
<script>
const widget = HNWidget.init({
title: "Single Board Widget",
token: "XaJDDFuooEZYkZbRSO-iSg",
// jwtToken: "JWT TOKEN CREATED WITH SSO KEY", // Optional: This token allows the widget to uniquely identify your user. Without the token, the user will have to enter his email to submit a post.
selector: "#widgetID", // Optional: Widget will open up when this element is clicked
placement: "right", // Optional: Placement of the element when selector is used. It can only be "left" or "right".
showOnlySubmission: false, // Optional: Toggle for showing only submission form
bucketId: "6172", // Optional: This will render only selected bucket in the widget
});
// To open widget programaticallty
// widget.open();
// To open widget programaticallty
// widget.close();
</script>
</script>
</body>
</html>