Skip to content

Conversation

@sbenemerito
Copy link
Contributor

@sbenemerito sbenemerito commented Dec 19, 2017

Chat widget

  • Added assets for chat widget
  • Added django-cors-headers
  • The widget can now be used by other sites by adding this to the end of their <body> element
<script type="text/javascript" src="http://localhost:8000/static/js/widget.js" data-bot="13" data-message="What's up?"></script>

Notes:

  • http://localhost:8000/ will be the site's domain once deployed
  • data-bot contains the bot ID of the bot to be used (required)
  • data-message contains the bot's starting message (optional, default='Hello')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant