2018-05-29 02:49:38 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2020-02-01 05:30:58 +00:00
|
|
|
<title>Embeddable Chatbox Demo</title>
|
2020-02-17 17:22:54 +00:00
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1">
|
2018-05-29 02:49:38 +00:00
|
|
|
</head>
|
2020-02-26 05:12:05 +00:00
|
|
|
<body style="height: 100vh;">
|
2020-02-16 23:31:50 +00:00
|
|
|
<p style="font-family:sans-serif; padding: 3rem 5rem;">
|
|
|
|
<a id="bookmarklet">Bookmarklet (drag it to your bookmarks bar)</a>
|
|
|
|
</p>
|
2020-02-01 05:30:58 +00:00
|
|
|
<p style="font-family:sans-serif; padding: 3rem 5rem;">Look down!</p>
|
|
|
|
|
2020-02-24 04:12:47 +00:00
|
|
|
<script src="./chatbox.js"></script>
|
2020-02-01 05:30:58 +00:00
|
|
|
<script>
|
2020-03-05 05:06:24 +00:00
|
|
|
var config = {
|
2020-05-28 02:22:16 +00:00
|
|
|
matrixServerUrl: 'https://matrix.rhok.space',
|
|
|
|
botId: '@help-bot:rhok.space',
|
2020-03-05 05:06:24 +00:00
|
|
|
roomName: 'Support Chat',
|
|
|
|
termsUrl: 'https://tosdr.org/',
|
2020-05-06 23:46:59 +00:00
|
|
|
introMessage: "This chat application does not collect any of your personal data or any data from your use of this service.",
|
2020-03-12 17:08:57 +00:00
|
|
|
agreementMessage: 'Do you want to continue?',
|
2020-03-05 05:06:24 +00:00
|
|
|
confirmationMessage: 'Waiting for a facilitator to join the chat...',
|
2020-03-12 17:08:57 +00:00
|
|
|
exitMessage: 'The chat is closed. You may close this window.',
|
2020-03-05 05:06:24 +00:00
|
|
|
chatUnavailableMessage: 'The chat service is not available right now. Please try again later.',
|
|
|
|
anonymousDisplayName: 'Anonymous',
|
2020-06-26 01:56:55 +00:00
|
|
|
position: 'bottom right',
|
|
|
|
size: 'large',
|
2020-06-26 02:20:54 +00:00
|
|
|
maxWaitTime: 6000*3,
|
2020-04-30 14:12:36 +00:00
|
|
|
}
|
2020-02-05 18:42:34 +00:00
|
|
|
|
2020-03-05 05:06:24 +00:00
|
|
|
EmbeddableChatbox.mount(config);
|
2020-02-01 05:30:58 +00:00
|
|
|
</script>
|
2020-02-16 23:31:50 +00:00
|
|
|
|
|
|
|
<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>
|
2018-05-29 02:49:38 +00:00
|
|
|
</body>
|
|
|
|
</html>
|