Skip to content

Instantly share code, notes, and snippets.

@grantmiller
Last active December 11, 2015 14:58
Show Gist options
  • Select an option

  • Save grantmiller/4617868 to your computer and use it in GitHub Desktop.

Select an option

Save grantmiller/4617868 to your computer and use it in GitHub Desktop.
<!-- NEW LIVE PERSON CODE -->
<script type="text/javascript">
/* LP Mobile JS Configuration */
var _LP_CFG_ = {
app_id : "f2c05834",
options : {
// All configuration options defined in here
extras : function() { // A static dictionary or a function that returns a dictionary of custom variables
var extras = {'keyCode': '000016726'};
return extras;
},
//chatDisabled: true,
onChatDisabled : function(els) {
$('.hlpBtn').css('display', 'block');
$('.hlpBtn').css('margin', '0 auto 0 auto');
},
onChatEnabled : function(els) {
$('.hlpBtn').css('display', 'none');
}
}
};
/* End of Configuration */
/* LP Mobile JS include */
(function(){var a=_LP_CFG_.lpjsid="lpjs-"+(new Date).getTime(),b=document.createElement("script"),s=document.getElementsByTagName("script")[0];b.id=a;b.type="text/javascript";b.async=true;b.src="https://d3tpuxked45kzt.cloudfront.net/lp_lib/liveperson-mobile.js";s.parentNode.insertBefore(b,s)})();
/* End of Include */
</script>
<!-- /NEW LIVE PERSON CODE -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment