Created
April 24, 2017 20:34
-
-
Save kidGodzilla/6e37c9aaf6581678b5859cbc9b648cd4 to your computer and use it in GitHub Desktop.
Refactored small.chat embed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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