Skip to content

Instantly share code, notes, and snippets.

@pdaire
Last active August 29, 2015 14:24
Show Gist options
  • Save pdaire/957a5feb9404727a4fe5 to your computer and use it in GitHub Desktop.
Save pdaire/957a5feb9404727a4fe5 to your computer and use it in GitHub Desktop.
widget gsm
<html>
<head>
<title>Example of Widget Installation</title>
<script type="application/javascript" src="//widget.letsta.lk/beta/widget/script/76.js"></script>
</head>
<body bgcolor=white>
<img src="http://letsta.lk/images/logo-letstalk-cuadrado.png">
<h1>Example of Widget Installation</h1>
<p>Welcome to the widget example page. You can check the code of this page <a href="https://gist.githubusercontent.com/pdaire/957a5feb9404727a4fe5/raw/e81fc294f01a19203d3487dcd99e03809103794f/index.html">here.</a> </p>
<p>Pay special attention to the 4th line of the code.</p>
<script>
var $LT = window.$LT;
if ('function' === typeof $LT) {
$LT(function(messenger){
messenger.settings({
title: "Chat GSM Chile",
locale: "es",
style: {
messages: {
backgroundImage: 'url("/assets/confectionary.png")'
}
},
theme: {
palette: {
primary1Color: '#00549f', // title and secondary buttons
accent3Color: '#4986fc', // operators name background
primary3Color: '#a4c3fe', // visitor’s messages background
accent1Color: '#3f51b5'
}
}
});
});
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment