### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/artificial-intelligence-ai-machine-learning-ml Configures special event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery, optimizing for passive event listeners where appropriate. ```JavaScript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } }} ``` -------------------------------- ### Google Analytics Tracking Setup Source: https://bisresearch.com/industry-verticals/new-farming-techniques Initializes Google Analytics tracking by pushing configuration commands. It sets up tracking for multiple Google Analytics properties, including Universal Analytics and Google Analytics 4. ```javascript setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-48860739-1'); },10000); setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-1XEWNK2HGD'); },10000); setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-11395309489'); },10000); ``` -------------------------------- ### Setup Custom Touch and Wheel Events Source: https://bisresearch.com/industry-verticals/building-hvac Extends jQuery's event handling by defining special events for touchstart, touchmove, wheel, and mousewheel. This setup optimizes touch interactions and scroll events, often by using passive listeners to improve performance. ```JavaScript jQuery.event.special.touchstart={ setup:function(_, a, b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_, a, b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_, b, a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_, b, a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/next-generation-wireless-tech Sets up custom event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery. It optimizes for passive event listeners where appropriate to improve scrolling performance. ```JavaScript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### Google Analytics Tracking Setup Source: https://bisresearch.com/industry-verticals/coatings-adhesives-sealants-elastomers Configures Google Analytics tracking for Universal Analytics (UA) and Google Analytics 4 (GA4) properties. This script ensures website traffic and user behavior are recorded for analysis. ```javascript setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-48860739-1'); }, 10000); setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-1XEWNK2HGD'); }, 10000); setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'AW-11395309489'); }, 10000); ``` -------------------------------- ### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/data-center Configures special event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery, optimizing for passive event listeners where appropriate. This allows for more efficient handling of touch and scroll interactions. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### Google Ads Tracking Setup Source: https://bisresearch.com/industry-verticals/extended-reality Initializes Google Ads tracking using gtag.js. It configures the conversion ID for Google Ads, enabling conversion tracking and remarketing. ```javascript setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-11395309489'); },10000); ``` -------------------------------- ### AJAX Autocomplete for Search Input (Desktop) Source: https://bisresearch.com/our-offerings/extended-teams Handles user input for the search box (`#lname11`), triggers an AJAX GET request to fetch autocomplete suggestions from `/path/autocompleted_search`, and displays them. Hides the suggestion box if no data is returned. ```javascript $(document).ready(function(){ $("#suggesstion-box").hide(); $("#lname11").keyup(function(){ var qdata = $("#lname11").val(); $.ajax({ type: "GET", url: 'https://bisresearch.com/path/autocompleted_search', data:'term='+$("#lname11").val(), beforeSend: function(){ $("#lname11").css("background","#FFF"); }, success: function(data){ if(data !='') { $("#suggesstion-box").show(); $("#country-list").html(data); $("#lname11").css("background","#FFF"); $("#lname11").css('background-image', 'none'); } else { $("#suggesstion-box").hide(); // $("#country-list").html(data); $("#lname11").css('background-image', 'none'); } } }); }); }); ``` -------------------------------- ### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/digital-manufacturing Configures special event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery. These handlers ensure proper event delegation and passive listener options for performance. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/air-water-solid-waste-treatment Configures special event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery. This setup ensures proper event handling, particularly for touch devices and scroll events, with options for passive event listeners. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")})} }, jQuery.event.special.touchmove={ setup:function(_,a,b){this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")})} }, jQuery.event.special.wheel={ setup:function(_,b,a){this.addEventListener("wheel",a,{passive:!0})} }, jQuery.event.special.mousewheel={ setup:function(_,b,a){this.addEventListener("mousewheel",a,{passive:!0})} } ``` -------------------------------- ### Google Analytics Tracking Setup Source: https://bisresearch.com/industry-verticals/extended-reality Initializes Google Analytics tracking using gtag.js. It configures the tracking ID for the website, ensuring data is sent to Google Analytics. ```javascript setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-48860739-1'); },10000); ``` -------------------------------- ### jQuery Touch Event Setup Source: https://bisresearch.com/industry-verticals/aircraft-drones Sets up special touch events (touchstart, touchmove) for jQuery, enabling passive event listeners for better performance on touch devices. ```javascript ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }; jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }; jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }; jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } }; ``` ``` -------------------------------- ### AJAX Autocomplete for Search Input (Desktop) Source: https://bisresearch.com/our-offerings/subscriptions Handles user input for the search box (`#lname11`), triggers an AJAX GET request to fetch autocomplete suggestions from `/path/autocompleted_search`, and displays them. Hides the suggestion box if no data is returned. ```javascript $(document).ready(function(){ $("#suggesstion-box").hide(); $("#lname11").keyup(function(){ var qdata = $("#lname11").val(); $.ajax({ type: "GET", url: 'https://bisresearch.com/path/autocompleted_search', data:'term='+$("#lname11").val(), beforeSend: function(){ $("#lname11").css("background","#FFF"); }, success: function(data){ if(data !='') { $("#suggesstion-box").show(); $("#country-list").html(data); $("#lname11").css("background","#FFF"); $("#lname11").css('background-image', 'none'); } else { $("#suggesstion-box").hide(); // $("#country-list").html(data); $("#lname11").css('background-image', 'none'); } } }); }); }); ``` -------------------------------- ### jQuery Custom Event Setup Source: https://bisresearch.com/industry-verticals/space-aerospace Configures special event handlers for touchstart, touchmove, wheel, and mousewheel events using jQuery. This allows for more controlled and passive event listening, improving performance by preventing default actions where appropriate. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### Visual Website Optimizer (VWO) Initialization Source: https://bisresearch.com/pressrelease Initializes the Visual Website Optimizer (VWO) script for A/B testing and website personalization. It includes logic for loading settings, managing state, and hiding elements during test setup. ```javascript window._vwo_code || (function() { var account_id=1046482, version=2.1, settings_tolerance=2000, hide_element='body', hide_element_style = 'opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;transition:none !important;', /* DO NOT EDIT BELOW THIS LINE */ f=false,w=window,d=document,v=d.querySelector('#vwoCode'),cK='_vwo_'+account_id+'_settings',cc={};try{var c=JSON.parse(localStorage.getItem('_vwo_'+account_id+'_config'));cc=c&&typeof c==='object'?c:{}}catch(e){}var stT=cc.stT==='session'?w.sessionStorage:w.localStorage;code={nonce:v&&v.nonce,use_existing_jquery:function(){return typeof use_existing_jquery!=='undefined'?use_existing_jquery:undefined},library_tolerance:function(){return typeof library_tolerance!=='undefined'?library_tolerance:undefined},settings_tolerance:function(){return cc.sT||settings_tolerance},hide_element_style:function(){return'{'+(cc.hES||hide_element_style)+'}'},hide_element:function(){if(performance.getEntriesByName('first-contentful-paint')[0]){return''}return typeof cc.hE==='string'?cc.hE:hide_element},getVersion:function(){return version},finish:function(e){if(!f){f=true;var t=d.getElementById('_vis_opt_path_hides');if(t)t.parentNode.removeChild(t);if(e)(new Image).src='https://dev.visualwebsiteoptimizer.com/ee.gif?a='+account_id+e}},finished:function(){return f},addScript:function(e){var t=d.createElement('script');t.type='text/javascript';if(e.src){t.src=e.src}else{t.text=e.text}v&&t.setAttribute('nonce',v.nonce);d.getElementsByTagName('head')[0].appendChild(t)},load:function(e,t){var n=this.getSettings(),i=d.createElement('script'),r=this;t=t||{};if(n){i.textContent=n;d.getElementsByTagName('head')[0].appendChild(i);if(!w.VWO||VWO.caE){stT.removeItem(cK);r.load(e)}}else{var o=new XMLHttpRequest;o.open('GET',e,true);o.withCredentials=!t.dSC;o.responseType=t.responseType||'text';o.onload=function(){if(t.onloadCb){return t.onloadCb(o,e)}if(o.status===200||o.status===304){_vwo_code.addScript({text:o.responseText})}else{_vwo_code.finish('&e=loading_failure:'+e)}};o.onerror=function(){if(t.onerrorCb){return t.onerrorCb(e)}_vwo_code.finish('&e=loading_failure:'+e)};o.send()}},getSettings:function(){try{var e=stT.getItem(cK);if(!e){return}e=JSON.parse(e);if(Date.now()>e.e){stT.removeItem(cK);return}return e.s}catch(e){return}},init:function(){if(d.URL.indexOf('__vwo_disable__')>-1)return;var e=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){_vwo_code.finish();stT.removeItem(cK)},e);var t;if(this.hide_element()!=='body'){t=d.createElement('style');var n=this.hide_element(),i=n?n+this.hide_element_style():'',r=d.getElementsByTagName('head')[0];t.setAttribute('id','_vis_opt_path_hides');v&&t.setAttribute('nonce',v.nonce);t.setAttribute('type','text/css');if(t.styleSheet)t.styleSheet.cssText=i;else t.appendChild(d.createTextNode(i));r.appendChild(t)}else{t=d.getElementsByTagName('head')[0];var i=d.createElement('div');i.style.cssText='z-index: 2147483647 !important;position: fixed !important;left: 0 !important;top: 0 !important;width: 100% !important;height: 100% !important;background: white !important;display: block !important;';i.setAttrib ``` -------------------------------- ### jQuery Custom Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/new-farming-techniques Defines special event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery. These handlers ensure proper event listener registration, particularly for passive event listeners to improve scrolling performance. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }; jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }; jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }; jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### Visual Website Optimizer (VWO) Initialization Source: https://bisresearch.com/mediacontact This code block initializes the Visual Website Optimizer (VWO) tracking. It includes logic for loading the VWO library, managing settings, and potentially hiding elements during A/B testing setup to prevent flicker. ```javascript window._vwo_code || (function() { var account_id = 1046482, version = 2.1, settings_tolerance = 2000, hide_element = 'body', hide_element_style = 'opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;transition:none !important;', /* DO NOT EDIT BELOW THIS LINE */ f = false, w = window, d = document, v = d.querySelector('#vwoCode'), cK = '_vwo_' + account_id + '_settings', cc = {}; try { var c = JSON.parse(localStorage.getItem('_vwo_' + account_id + '_config')); cc = c && typeof c === 'object' ? c : {}; } catch (e) {} var stT = cc.stT === 'session' ? w.sessionStorage : w.localStorage; var code = { nonce: v && v.nonce, use_existing_jquery: function() { return typeof use_existing_jquery !== 'undefined' ? use_existing_jquery : undefined; }, library_tolerance: function() { return typeof library_tolerance !== 'undefined' ? library_tolerance : undefined; }, settings_tolerance: function() { return cc.sT || settings_tolerance; }, hide_element_style: function() { return '{' + (cc.hES || hide_element_style) + '}'; }, hide_element: function() { if (performance.getEntriesByName('first-contentful-paint')[0]) { return ''; } return typeof cc.hE === 'string' ? cc.hE : hide_element; }, getVersion: function() { return version; }, finish: function(e) { if (!f) { f = true; var t = d.getElementById('_vis_opt_path_hides'); if (t) t.parentNode.removeChild(t); if (e) (new Image).src = 'https://dev.visualwebsiteoptimizer.com/ee.gif?a=' + account_id + e; } }, finished: function() { return f; }, addScript: function(e) { var t = d.createElement('script'); t.type = 'text/javascript'; if (e.src) { t.src = e.src; } else { t.text = e.text; } v && t.setAttribute('nonce', v.nonce); d.getElementsByTagName('head')[0].appendChild(t); }, load: function(e, t) { var n = this.getSettings(), i = d.createElement('script'), r = this; t = t || {}; if (n) { i.textContent = n; d.getElementsByTagName('head')[0].appendChild(i); if (!w.VWO || VWO.caE) { stT.removeItem(cK); r.load(e); } } else { var o = new XMLHttpRequest; o.open('GET', e, true); o.withCredentials = !t.dSC; o.responseType = t.responseType || 'text'; o.onload = function() { if (t.onloadCb) { return t.onloadCb(o, e); } if (o.status === 200 || o.status === 304) { _vwo_code.addScript({ text: o.responseText }); } else { _vwo_code.finish('&e=loading_failure:' + e); } }; o.onerror = function() { if (t.onerrorCb) { return t.onerrorCb(e); } _vwo_code.finish('&e=loading_failure:' + e); }; o.send(); } }, getSettings: function() { try { var e = stT.getItem(cK); if (!e) { return; } e = JSON.parse(e); if (Date.now() > e.e) { stT.removeItem(cK); return; } return e.s; } catch (e) { return; } }, init: function() { if (d.URL.indexOf('__vwo_disable__') > -1) return; var e = this.settings_tolerance(); w._vwo_settings_timer = setTimeout(function() { _vwo_code.finish(); stT.removeItem(cK); }, e); var t; if (this.hide_element() !== 'body') { t = d.createElement('style'); var n = this.hide_element(), i = n ? n + this.hide_element_style() : '', r = d.getElementsByTagName('head')[0]; t.setAttribute('id', '_vis_opt_path_hides'); v && t.setAttribute('nonce', v.nonce); t.setAttribute('type', 'text/css'); if (t.styleSheet) t.styleSheet.cssText = i; else t.appendChild(d.createTextNode(i)); r.appendChild(t); } else { t = d.getElementsByTagName('head')[0]; var i = d.createElement('div'); i.style.cssText = 'z-index: 2147483647 !important;position: fixed !important;left: 0 !important;top: 0 !important;width: 100% !important;height: 100% !important;background: white !important;display: b'; } } }; return w._vwo_code = code; })(); ``` -------------------------------- ### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/digital-technologies Configures special event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery. This allows for more consistent handling of touch and scroll interactions across different browsers and devices, especially for passive event listeners. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### AJAX Autocomplete for Search Input (Mobile) Source: https://bisresearch.com/our-offerings/extended-teams Handles user input for the mobile search box (`#lname`), triggers an AJAX GET request to fetch autocomplete suggestions from `/path/autocompleted_search`, and displays them. Hides the suggestion box if no data is returned. ```javascript $(document).ready(function(){ $("#suggesstion-box-mobile").hide(); $("#lname").keyup(function(){ var qdata = $("#lname").val(); $.ajax({ type: "GET", url: 'https://bisresearch.com/path/autocompleted_search', data:'term='+$("#lname").val(), beforeSend: function(){ $("#lname").css("background","#FFF"); }, success: function(data){ if(data !='') { $("#suggesstion-box-mobile").show(); $("#country-list-mobile").html(data); $("#lname").css("background","#FFF"); $("#lname").css('background-image', 'none'); } else { $("#suggesstion-box-mobile").hide(); // $("#country-list").html(data); $("#lname").css('background-image', 'none'); } } }); }); }); ``` -------------------------------- ### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/robotics Configures special event handlers for touch and wheel events in jQuery, enabling passive listeners for improved performance. This setup optimizes scrolling and touch interactions. ```JavaScript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### Hotjar Initialization Script Source: https://bisresearch.com/industry-verticals/coatings-adhesives-sealants-elastomers Initializes the Hotjar tracking code to enable features like heatmaps, session recordings, and user feedback widgets. It's designed to capture user interactions for product improvement. ```javascript setTimeout(function(){ (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:3491780,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); }, 10000); ``` -------------------------------- ### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/3d-printing Configures special event handlers for touch and wheel events in jQuery. It optimizes touch events for passive listeners and ensures wheel events are also handled efficiently. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }, jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }, jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### Hotjar Initialization Source: https://bisresearch.com/our-offerings/subscriptions This script integrates the Hotjar tracking code. It asynchronously loads the Hotjar script, which is used for user behavior analysis, heatmaps, and session recordings. ```javascript setTimeout(function() { (function(h, o, t, j, a, r) { h.hj = h.hj || function() { (h.hj.q = h.hj.q || []).push(arguments); }; h._hjSettings = { hjid: 3491780, hjsv: 6 }; a = o.getElementsByTagName('head')[0]; r = o.createElement('script'); r.async = 1; r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv; a.appendChild(r); }(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=')); }, 10000); ``` -------------------------------- ### jQuery Custom Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/medical-technologies Provides custom event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery. This setup enhances touch and scroll event handling for better cross-device compatibility. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){ this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")}) } }; jQuery.event.special.touchmove={ setup:function(_,a,b){ this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")}) } }; jQuery.event.special.wheel={ setup:function(_,b,a){ this.addEventListener("wheel",a,{passive:!0}) } }; jQuery.event.special.mousewheel={ setup:function(_,b,a){ this.addEventListener("mousewheel",a,{passive:!0}) } } ``` -------------------------------- ### Hotjar Initialization Script Source: https://bisresearch.com/industry-verticals/sensors-semiconductors Integrates the Hotjar tracking code to enable user behavior analysis. This script is loaded asynchronously after a delay. ```javascript setTimeout(function(){ (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:3491780,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); },10000); ``` -------------------------------- ### jQuery Touch and Wheel Event Setup Source: https://bisresearch.com/industry-verticals/innovative-foods Configures special event handlers for touch and mouse wheel events in jQuery. This setup optimizes event handling for touch devices and scroll events, ensuring proper behavior and performance. ```javascript jQuery.event.special.touchstart={ setup:function(_,_a,b){this.addEventListener("touchstart",b,{passive:!_a.includes("noPreventDefault")})} }, jQuery.event.special.touchmove={ setup:function(_,_a,b){this.addEventListener("touchmove",b,{passive:!_a.includes("noPreventDefault")})} }, jQuery.event.special.wheel={ setup:function(_,_b,a){this.addEventListener("wheel",a,{passive:!0})} }, jQuery.event.special.mousewheel={ setup:function(_,_b,a){this.addEventListener("mousewheel",a,{passive:!0})} } ``` -------------------------------- ### jQuery Touch/Wheel Event Setup Source: https://bisresearch.com/industry-verticals/surveillance-cybersecurity Configures special event handlers for touchstart, touchmove, wheel, and mousewheel events in jQuery. This setup ensures proper event handling, particularly for touch devices and scrollable elements, with options for passive event listeners. ```javascript jQuery.event.special.touchstart={ setup:function(_,a,b){this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")})} }, jQuery.event.special.touchmove={ setup:function(_,a,b){this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")})} }, jQuery.event.special.wheel={ setup:function(_,b,a){this.addEventListener("wheel",a,{passive:!0})} }, jQuery.event.special.mousewheel={ setup:function(_,b,a){this.addEventListener("mousewheel",a,{passive:!0})} } ``` -------------------------------- ### Initialize Visual Website Optimizer (VWO) Source: https://bisresearch.com/video-list Initializes the Visual Website Optimizer (VWO) code for A/B testing and website optimization. It includes logic for loading settings, handling existing jQuery, and applying styles to hide elements during the test setup. ```javascript window._vwo_code || (function() { var account_id=1046482, version=2.1, settings_tolerance=2000, hide_element='body', hide_element_style = 'opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;transition:none !important;', /* DO NOT EDIT BELOW THIS LINE */ f=false,w=window,d=document,v=d.querySelector('#vwoCode'),cK='_vwo_'+account_id+'_settings',cc={};try{var c=JSON.parse(localStorage.getItem('_vwo_'+account_id+'_config'));cc=c&&typeof c==='object'?c:{}}catch(e){}var stT=cc.stT==='session'?w.sessionStorage:w.localStorage;code={nonce:v&&v.nonce,use_existing_jquery:function(){return typeof use_existing_jquery!=='undefined'?use_existing_jquery:undefined},library_tolerance:function(){return typeof library_tolerance!=='undefined'?library_tolerance:undefined},settings_tolerance:function(){return cc.sT||settings_tolerance},hide_element_style:function(){return'{'+(cc.hES||hide_element_style)+'}'},hide_element:function(){if(performance.getEntriesByName('first-contentful-paint')[0]){return''}return typeof cc.hE==='string'?cc.hE:hide_element},getVersion:function(){return version},finish:function(e){if(!f){f=true;var t=d.getElementById('_vis_opt_path_hides');if(t)t.parentNode.removeChild(t);if(e)(new Image).src='https://dev.visualwebsiteoptimizer.com/ee.gif?a='+account_id+e}},finished:function(){return f},addScript:function(e){var t=d.createElement('script');t.type='text/javascript';if(e.src){t.src=e.src}else{t.text=e.text}v&&t.setAttribute('nonce',v.nonce);d.getElementsByTagName('head')[0].appendChild(t)},load:function(e,t){var n=this.getSettings(),i=d.createElement('script'),r=this;t=t||{};if(n){i.textContent=n;d.getElementsByTagName('head')[0].appendChild(i);if(!w.VWO||VWO.caE){_vwo_code.finish();stT.removeItem(cK);r.load(e)}}else{var o=new XMLHttpRequest;o.open('GET',e,true);o.withCredentials=!t.dSC;o.responseType=t.responseType||'text';o.onload=function(){if(t.onloadCb){return t.onloadCb(o,e)}if(o.status===200||o.status===304){_vwo_code.addScript({text:o.responseText})}else{_vwo_code.finish('&e=loading_failure:'+e)}};o.onerror=function(){if(t.onerrorCb){return t.onerrorCb(e)}_vwo_code.finish('&e=loading_failure:'+e)};o.send()}},getSettings:function(){try{var e=stT.getItem(cK);if(!e){return}e=JSON.parse(e);if(Date.now()>e.e){stT.removeItem(cK);return}return e.s}catch(e){return}},init:function(){if(d.URL.indexOf('__vwo_disable__')>-1)return;var e=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){_vwo_code.finish();stT.removeItem(cK)},e);var t;if(this.hide_element()!=='body'){t=d.createElement('style');var n=this.hide_element(),i=n?n+this.hide_element_style():'',r=d.getElementsByTagName('head')[0];t.setAttribute('id','_vis_opt_path_hides');v&&t.setAttribute('nonce',v.nonce);t.setAttribute('type','text/css');if(t.styleSheet)t.styleSheet.cssText=i;else t.appendChild(d.createTextNode(i));r.appendChild(t)}else{t=d.getElementsByTagName('head')[0];var i=d.createElement('div');i.style.cssText='z-index: 2147483647 !important;position: fixed !important;left: 0 !important;top: 0 !important;width: 100% !important;height: 100% !important;background: white !important;display: block !impor'}})()} ``` -------------------------------- ### Implement Search Suggestions with AJAX Source: https://bisresearch.com/industry-verticals/optoelectronics-photonics This JavaScript code snippet handles user input in the '#lname11' field to fetch search suggestions via an AJAX GET request. It dynamically displays suggestions in '#suggesstion-box' and '#country-list', providing real-time autocomplete functionality. ```javascript $(document).ready(function(){ $("#suggesstion-box").hide(); $("#lname11").keyup(function(){ var qdata = $("#lname11").val(); $.ajax({ type: "GET", url: 'https://bisresearch.com/path/autocompleted_search', data:'term='+$("#lname11").val(), beforeSend: function(){ $("#lname11").css("background","#FFF"); }, success: function(data){ if(data !='') { $("#suggesstion-box").show(); $("#country-list").html(data); $("#lname11").css("background","#FFF"); $("#lname11").css('background-image', 'none'); } else { $("#suggesstion-box").hide(); // $("#country-list").html(data); $("#lname11").css('background-image', 'none'); } } }); }); }); ``` -------------------------------- ### jQuery Cookie Utility Plugin Source: https://bisresearch.com/white-papers.html A JavaScript plugin for jQuery that provides functionality to set, get, and remove cookies. It supports JSON serialization and handles encoding/decoding for cookie values. ```javascript /*! * jquery.cookie.min.js * jquery.cookie v1.4.1 * MIT license */ !function(a) { "function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof exports ? a(require("jquery")) : a(jQuery); }(function(a) { function b(a) { return h.raw ? a : encodeURIComponent(a); } function c(a) { return h.raw ? a : decodeURIComponent(a); } function d(a) { return b(h.json ? JSON.stringify(a) : String(a)); } function e(a) { 0 === a.indexOf('"') && (a = a.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\')); try { a = decodeURIComponent(a.replace(g, " ")); return h.json ? JSON.parse(a) : a; } catch (b) { // Handle potential parsing errors gracefully } } function f(b, c) { var d = h.raw ? b : e(b); return a.isFunction(c) ? c(d) : d; } var g = /\+/g, h = a.cookie = function(e, g, i) { if (void 0 !== g && !a.isFunction(g)) { // Set cookie if (i = a.extend({}, h.defaults, i), "number" == typeof i.expires) { var j = i.expires, k = i.expires = new Date; k.setTime(+k + 864e5 * j); } return document.cookie = [ b(e), "=", d(g), i.expires ? "; expires=" + i.expires.toUTCString() : "", i.path ? "; path=" + i.path : "", i.domain ? "; domain=" + i.domain : "", i.secure ? "; secure" : "" ].join(""); } // Get cookie(s) var l = e ? void 0 : {}, m = document.cookie ? document.cookie.split("; ") : []; for (var n = 0, o = m.length; o > n; n++) { var p = m[n].split("="), q = c(p.shift()), r = p.join("="); if (e && e === q) { l = f(r, g); break; } e || void 0 === (r = f(r)) || (l[q] = r); } return l; }; h.defaults = {}; a.removeCookie = function(b, c) { return void 0 === a.cookie(b) ? !1 : (a.cookie(b, "", a.extend({}, c, { expires: -1 })), !a.cookie(b)); }; }); // jQuery document ready function to scroll to top // console.clear(); // Uncomment to clear console $(document).ready(function () { $(window).scrollTop(0); return false; }); ``` -------------------------------- ### Hotjar Initialization Source: https://bisresearch.com/industry-verticals/agriculture Loads and initializes the Hotjar tracking script for user behavior analysis. This script is delayed by 10 seconds. ```javascript setTimeout(function(){ (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:3491780,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script'); r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); },10000); ``` -------------------------------- ### Hotjar Initialization Source: https://bisresearch.com/industry-verticals/naval-defense Initializes the Hotjar tracking script. This enables features like session recordings, heatmaps, and user feedback surveys. ```javascript setTimeout(function(){ (function(h,o,t,j,a,r){ h.hj=h.hj||function(){ (h.hj.q=h.hj.q||[]).push(arguments) }; h._hjSettings={ hjid:3491780, hjsv:6 }; a=o.getElementsByTagName('head')[0]; r=o.createElement('script'); r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); },10000); ``` -------------------------------- ### Slick Carousel Initialization Source: https://bisresearch.com/our-offerings/subscriptions Initializes the Slick Carousel plugin for a 'customer-logos' element. Configures it for displaying multiple slides with autoplay, disabling arrows, and responsive settings for different screen sizes. ```javascript $(document).ready(function () { $('.customer-logos').slick({ slidesToShow: 6, slidesToScroll: 1, autoplay: true, autoplaySpeed: 1500, arrows: false, dots: false, pauseOnHover: false, responsive: [ { breakpoint: 768, settings: { slidesToShow: 4 } }, { breakpoint: 520, settings: { slidesToShow: 3 } } ] }); }); ``` -------------------------------- ### Hotjar Initialization Source: https://bisresearch.com/industry-verticals/artificial-intelligence-ai-machine-learning-ml Integrates the Hotjar tracking script to collect user behavior data. It asynchronously loads the Hotjar script from a CDN, configured with a specific site ID and version. ```javascript setTimeout(function() { (function(h, o, t, j, a, r) { h.hj = h.hj || function() { (h.hj.q = h.hj.q || []).push(arguments); }; h._hjSettings = { hjid: 3491780, hjsv: 6 }; a = o.getElementsByTagName('head')[0]; r = o.createElement('script'); r.async = 1; r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv; a.appendChild(r); })(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv='); }, 10000); ``` -------------------------------- ### Google Analytics Tracking Initialization Source: https://bisresearch.com/industry-verticals/robotics-imaging Initializes Google Analytics tracking by setting the current date and configuring multiple tracking IDs. This is a standard setup for integrating Google Analytics into a website. ```javascript setTimeout(function(){ window.dataLayer = window.dataLayer || []; function gtag(){ dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-48860739-1'); gtag('config', 'G-1XEWNK2HGD'); gtag('config', 'AW-11395309489'); },10000); ```