ocrcc-chatbox/public/index.html

22 lines
902 B
HTML
Raw Normal View History

2018-05-29 02:49:38 +00:00
<!DOCTYPE html>
<html>
<head>
2018-06-03 18:56:18 +00:00
<title>Embeddable Widget documentation</title>
2018-05-29 02:49:38 +00:00
</head>
<body>
2018-06-03 18:56:18 +00:00
<h1>Embeddable Widget documentation</h1>
<ul>
<li><a href="./blank.html">Widget on a blank page</a></li>
<li><a href="./widget.js">Latest version of the widget</a></li>
2018-06-03 20:01:32 +00:00
<li><a id="bookmarklet">Bookmarklet (Bookmark it for easy use)</a></li>
<li><a href="./bookmarklet.js">Bookmarklet Code</a></li>
<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));
console.log("DONE");
</script>
2018-06-03 18:56:18 +00:00
</ul>
2018-05-29 02:49:38 +00:00
</body>
</html>