Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pdaire
Created July 30, 2019 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pdaire/7b2df7779e76f7ac36f60a7cfefbfb61 to your computer and use it in GitHub Desktop.
Save pdaire/7b2df7779e76f7ac36f60a7cfefbfb61 to your computer and use it in GitHub Desktop.
bci demo tink
<html>
<head></head>
<body>
<h1>Widget Let's Talk</h1>
<script type='text/javascript' async defer>
(function(l,t){if(l.$LT)return;function ls(){a=!1;s=t.createElement('script');s.type='text/javascript';s.src='http://bci.letsta.lk/widget.js';s.async=!0;s.defer=!0;k=document.getElementsByTagName('script')[0];k.parentNode.insertBefore(s,k)};var lt=l.$LT=function(callback){if(typeof callback==='function'){mock.initCallBack=callback}};lt.enqueue=function(){mock.stack.push(arguments);mock.times.push(+new Date)};lt.settings=function(settings){lt.enqueue('userSettings',settings)};lt.chatMetadata=function(getMetadata){if(typeof getMetadata==='function'){lt.enqueue('metadata',getMetadata())}};lt.setByName=function(name){mock.name=name};var mock=lt._={name:!1,initCallBack:!1,stack:[],times:[+new Date],};if(t.body){ls()}else{if(l.attachEvent){l.attachEvent('onload',ls)}else{l.addEventListener('load',ls,!1)}}})(window,document);window.$LT(function(messenger){messenger.setByName('widget-test');});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment