Skip to content

Instantly share code, notes, and snippets.

@grantmiller
Created August 10, 2012 00:45
Show Gist options
  • Save grantmiller/3309683 to your computer and use it in GitHub Desktop.
Save grantmiller/3309683 to your computer and use it in GitHub Desktop.
LP Mobile Advanced Integration Options
<script type="text/javascript" src="https://d3tpuxked45kzt.cloudfront.net/lp_lib/liveperson.js"></script>
<script type="text/javascript">
var _lpcfg = {
triggerSelector : '.hlpBtn', // Replace with a selector to your help button(s)
extras : function() {
var extras = {'varName1': 'varValue1',
'varName2': 'varValue2'};
return extras;
},
onChatDisabled : function(els) {
for(var i = 0; i < els.length; i++) {
els[i].style.opacity = .5;
}
}
};
new LIVEPERSON('##YOUR MOBILE SITE ID##', _lpcfg);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment