Skip to content

Commit

Permalink
Remove drift chat (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonels-msft committed Mar 12, 2019
1 parent 0e411ac commit 8549ba9
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions _templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,34 +74,6 @@
heap.load("4002524638");
</script>

{# Drift chat #}
<script>
!function() {
var t;
if (t = window.driftt = window.drift = window.driftt || [], !t.init) return t.invoked ? void (window.console && console.error && console.error("Drift snippet included twice.")) : (t.invoked = !0,
t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ],
t.factory = function(e) {
return function() {
var n;
return n = Array.prototype.slice.call(arguments), n.unshift(e), t.push(n), t;
};
}, t.methods.forEach(function(e) {
t[e] = t.factory(e);
}), t.load = function(t) {
var e, n, o, i;
e = 3e5, i = Math.ceil(new Date() / e) * e, o = document.createElement("script"),
o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + i + "/" + t + ".js",
n = document.getElementsByTagName("script")[0], n.parentNode.insertBefore(o, n);
});
}();
drift.SNIPPET_VERSION = '0.3.1';
drift.load('kntc8ig2awfp');

window.drift.on("startConversation", function() {
window.ga("send", "event", "Drift", "startConversation");
});
</script>

{# cookie consent dialog #}

<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js'></script>
Expand Down Expand Up @@ -140,16 +112,6 @@
"click", clickConsent
);

// interacting with drift consents to cookies
if (typeof(drift) == 'object' && typeof(drift.on) == 'function') {
drift.on('ready', function (api) {
drift.on('welcomeMessage:open', clickConsent);
drift.on('awayMessage:open', clickConsent);
});
} else {
console.log("Drift not found by cookie consent code");
}

if ($.cookie(window.g_cookieConsentId) != consentValue) {
// "slideDown" means "show," it's not a direction of movement
$("#consentBox").slideDown("linear");
Expand Down

0 comments on commit 8549ba9

Please sign in to comment.