mirror of
https://github.com/nomadic-labs/safesupport-chatbox
synced 2024-12-25 02:21:40 +00:00
31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Embeddable Chatbox Demo</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1">
|
|
</head>
|
|
<body>
|
|
<p style="font-family:sans-serif; padding: 3rem 5rem;">
|
|
<a id="bookmarklet">Bookmarklet (drag it to your bookmarks bar)</a>
|
|
</p>
|
|
<p style="font-family:sans-serif; padding: 3rem 5rem;">Look down!</p>
|
|
|
|
<script src="./chatbox.js"></script>
|
|
<script>
|
|
|
|
EmbeddableChatbox.mount({
|
|
termsUrl: "https://tosdr.org/",
|
|
privacyStatement: "This chat application does not collect any of your personal data or any data from your use of this service.",
|
|
matrixServerUrl: "https://matrix.rhok.space",
|
|
roomName: "Support Chat",
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
var bookmarklet = "var s= document.createElement('script'); s.setAttribute('src', '"+window.location.href+"bookmarklet.js'); s.setAttribute('crossorigin', 'anonymous'); document.body.appendChild(s);"
|
|
bookmarklet = '(function(){'+ bookmarklet +'})();'
|
|
document.querySelector('a#bookmarklet').setAttribute("href", "javascript:" + encodeURIComponent(bookmarklet));
|
|
</script>
|
|
</body>
|
|
</html>
|