replace intercom with crisp in docs (#1403)

This commit is contained in:
Rikin Kachhia 2019-01-18 14:32:56 +05:30 committed by Shahidh K Muhammed
parent 9c27b657d7
commit fba95da62f

View File

@ -162,14 +162,21 @@
ga('send', 'pageview');
</script>
<!-- intercom -->
<script>
window.intercomSettings = {
app_id: "rucirpb3"
};
<!-- crisp -->
<script type="text/javascript">
window.$crisp=[];window.CRISP_WEBSITE_ID="20ddaf80-763d-4a52-a5f8-c8c939a128e9";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();
</script>
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/rucirpb3';var
x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
<!-- support button -->
<script type="text/javascript">
$(document).ready( function() {
const supportBtnHandler = function() {
if (window.$crisp) {
window.$crisp.push(['do', 'chat:open']);
}
};
$('.supportBtn').on('click', supportBtnHandler);
});
</script>
<!-- utils -->
@ -243,18 +250,6 @@
};
</script>
<!-- support button -->
<script type="text/javascript">
$(document).ready( function() {
const supportbtnHandler = function() {
if ( window.Intercom ) {
window.Intercom('show');
}
};
$('.supportBtn').on('click', supportbtnHandler);
});
</script>
<!-- search -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript">