mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
replace intercom with crisp in docs (#1403)
This commit is contained in:
parent
9c27b657d7
commit
fba95da62f
33
docs/_theme/djangodocs/layout.html
vendored
33
docs/_theme/djangodocs/layout.html
vendored
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user