ocrcc-chatbox/public/index.html

30 lines
1.1 KiB
HTML
Raw Permalink Normal View History

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>
<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>
var config = {
settingsEndpoint: 'https://safesupport-admin.herokuapp.com/api/get-settings',
matrixServerUrl: 'https://matrix.safesupport.chat'
}
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>