This commit is contained in:
Sharon Kennedy 2020-02-17 00:32:24 +01:00
parent b605854520
commit 9fa1aff7dd
3 changed files with 27 additions and 25 deletions

File diff suppressed because one or more lines are too long

View File

@ -4,24 +4,26 @@
<title>Embeddable Chatbox Demo</title> <title>Embeddable Chatbox Demo</title>
</head> </head>
<body> <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> <p style="font-family:sans-serif; padding: 3rem 5rem;">Look down!</p>
<script src="./widget.js"></script> <script src="./widget.js"></script>
<script> <script>
var theme = {
themeColor: "#008080",
lightColor: "#FFF8F0",
darkColor: "#22333B",
errorColor: "#FFFACD",
font: "'Assistant', 'Helvetica', sans-serif",
placement: "right"
};
EmbeddableWidget.mount({ 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", matrixServerUrl: "https://matrix.rhok.space",
roomName: "Support Chat", roomName: "Support Chat",
theme: theme
}); });
</script> </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> </body>
</html> </html>

File diff suppressed because one or more lines are too long