A Pen by Joel Sutherland
A Pen by Joel Sutherland on CodePen.
(function () { | |
function loadZendeskChat(callback) { | |
var zdscript = document.createElement('script'); | |
zdscript.setAttribute('id','ze-snippet'); | |
zdscript.src = 'https://static.zdassets.com/ekr/snippet.js?key=XXX-XXX-XXX-XXX'; | |
(document.getElementsByTagName('body')[0]).appendChild(zdscript); | |
window.zdonload = setInterval(function(){ | |
if(typeof zE !== "undefined" && typeof zE.activate !== "undefined") { |
A Pen by Joel Sutherland on CodePen.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<script type="text/javascript"> | |
// *** Replace square bracketed placeholders with values provided to you in your implementation documentation *** | |
bN_cfg = { | |
// The "h" parameter whitelists this hostname for beacon initialization. |