Created
August 10, 2012 00:45
-
-
Save grantmiller/3309683 to your computer and use it in GitHub Desktop.
LP Mobile Advanced Integration Options
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 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