mirror of
https://github.com/Safe-Support-Chat/ocrcc-chatbox
synced 2024-11-01 00:55:26 +00:00
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Embeddable Chatbox Demo</title>
|
|
</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="./widget.js"></script>
|
|
<script>
|
|
|
|
EmbeddableWidget.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>
|