1
0
Fork 0
arangodb/Documentation/Books/Manual/styles/hs.js

34 lines
1.3 KiB
JavaScript

// HubSpot Script Loader. Please do not block this resource. See more: http://hubs.ly/H0702_H0
(function (id, src, attrs) {
if (document.getElementById(id)) {
try { console.warn('duplicate hubspot script with id: "' + id + '" included on page'); }
finally { return; }
}
var js = document.createElement('script');
js.src = src;
js.type = 'text/javascript';
js.id = id;
for (var name in attrs) { if(attrs.hasOwnProperty(name)) { js.setAttribute(name, attrs[name]); } }
var e = document.getElementsByTagName('script')[0];
e.parentNode.insertBefore(js, e);
})('hubspot-messages-loader', 'https://js.usemessages.com/messageswidgetshell.js', {"data-loader":"hs-scriptloader","data-hsjs-portal":2482448,"data-hsjs-env":"prod"});
(function (id, src) {
if (document.getElementById(id)) { return; }
var js = document.createElement('script');
js.src = src;
js.type = 'text/javascript';
js.id = id;
var e = document.getElementsByTagName('script')[0];
e.parentNode.insertBefore(js, e);
})('hs-analytics', '//js.hs-analytics.net/analytics/1508760300000/2482448.js');
window.setTimeout(function () {
$('body').on('click', 'a', function () {
var _hsq = window._hsq = window._hsq || [];
_hsq.push(['setPath', window.location.pathname]);
_hsq.push(['trackPageView']);
});
}, 1000);