Skip to content

Instantly share code, notes, and snippets.

@phmLabs
Last active September 10, 2016 17:31
Show Gist options
  • Save phmLabs/bc1407e74383409c7d70db1619d4474c to your computer and use it in GitHub Desktop.
Save phmLabs/bc1407e74383409c7d70db1619d4474c to your computer and use it in GitHub Desktop.
<!-- BEGIN JIVOSITE CODE {literal} -->
<script type='text/javascript'>
(function () {
var widget_id = 'x4WkTczrNQ';
var d = document;
var w = window;
function l() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = '//code.jivosite.com/script/widget/' + widget_id;
var ss = document.getElementsByTagName('script')[0];
ss.parentNode.insertBefore(s, ss);
}
if (d.readyState == 'complete') {
l();
} else {
if (w.attachEvent) {
w.attachEvent('onload', l);
} else {
w.addEventListener('load', l, false);
}
}
function jivo_onLoadCallback() {
console.log('foobar');
}
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment