Skip to content

Instantly share code, notes, and snippets.

@kidGodzilla
Created April 24, 2017 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kidGodzilla/6e37c9aaf6581678b5859cbc9b648cd4 to your computer and use it in GitHub Desktop.
Save kidGodzilla/6e37c9aaf6581678b5859cbc9b648cd4 to your computer and use it in GitHub Desktop.
Refactored small.chat embed
<script>
(function() {
window.Smallchat = {
config: {
"slackTeamId": "T4Z8BNW22",
"scChannelId": "-Ki28NFzPezMcBRn19Da",
"slackChannelId": "G51S6B4J3",
"uid": "-Ki28DCbmqvLWP7mK_93"
},
appearance: {
"brand_color": "#5a67bf",
"contact_dismissible": false,
"contact_enabled": true,
"contact_prompt": "Add your name and email to make sure you see our reply:",
"hide_logo": true,
"hide_team_icon": true,
"launcher_prompt": "Send a message",
"launcher_type": "button",
"messenger_blank": "Send a message, and we’ll reply as soon as we can.",
"messenger_entry": "Send a message...",
"messenger_prompt": "How can we help you?",
"offline_greeting": "We’re offline right now but typically respond in about an hr.",
"text_color": "#FFFFFF"
},
};
// Don't wait for window.load
var styles = document.createElement('link');
styles.rel = 'stylesheet';
styles.href = 'https://static.small.chat/messenger.css';
document.head.appendChild(styles);
var script = document.createElement('script');
script.async = true;
script.src = 'https://static.small.chat/messenger.js';
document.body.appendChild(script);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment