1document.addEventListener('turbo:load', () => { 2 window._yahooTracker = document.body.dataset.yahooTracker === 'true'; 3 window._fbqPageView = document.body.dataset.fbqPageView === 'true'; 4 5 document.querySelectorAll("a[href$='#']").forEach(anchor => { 6 anchor.addEventListener('click', (event) => { 7 event.preventDefault(); 8 }); 9 }); 10 11 if (window.jQuery && jQuery.fn.selectpicker) { 12 jQuery('.selectpicker').selectpicker(); 13 } 14 15 // Tracking tags 16 if (typeof fbq === 'function' && window._fbqPageView) { 17 fbq('track', 'PageView'); 18 } 19 if (typeof snaptr === 'function' && window._fbqPageView) { 20 snaptr('track', 'PAGE_VIEW'); 21 } 22 if (typeof ttq === 'object' && typeof ttq.page === 'function') { 23 ttq.page(); 24 } 25 if (typeof dotq === 'object' && typeof dotq.push === 'function' && window._yahooTracker) { 26 dotq.push({'projectId':'10000','properties':{'pixelId':'10053097'}}); 27 } 28}); 29 30window.parameterizeString = (string) => { 31 return string.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/(^-|-$)/g, ''); 32}; 33 34//Freshdesk widget 35document.addEventListener("turbo:load", () => { 36 const isHomepage = window.location.pathname === "/"; 37 38 if (isHomepage) { 39 if (!window.FreshworksWidget) { 40 window.fwSettings = { widget_id: 1000000359 }; 41 42 const initScript = document.createElement("script"); 43 initScript.innerHTML = ` 44 !function(){ 45 if("function"!=typeof window.FreshworksWidget){ 46 var n=function(){n.q.push(arguments)}; 47 n.q=[]; 48 window.FreshworksWidget=n; 49 } 50 }() 51 `; 52 document.body.appendChild(initScript); 53 54 const widgetScript = document.createElement("script"); 55 widgetScript.src = "https://widget.freshworks.com/widgets/1000000359.js"; 56 widgetScript.async = true; 57 widgetScript.defer = true; 58 document.body.appendChild(widgetScript); 59 } 60 } else { 61 if (window.FreshworksWidget) { 62 try { FreshworksWidget('destroy'); } catch(e) {} 63 } 64 } 65});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.