forked from Github/ocrcc-chatbox
309bfd6a5b
* adding optional parameters * updating bodyText mount prop to default * updating snapshot for new props * adding parent element for mounting * adding null default for parentElement * adding dist to gitignore * adding test case for mounting to element * adding div to document in test * unmount after test * updating test to pass * updating eslint to handle certain rules as warning and fix others
17 lines
309 B
HTML
17 lines
309 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Embeddable Widget</title>
|
|
</head>
|
|
<body>
|
|
<p>Note: Widget rendered in bottom-right of this screen.</p>
|
|
|
|
<script src="./widget.js"></script>
|
|
<script>
|
|
EmbeddableWidget.mount({
|
|
bodyText: 'Body'
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|