<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//Header Sticky
jQuery(window).on("load resize", function () {
  var headerHeight = jQuery("header").outerHeight();
  jQuery("body").css("margin-top", headerHeight);
});
jQuery(window).scroll(function () {
  if (jQuery(this).scrollTop() &gt; 1) {
    jQuery("header").addClass("sticky");
  } else {
    jQuery("header").removeClass("sticky");
  }
});

function setCookie(key, value, expiry) {
    var expires = new Date();
    expires.setTime(expires.getTime() + (expiry * 24 * 60 * 60 * 1000));
    document.cookie = key + '=' + value + ';expires=' + expires.toUTCString();
}

function getCookie(key) {
    var keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)');
    return keyValue ? keyValue[2] : null;
}

jQuery(document).ready(function () {
  setTimeout(function() {
    var cookieenabled = getCookie("cookie-bar");
    console.log(cookieenabled);
    if(cookieenabled == '' || cookieenabled == undefined){
      jQuery('.cookie-bar').fadeIn("slow");
    }
  }, 2000);
  jQuery(".cookie-bar .btn a").click(function(){
    jQuery(this).closest(".cookie-bar").fadeOut("slow");
    setCookie("cookie-bar", 1, 30);
  });

  var currentTime = new Date();
  var year = currentTime.getFullYear();

  //add autocomplete off to the cf7 form elements
  jQuery("form.wpcf7-form").attr("autocomplete", "off");
  var random_str = Math.random()
    .toString(36)
    .replace(/[^a-z]+/g, "")
    .substr(0, 5);
  jQuery("form.wpcf7-form .form-field").each(function () {
    jQuery(this).find("input").attr("autocomplete", random_str);
  });

  //contact us form topics toggle
  jQuery(document).on("click", "#cf_lab_topics", function (e) {
    jQuery(this).parent("div.dropdown").toggleClass("open");
    jQuery(this).next("span.wpcf7-form-control-wrap").slideToggle(100);
  });

  //hide the banner loader
  //jQuery('.banner-loader').hide();
  jQuery(".top-carousel").addClass("show");
  jQuery(".banner-loader").removeClass("active");

  var auto_play_slides = jQuery("#auto_play_slides").val();
  var loop_continuous_slides = jQuery("#loop_continuous_slides").val();
  var dots_navigation_activation = jQuery("#dots_navigation_activation").val();
  var transition_speed_slide_transition = jQuery("#transition_speed_slide_transition").val();
  var time_slide_on_screen_time = jQuery("#time_slide_on_screen_time").val();
  var pause_on_hover = jQuery("#pause_on_hover").val();

  //top carousel for all pages
  jQuery(".top-carousel .banner-image")
    .not(".slick-initialized")
    .slick({
      dots: dots_navigation_activation == 1 ? true : false,
      arrows: false,
      slidesToShow: 1,
      centerMode: false,
      adaptiveHeight: true,
      autoplay: auto_play_slides == 1 ? true : false,
      speed: time_slide_on_screen_time != "" ? time_slide_on_screen_time : 1000,
      autoplaySpeed:
        transition_speed_slide_transition != ""
          ? transition_speed_slide_transition
          : 1000,
      infinite: loop_continuous_slides == 1 ? true : false,
      asNavFor: ".top-carousel .banner-content &gt; div",
      responsive: [
        {
          breakpoint: 1131,
          settings: {
            slidesToShow: 1,
            slidesToScroll: 1,
            centerPadding: "110px",
          },
        },
        {
          breakpoint: 768,
          settings: {
            slidesToShow: 1,
            slidesToScroll: 1,
            centerPadding: "40px",
          },
        },
      ],
    });
  jQuery(".top-carousel .banner-content &gt; div")
    .not(".slick-initialized")
    .slick({
      dots: false,
      fade: true,
      arrows: false,
      slidesToShow: 1,
      centerMode: false,
      adaptiveHeight: true,
      autoplay: auto_play_slides == 1 ? true : false,
      infinite: loop_continuous_slides == 1 ? true : false,
      speed: time_slide_on_screen_time != "" ? time_slide_on_screen_time : 1000,
      autoplaySpeed:
        transition_speed_slide_transition != ""
          ? transition_speed_slide_transition
          : 1000,
      asNavFor: ".top-carousel .banner-image",
      responsive: [
        {
          breakpoint: 1131,
          settings: {
            slidesToShow: 1,
            slidesToScroll: 1,
            centerPadding: "110px",
          },
        },
        {
          breakpoint: 768,
          settings: {
            slidesToShow: 1,
            slidesToScroll: 1,
            centerPadding: "40px",
          },
        },
      ],
    });

  if (pause_on_hover == 1) {
    jQuery(".top-carousel .banner-image").mouseover(function () {
      jQuery(".top-carousel .banner-image").slick("pause");
      jQuery(".top-carousel .banner-content &gt; div").slick("pause");
    });
    jQuery(".top-carousel .banner-image").mouseout(function () {
      jQuery(".top-carousel .banner-image").slick("play");
      jQuery(".top-carousel .banner-content &gt; div").slick("play");
    });
  }

  if (loop_continuous_slides != 1) {
    jQuery(".top-carousel .banner-image").on(
      "afterChange",
      function (event, slick, currentSlide) {
        const _last = slick.slideCount - slick.options.slidesToShow;
        if (_last === currentSlide) {
          jQuery(".top-carousel .banner-image").slick("slickPause");
          jQuery(".top-carousel .banner-content &gt; div").slick("slickPause");
        }
      }
    );
  }

  //hand drawnline
  // jQuery(window).on('load resize',function(){
  //     var borderWidth = jQuery(window).width() - 30;
  //     // jQuery('head').append('&lt;style type="text/css"&gt;.border{background-size:' + borderWidth +'px}&lt;/style&gt;');
  //     jQuery('.border').append('&lt;style&gt;.border{background-size:' + borderWidth +'px}&lt;/style&gt;');
  // });

  jQuery(window).scroll(function () {
    jQuery(".border").each(function (i) {
      var bottom_of_object =
        jQuery(this).offset().top + jQuery(this).outerHeight();
      var bottom_of_window =
        jQuery(window).scrollTop() + jQuery(window).height();
      if (bottom_of_window &gt; bottom_of_object) {
        jQuery(this).addClass("animated");
      }
    });
  });

  jQuery(window).on("load resize", function () {
    var winwidth = jQuery(window).innerWidth() - 55;
    jQuery(".border.svg1").css("background-size", winwidth);
  });

  //on contact form submit open thank you modal popup
  document.addEventListener(
    "wpcf7mailsent",
    function (event) {
      //Contact us form
      if ("334" == event.detail.contactFormId) {
        // Change 123 to the ID of the form
        jQuery(".custom-overlay").addClass("active");
        jQuery("body").addClass("scrollDisabled");
        jQuery("#contactus-popup").addClass("open");

        jQuery("#wpcf7-f334-p40-o1 .wpcf7-response-output").hide();
      }

      //Subscribe to our Trend Alert Newsletter
      if ("1508" == event.detail.contactFormId) {
        jQuery(".custom-overlay").addClass("active");
        jQuery("#subtrend-popup").removeClass("open");
        jQuery("#thanks-subtrend-popup").addClass("open");

        jQuery("#wpcf7-f1508-p40-o1 .wpcf7-response-output").hide();
      }

      //Download : Tell us a bit about you
      if ("1510" == event.detail.contactFormId) {
        jQuery(".custom-overlay").addClass("active");
        jQuery("#tellusbit-popup").removeClass("open");
        jQuery("#thanks-tellusbit-popup").addClass("open");

        jQuery("#wpcf7-f1510-p40-o1 .wpcf7-response-output").hide();
      }

      //How can we help you
      if ("1520" == event.detail.contactFormId) {
        jQuery(".custom-overlay").addClass("active");
        jQuery("#howwehelp-popup").removeClass("open");
        jQuery("#thanks-howwehelp-popup").addClass("open");

        jQuery("#wpcf7-f1520-p40-o1 .wpcf7-response-output").hide();
      }

      //remove valid class from input field
      jQuery("form.wpcf7-form .form-field").each(function () {
        jQuery(this).find("input").removeClass("valid");
        jQuery(this).find("textarea").removeClass("valid");
      });

      jQuery(".wpcf7-response-output").show();

      //hide success message after few seconds
      setTimeout(function () {
        jQuery(".wpcf7-response-output").delay(1000).fadeOut("slow").hide(0);
      }, 1000);
    },
    false
  );

  //open a podcast popup on And More link
  jQuery(document).on("click", "#podlink_addmore", function (e) {
    jQuery(".custom-overlay").addClass("active");
    jQuery("body").addClass("scrollDisabled");
    jQuery("#podcast-more-popup").addClass("open");
  });

  //Close join the talk
  jQuery(".join-talk a.close").click(function () {
    jQuery(this).closest(".join-talk").addClass("close");
  });

  //on click trigger popups(subscribe)
  jQuery(document).on(
    "click",
    "#subscribe-btn-red, #subscribe-btn-black",
    function (e) {
      jQuery("#subtrend-popup").addClass("open");
      jQuery(".custom-overlay").addClass("active");
    }
  );

  //on click trigger popups(download link)
  jQuery(document).on("click", "#download-list", function (e) {
    jQuery("#tellusbit-popup").addClass("open");
    jQuery(".custom-overlay").addClass("active");

    jQuery("#current_year").val(year);

    var download_link = jQuery(this).data("link");
    console.log(download_link);
    var post_title = jQuery(this).data("post-title");
    if (download_link != "") {
      setTimeout(function () {
        console.log("260");
        jQuery("#tellusbit-popup input#downloadlink").attr('value',download_link);
        jQuery("#tellusbit-popup #post_title_here").attr('value',post_title);
      }, 2000);
    }
  });

  //on click how can we help you
  jQuery(document).on("click", "#how_we_can_help", function (e) {
    jQuery(this).hide();
    jQuery("#howwehelp-popup").addClass("open");
    jQuery(".custom-overlay").addClass("active");
  });

  //on close click hide popup
  jQuery(document).on("click", ".pop-close, div.custom-overlay", function (e) {
    jQuery(".custom-overlay").removeClass("active");
    jQuery("body").removeClass("scrollDisabled");
    jQuery(".custom-popup").removeClass("open");
    jQuery(".custom-team-popup").removeClass("open");
    jQuery("#how_we_can_help").show();
    jQuery("#management_team").hide();
  });

  //Our management team popup
  jQuery(".management-team-listing").on(
    "click",
    ".slick-slide .image-title",
    function () {
      var team_member_id = jQuery(this).data("id");
      jQuery(".custom-overlay").addClass("active");
      jQuery("#management_team").show();
      jQuery("body").addClass("scrollDisabled");
      jQuery(".teammember" + team_member_id).addClass("open");
    }
  );

  //Mobile menu js
  jQuery("header.site-header .main-navigation button.menu-toggle").click(
    function () {
      jQuery("body").toggleClass("scrollDisabled menu-open");
      jQuery(this).toggleClass("open");
      jQuery("#site-navigation").slideToggle();
    }
  );

  //Search Toggle
  jQuery(".header-search &gt; a").click(function () {
      if (! jQuery('body').hasClass('search') ) { 
        jQuery(this).next("div").slideToggle();
      }
  });

  //For Mobile
  jQuery(
    "header.site-header .mobile-menu-control-wrapper button.menu-toggle"
  ).click(function () {
    jQuery(".header-search &gt; a").next("div").slideUp();
  });
  jQuery(".mobile-menu-control-wrapper .header-search &gt; a").click(function () {
    jQuery(
      "header.site-header .main-navigation button.menu-toggle"
    ).removeClass("open");
    jQuery("#site-navigation").slideUp().removeClass("toggled");
    jQuery("body").removeClass("scrollDisabled");
  });

  //Custom Services Slide Content

  jQuery(".custom-services .custom-services-listing .item .content h3").click(
    function () {
      $selector = jQuery(this).parent().parent().parent().parent().parent();
      if ($selector.hasClass("active")) {
        jQuery(this)
          .parent()
          .parent()
          .parent()
          .parent()
          .parent()
          .removeClass("active");
      } else {
        jQuery(this)
          .closest(".item")
          .addClass("active")
          .siblings(".item.active")
          .removeClass("active");
      }
    }
  );

  /*blog listing add active classs to tabs*/
  jQuery(document).on("click", ".blog-listing-main .filter-tabs", function (e) {
    jQuery(".filter-tabs").removeClass("active");
    jQuery(this).addClass("active");
  });

  /*Mobile Filter Blog Page*/
  jQuery(".filter-label.tablet").click(function () {
    if (!jQuery(this).hasClass("clear-active")) {
      jQuery(this).next(".filter-wrap").slideToggle();
    }
  });

  //Industries Categories
  jQuery("table#indcategories-list tr td").each(function () {
    if (jQuery(this).is(":hidden")) {
      jQuery(this).addClass("hidden_ele");
    }
  });

  //set accordion closed by default on mobile
  if (
    jQuery(".footer-widgets").hasClass("footer-mob") &amp;&amp;
    !jQuery(".footer-widgets.footer-mob").is(":hidden")
  ) {
    setTimeout(function () {
      jQuery(".vc_tta-panels-container .vc_tta-panels .vc_tta-panel").each(
        function () {
          jQuery(this).removeClass("vc_active");
        }
      );

      jQuery(".acc-wrap:first-child").removeClass("active");
      jQuery(".acc-wrap:first-child &gt; .acc-content").hide();
    }, 1000);
  }

  //Remove highlight option from case study menu on this page
  if (window.location.href.indexOf("/advisory-consulting") &gt; -1) {
    var hash_value = window.location.hash;
    if (hash_value == "#CaseStudies") {
      jQuery(".menu-advisory").removeClass(
        "current-menu-item current_page_item"
      );
      jQuery(".hidehighlight").addClass("current-menu-item current_page_item");
    } else {
      jQuery(".hidehighlight").removeClass("current-menu-item");
    }
  }

  //Stop the slider on mouse hover
  //if (window.location.href.indexOf("/retail-innovators") &gt; -1) {
    jQuery(".wsl-list-response").on("init", function (event, slick, direction) {
      //pauseOnMouserOver('wsl-list-response');
    });

    //Retailer innovators: The WSL List
    jQuery(".wsl-list-response")
      .not(".slick-initialized")
      .slick({
        dots: false,
        arrows: true,
        slidesToShow: 4,
        centerMode: false,
        centerPadding: "125px",
        autoplay: true,
        autoplaySpeed: 3000,
        //speed: 5000,
        //cssEase: 'linear',
        pauseOnHover: true,
        //focusOnSelect: true,
        draggable: false,
        infinite: true,
        prevArrow:
          '&lt;button class="slick-arrow slick-prev"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.247 16.371" fill="#E31837"&gt; &lt;path id="Union_11" data-name="Union 11" d="M.061,24.528,10.934,13.654,0,2.719,2.719,0,16.309,13.593l.061.061L2.78,27.247Z" transform="translate(27.247) rotate(90)"&gt;&lt;/path&gt; &lt;/svg&gt;&lt;/button&gt;',
        nextArrow:
          '&lt;button class="slick-arrow slick-next"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.247 16.371" fill="#E31837"&gt; &lt;path id="Union_11" data-name="Union 11" d="M.061,24.528,10.934,13.654,0,2.719,2.719,0,16.309,13.593l.061.061L2.78,27.247Z" transform="translate(27.247) rotate(90)"&gt;&lt;/path&gt; &lt;/svg&gt;&lt;/button&gt;',
        responsive: [
          {
            breakpoint: 1131,
            settings: {
              slidesToShow: 2,
              slidesToScroll: 1,
              centerPadding: "110px",
            },
          },
          {
            breakpoint: 768,
            settings: {
              slidesToShow: 1,
              slidesToScroll: 1,
              centerPadding: "40px",
            },
          },
        ],
      });

    //Retail innovators WSL list on click of filter heading
    jQuery(".wsl-list-response .slick-slide .item .content h3").click(
      function () {
        //jQuery('.wsl-list-response .slick-list .item').removeClass('active');
        jQuery(this).parent(".item").toggleClass("active");
      }
    );

    jQuery(
      ".wsl-list-response .slick-prev, .wsl-list-response .slick-next"
    ).click(function () {
      //alert('*****');
      jQuery(".wsl-list-response .slick-slide.item").removeClass("active");
    });
  //}

  //about us slider pause on hover
  if (window.location.href.indexOf("/about-us") &gt; -1) {
    //jQuery('.management-team-listing').on('init', function(event, slick, direction){
    //pauseOnMouserOver('management-team-listing');
    // });

    //About Us Our Values
    jQuery(".ourvalues-main").slick({
      dots: false,
      arrows: false,
      infinite: true,
      slidesToShow: 2,
      slidesToScroll: 1,
      centerMode: true,
      centerPadding: "210px",
      responsive: [
        {
          breakpoint: 768,
          settings: {
            slidesToShow: 1,
            slidesToScroll: 1,
            centerPadding: "90px",
          },
        },
      ],
    });
  }

  //page:sector pause on mouse over
  if (window.location.href.indexOf("/sectors") &gt; -1) {
    //Shopper segment slider
    //jQuery('.slider_shopper_seg_main').on('init', function(event, slick, direction){
    //pauseOnMouserOver('slider_shopper_seg_main');
    //});

    //Channel Slider
    //jQuery('.slider_channels_main').on('init', function(event, slick, direction){
    //pauseOnMouserOver('slider_channels_main');
    //});

    //page:sector
    //Shopper Segments
    jQuery(".slider_shopper_seg_main").slick({
      dots: false,
      slidesToShow: 3,
      slidesToScroll: 1,
      //centerMode: true,
      centerPadding: "615px",
      arrows: true,
      //autoplay: true,
      //autoplaySpeed: 0,
      //cssEase: 'linear',
      //speed: 5000,
      infinite: true,
      prevArrow:
        '&lt;button class="slick-arrow slick-prev"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.247 16.371" fill="rgba(255,255,255,0.5)"&gt; &lt;path id="Union_11" data-name="Union 11" d="M.061,24.528,10.934,13.654,0,2.719,2.719,0,16.309,13.593l.061.061L2.78,27.247Z" transform="translate(27.247) rotate(90)"/&gt; &lt;/svg&gt;&lt;/button&gt;',
      nextArrow:
        '&lt;button class="slick-arrow slick-next"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.247 16.371" fill="rgba(255,255,255,0.5)"&gt; &lt;path id="Union_11" data-name="Union 11" d="M.061,24.528,10.934,13.654,0,2.719,2.719,0,16.309,13.593l.061.061L2.78,27.247Z" transform="translate(27.247) rotate(90)"/&gt; &lt;/svg&gt;&lt;/button&gt;',
      responsive: [
        {
          breakpoint: 1921,
          settings: {
            centerPadding: "351px",
            slidesToShow: 3,
          },
        },
        {
          breakpoint: 1131,
          settings: {
            slidesToShow: 2,
            centerPadding: "170px",
          },
        },
        {
          breakpoint: 768,
          settings: {
            slidesToShow: 1,
            centerPadding: "65px",
          },
        },
      ],
    });

    //Channels slider
    jQuery(".slider_channels_main").slick({
      dots: false,
      slidesToShow: 3,
      slidesToScroll: 1,
      arrows: true,
      //centerMode: true,
      centerPadding: "615px",
      //autoplay: true,
      //autoplaySpeed: 0,
      //cssEase: 'linear',
      //speed: 5000,
      infinite: true,
      prevArrow:
        '&lt;button class="slick-arrow slick-prev"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.247 16.371" fill="rgba(255,255,255,0.5)"&gt; &lt;path id="Union_11" data-name="Union 11" d="M.061,24.528,10.934,13.654,0,2.719,2.719,0,16.309,13.593l.061.061L2.78,27.247Z" transform="translate(27.247) rotate(90)"/&gt; &lt;/svg&gt;&lt;/button&gt;',
      nextArrow:
        '&lt;button class="slick-arrow slick-next"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.247 16.371" fill="rgba(255,255,255,0.5)"&gt; &lt;path id="Union_11" data-name="Union 11" d="M.061,24.528,10.934,13.654,0,2.719,2.719,0,16.309,13.593l.061.061L2.78,27.247Z" transform="translate(27.247) rotate(90)"/&gt; &lt;/svg&gt;&lt;/button&gt;',
      responsive: [
        {
          breakpoint: 1921,
          settings: {
            centerPadding: "351px",
            slidesToShow: 3,
          },
        },
        {
          breakpoint: 1131,
          settings: {
            slidesToShow: 2,
            centerPadding: "170px",
          },
        },
        {
          breakpoint: 768,
          settings: {
            slidesToShow: 1,
            centerPadding: "65px",
          },
        },
      ],
    });
  }

  //Event Page: What you will get
  if (window.location.href.indexOf("/events") &gt; -1) {
    jQuery(".get-listing.tablet")
      .not(".slick-initialized")
      .slick({
        dots: false,
        arrows: false,
        infinite: false,
        speed: 300,
        slidesToShow: 2,
        slidesToScroll: 1,
        centerMode: true,
        centerPadding: "160px",
        infinite: true,
        responsive: [
          {
            breakpoint: 768,
            settings: {
              slidesToShow: 1,
              slidesToScroll: 1,
              centerPadding: "130px",
            },
          },
        ],
      });
  }

  //Become Client Mobile
  jQuery(".number-section .slider").not(".slick-initialized").slick({
    dots: false,
    arrows: false,
    slidesToShow: 1,
    slidesToScroll: 0.1,
    centerMode: true,
    centerPadding: "80px",
    autoplay: true,
    autoplaySpeed: 0,
    speed: 3000,
    cssEase: "linear",
    pauseOnHover: true,
    focusOnSelect: true,
    infinite: true,
    variableWidth: true,
    // prevArrow: '&lt;button class="slick-arrow slick-prev"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30" fill="#E31837"&gt; &lt;g id="Group_3364" data-name="Group 3364" transform="translate(30.051 -0.288) rotate(90)"&gt; &lt;rect id="Rectangle_64" data-name="Rectangle 64" width="30" height="30" transform="translate(0.288 0.051)" opacity="0"/&gt; &lt;path id="Union_11" data-name="Union 11" d="M0,15.941,7.085,8.857,0,1.771,1.771,0,8.857,7.085l1.771,1.771L1.771,17.713Z" transform="translate(24.408 9.709) rotate(90)"/&gt; &lt;/g&gt; &lt;/svg&gt;&lt;/button&gt;',
    // nextArrow: '&lt;button class="slick-arrow slick-next"&gt;&lt;svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg" fill="#E31837"&gt; &lt;g clip-path="url(#clip0_363_127887)"&gt; &lt;path d="M9.65796 8.17912L16.743 15.2631L9.65796 22.3491L11.429 24.1201L18.515 17.0351L20.286 15.2641L11.429 6.40712L9.65796 8.17912Z"/&gt; &lt;/g&gt; &lt;defs&gt; &lt;clipPath id="clip0_363_127887"&gt; &lt;rect width="30" height="30" fill="white" transform="matrix(-1 0 0 1 30 0)"/&gt; &lt;/clipPath&gt; &lt;/defs&gt; &lt;/svg&gt;&lt;/button&gt;',
  });

  //Contact page
  if (window.location.href.indexOf("/contact") &gt; -1) {
    jQuery("#currentyear").val(year);

    //close topics box on selections made
    jQuery("input[type=radio][name=radio-812]").change(function () {
      jQuery(".wpcf7-form .form-field.dropdown").removeClass("open");
      jQuery(
        ".wpcf7-form .form-field.dropdown span.wpcf7-form-control-wrap"
      ).slideUp();
    });
  }

  //page: Podcasts
  jQuery(document).on("click", "#pod-filter-topics", function (e) {
    jQuery(this).toggleClass("open");
    jQuery("#pod-filter-open-topics").slideToggle();
  });

  //page: Retail innovators
  jQuery(document).on("click", "#filter-sel-rinv", function (e) {
    jQuery(this).toggleClass("open");
    jQuery(".filter-open-sel-rinv").slideToggle();
  });

  //page: Shopper Insights
  jQuery(document).on("click", "#filter-si-cat", function (e) {
    jQuery(this).toggleClass("open");
    jQuery(".filter-open-si-ss").hide();
    jQuery(".filter-open-si-chn").hide();
    jQuery(".filter-open-si-ret").hide();
    jQuery(".filter-open-si-cat").slideToggle();

    //remove open class of others 3
    jQuery("#filter-si-ss").removeClass("open");
    jQuery("#filter-si-chn").removeClass("open");
    jQuery("#filter-si-ret").removeClass("open");
  });
  jQuery(document).on("click", "#filter-si-ss", function (e) {
    jQuery(this).toggleClass("open");
    jQuery(".filter-open-si-cat").hide();
    jQuery(".filter-open-si-chn").hide();
    jQuery(".filter-open-si-ret").hide();
    jQuery(".filter-open-si-ss").slideToggle();

    //remove open class of others 3
    jQuery("#filter-si-cat").removeClass("open");
    jQuery("#filter-si-chn").removeClass("open");
    jQuery("#filter-si-ret").removeClass("open");
  });
  jQuery(document).on("click", "#filter-si-chn", function (e) {
    jQuery(this).toggleClass("open");
    jQuery(".filter-open-si-cat").hide();
    jQuery(".filter-open-si-ss").hide();
    jQuery(".filter-open-si-ret").hide();
    jQuery(".filter-open-si-chn").slideToggle();

    //remove open class of others 3
    jQuery("#filter-si-cat").removeClass("open");
    jQuery("#filter-si-ss").removeClass("open");
    jQuery("#filter-si-ret").removeClass("open");
  });
  jQuery(document).on("click", "#filter-si-ret", function (e) {
    jQuery(this).toggleClass("open");
    jQuery(".filter-open-si-cat").hide();
    jQuery(".filter-open-si-ss").hide();
    jQuery(".filter-open-si-chn").hide();
    jQuery(".filter-open-si-ret").slideToggle();

    //remove open class of others 3
    jQuery("#filter-si-cat").removeClass("open");
    jQuery("#filter-si-ss").removeClass("open");
    jQuery("#filter-si-chn").removeClass("open");
  });

  //add id to the CF7 form elements
  jQuery("form.wpcf7-form input").each(function () {
    var name = jQuery(this).attr("name");
    var type = jQuery(this).attr("type");
    switch (type) {
      case "radio":
        jQuery(this).attr("id", name);
        jQuery(this).next("span").attr("for", name);
    }
  });

  //search page
  if (window.location.href.indexOf("/wsl-search") &gt; -1) {
    jQuery(document).on("click", "#searchpage", function (e) {
      jQuery("#frm_search").submit();
    });

    const urlParams = new URLSearchParams(window.location.search);
    const searchParam = urlParams.get("k");

    if (searchParam != "") {
      jQuery("#ajaxsearchlite2 .proinput .orig").val(searchParam);
    }
  }

  //FAQ Page
  if (window.location.href.indexOf("/faq") &gt; -1) {
    jQuery(".acc-wrap:first-child").addClass("active");
    jQuery(".acc-wrap:not(:first-child) &gt; .acc-content").hide();
    jQuery(".acc-wrap").click(function () {
      if (jQuery(this).hasClass("active")) {
        jQuery(this).removeClass("active").find(".acc-content").slideUp();
      } else {
        jQuery(".acc-wrap.active .acc-content").slideUp();
        jQuery(".acc-wrap.active").removeClass("active");
        jQuery(this).addClass("active").find(".acc-content").slideDown();
      }
      return false;
    });
  }

  //Join talk
  setInterval(function () {
    jQuery(".join-talk").addClass("open");
    jQuery("#how_we_can_help").addClass("show");
  }, 3000);

  //Help Icon Sticky
  jQuery(function () {
    jQuery(window).scroll(function () {
      var footerTop = jQuery(".site-footer").position().top; // or .offset().top
      var scrollTop = jQuery(window).scrollTop();
      var viewportHeight = jQuery(window).height();

      if (footerTop &lt;= scrollTop + viewportHeight) {
        jQuery("#how_we_can_help").addClass("removeSticky");
      } else {
        jQuery("#how_we_can_help").removeClass("removeSticky");
      }
    });
  });

  //Banner Image for desktop and mobile
  var window_width = jQuery(window).width();
  if (window_width &lt;= 767) {
    var mobile_img = jQuery(
      ".banner-main .wpb_single_image figure .vc_single_image-wrapper.mobile img"
    ).attr("src");
    if (mobile_img == "") {
      jQuery(
        ".banner-main .wpb_single_image figure .vc_single_image-wrapper.desktop"
      ).show();
      jQuery(
        ".banner-main .wpb_single_image figure .vc_single_image-wrapper.mobile"
      ).hide();
    } else {
      jQuery(
        ".banner-main .wpb_single_image figure .vc_single_image-wrapper.desktop"
      ).hide();
      jQuery(
        ".banner-main .wpb_single_image figure .vc_single_image-wrapper.mobile"
      ).show();
    }
  }

  //header menu open close
  jQuery(document).on(
    "click",
    "#menu-header li.menu-item a:first-child",
    function (e) {
      jQuery(this).closest("li").toggleClass("sfHover");
      jQuery(this).closest("li").find("ul.sub-menu").toggleClass("toggled-on");
    }
  );
});

equalheight = function (container) {
  var currentTallest = 0,
    currentRowStart = 0,
    rowDivs = new Array(),
    $el,
    topPosition = 0;
  jQuery(container).each(function () {
    $el = jQuery(this);
    jQuery($el).height("auto");
    topPostion = $el.position().top;

    if (currentRowStart != topPostion) {
      for (currentDiv = 0; currentDiv &lt; rowDivs.length; currentDiv++) {
        rowDivs[currentDiv].height(currentTallest);
      }
      rowDivs.length = 0; // empty the array
      currentRowStart = topPostion;
      currentTallest = $el.height();
      rowDivs.push($el);
    } else {
      rowDivs.push($el);
      currentTallest =
        currentTallest &lt; $el.height() ? $el.height() : currentTallest;
    }
    for (currentDiv = 0; currentDiv &lt; rowDivs.length; currentDiv++) {
      rowDivs[currentDiv].height(currentTallest);
    }
  });
};

jQuery(window).load(function () {
  equalheight(".get-it .boxes .text");
});

jQuery(window).resize(function () {
  equalheight(".get-it .boxes .text");
});

// Set a Cookie
function setCookie(cName, cValue, expDays) {
  let date = new Date();
  date.setTime(date.getTime() + expDays * 24 * 60 * 60 * 1000);
  const expires = "expires=" + date.toUTCString();
  document.cookie = cName + "=" + cValue + "; " + expires + "; path=/";
}

//Get a Cookie
function getCookie(name) {
  const value = `; ${document.cookie}`;
  const parts = value.split(`; ${name}=`);
  if (parts.length === 2) return parts.pop().split(";").shift();
}

//Delete a Cookie
function delCookie(name) {
  document.cookie = name + "=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
}

jQuery(function ($) {
  /*var topMenuHeight = jQuery("header.site-header").outerHeight();
    jQuery(".quick--links").menuScroll(topMenuHeight);
    jQuery('&lt;div class="anim-quick-link"&gt;&lt;/div&gt;').insertAfter('header.site-header');*/

  if (window.location.hash) {
    setTimeout(function () {
      var hash_link = window.location.hash;
      var topMenuHeight = 0;
      var topHeaderHeight = jQuery("header.site-header").outerHeight();
      if (topHeaderHeight == 74) {
        topMenuHeight = 74;
      } else if (topHeaderHeight == 53) {
        topMenuHeight = 53;
      } else {
        topMenuHeight = 100;
      }

      jQuery("html, body").animate(
        {
          scrollTop: jQuery(hash_link).offset().top - topMenuHeight,
        },
        500
      );
    }, 1000);
  }

  jQuery(document).on("click", ".quick--links li a", function (e) {
    var item = jQuery(this).attr("href");
    var topMenuHeight = 0;
    var topHeaderHeight = jQuery("header.site-header").outerHeight();
    if (topHeaderHeight == 74) {
      topMenuHeight = 74;
    } else if (topHeaderHeight == 53) {
      topMenuHeight = 53;
    } else {
      topMenuHeight = 100;
    }

    jQuery("html, body").animate(
      {
        scrollTop: jQuery(item).offset().top - topMenuHeight,
      },
      500
    );
  });

  jQuery(document).on(
    "click",
    "ul#menu-header ul.sub-menu li.hidehighlight a",
    function (e) {
      //remove current highlighted advisory menu
      jQuery(".menu-advisory").removeClass(
        "current-menu-item current_page_item"
      );
      jQuery(".hidehighlight").addClass("current-menu-item current_page_item");

      var item = jQuery(this).attr("href");
      var item = "#" + item.split("#").pop();

      var topMenuHeight = 0;
      var topHeaderHeight = jQuery("header.site-header").outerHeight();
      if (topHeaderHeight == 74) {
        topMenuHeight = 74;
      } else if (topHeaderHeight == 53) {
        topMenuHeight = 53;
      } else {
        topMenuHeight = 100;
      }

      jQuery("html, body").animate(
        {
          scrollTop: jQuery(item).offset().top - topMenuHeight,
        },
        500
      );
    }
  );
});

// COPY THE FOLLOWING FUNCTION INTO ANY SCRIPTS
jQuery.fn.extend({
  menuScroll: function (offset) {
    // Declare all global variables
    var topMenu = this;
    var topOffset = offset ? offset : 0;
    var menuItems = jQuery(topMenu).find("a");
    var lastId;

    // Save all menu items into scrollItems array
    var scrollItems = jQuery(menuItems).map(function () {
      var item = jQuery(jQuery(this).attr("href"));
      if (item.length) {
        return item;
      }
    });

    // When the menu item is clicked, get the #id from the href value, then scroll to the #id element
    jQuery(topMenu).on("click", "a", function (e) {
      var href = jQuery(this).attr("href");

      var offsetTop = href === "#" ? 0 : jQuery(href).offset().top - topOffset;

      jQuery("html, body").stop().animate(
        {
          scrollTop: offsetTop,
        },
        300
      );
      e.preventDefault();
    });

    // When page is scrolled
    // jQuery(window).on('scroll resize', function(){
    //     var nm = jQuery("html").scrollTop();
    //     var nw = jQuery("body").scrollTop();
    //     var fromTop = (nm &gt; nw ? nm : nw)+topOffset;

    //     // When the page pass one #id section, return all passed sections to scrollItems and save them into new array current
    //     var current = jQuery(scrollItems).map(function(){
    //         if (jQuery(this).offset().top &lt;= fromTop)
    //         return this;
    //     });

    //     // Get the most recent passed section from current array
    //     current = current[current.length-1];
    //     var id = current &amp;&amp; current.length ? current[0].id : "";
    //     if (lastId !== id) {
    //         lastId = id;
    //         // Set/remove active class
    //         jQuery(menuItems)
    //         .parent().removeClass("active")
    //         .end().filter("[href='#"+id+"']").parent().addClass("active");
    //         var currentHtml = jQuery(menuItems).filter("[href='#"+id+"']").html();
    //         var headerHeight = jQuery('header').outerHeight();
    //         jQuery('.anim-quick-link').html(currentHtml);
    //         if (jQuery('.anim-quick-link').is(':empty')) {
    //             jQuery('.anim-quick-link').animate({top: '0'});
    //         }
    //         else {
    //             jQuery('.anim-quick-link').animate({top: headerHeight});
    //         }
    //         setTimeout(function(){
    //             jQuery('.anim-quick-link').animate({top: '0'});
    //         }, 2000);

    //     }

    // });
  },
});

function pauseOnMouserOver(selector) {
  var styleBackup = "",
    restOfTimeout = 500,
    currentState = "",
    freeze = false;

  const observer = new MutationObserver(function (mutationsList, observer) {
    for (const mutation of mutationsList) {
      if (
        mutation.type === "attributes" &amp;&amp;
        mutation.attributeName == "style" &amp;&amp;
        freeze
      ) {
        jQuery(selector + " ." + extraselector + " .slick-track").css(
          "transform",
          currentState
        );
      }
    }
  });
  observer.observe(jQuery(selector + " .slick-track")[0], { attributes: true });
  jQuery(selector + " .slick-track").mouseover(function () {
    styleBackup = jQuery(selector + " .slick-track").attr("style");
    currentState = getComputedStyle(
      jQuery(selector + " .slick-track")[0]
    ).transform;
    freeze = true;
    jQuery(selector + "").slick("slickPause");
    let translateDone = parseFloat(currentState.split(",")[4]) * -1;
    let regex = /translate3d\(([^,]*),/gm;
    if ((m = regex.exec(styleBackup)) !== null) {
      let translateNeed = parseFloat(m[1]) * -1;
      let slideWidth = jQuery(selector + " .slick-slide")
        .first()
        .width();
      let speed = 5000 / slideWidth;
      restOfTimeout = (translateNeed - translateDone) * speed;
    } else {
      restOfTimeout = 500;
    }
    jQuery(selector + " .slick-track").css("transform", currentState);
  });
  jQuery(selector + " .slick-track").mouseout(function () {
    freeze = false;
    jQuery(selector + " .slick-track").attr(
      "style",
      styleBackup.replace("5000ms", restOfTimeout + "ms")
    );
    jQuery(selector + "").slick("slickPause");
  });
}

function getSliderSettings() {
  return {
    dots: false,
    slidesToShow: 3,
    slidesToScroll: 1,
    arrows: true,
    infinite: true,
    prevArrow:
      '&lt;button class="slick-arrow slick-prev"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.247 16.371" fill="rgba(255,255,255,0.5)"&gt; &lt;path id="Union_11" data-name="Union 11" d="M.061,24.528,10.934,13.654,0,2.719,2.719,0,16.309,13.593l.061.061L2.78,27.247Z" transform="translate(27.247) rotate(90)"/&gt; &lt;/svg&gt;&lt;/button&gt;',
    nextArrow:
      '&lt;button class="slick-arrow slick-next"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27.247 16.371" fill="rgba(255,255,255,0.5)"&gt; &lt;path id="Union_11" data-name="Union 11" d="M.061,24.528,10.934,13.654,0,2.719,2.719,0,16.309,13.593l.061.061L2.78,27.247Z" transform="translate(27.247) rotate(90)"/&gt; &lt;/svg&gt;&lt;/button&gt;',
    responsive: [
      {
        breakpoint: 1921,
        settings: {
          centerPadding: "350px",
          slidesToShow: 3,
        },
      },
      {
        breakpoint: 1131,
        settings: {
          slidesToShow: 3,
          centerPadding: "110px",
        },
      },
      {
        breakpoint: 768,
        settings: {
          slidesToShow: 1,
          centerPadding: "40px",
        },
      },
    ],
  };
}

if (jQuery("body").hasClass(".page-id-475")) {
  jQuery(window).scroll(function () {
    var top_of_element = jQuery(".case-studies-featured").offset().top;
    var bottom_of_element =
      jQuery(".case-studies-featured").offset().top +
      jQuery(".case-studies-featured").outerHeight();
    var bottom_of_screen =
      jQuery(window).scrollTop() + jQuery(window).innerHeight();
    var top_of_screen = jQuery(window).scrollTop();

    if (
      bottom_of_screen &gt; top_of_element &amp;&amp;
      top_of_screen &lt; bottom_of_element
    ) {
      jQuery("#menu-item-1334").addClass("current-menu-item");
      jQuery("#menu-item-676").removeClass("current-menu-item");
    } else {
      jQuery("#menu-item-1334").removeClass("current-menu-item");
      jQuery("#menu-item-676").addClass("current-menu-item");
    }
  });
}


jQuery(window).on("load", function(){
  jQuery(".border-animation-top").append('&lt;div class="border-svg"&gt;&lt;svg viewBox="0 0 245 19" fill="none" xmlns="http://www.w3.org/2000/svg"&gt;&lt;path d="M2 16.7757C9.02368 17.5561 16.1832 17.4434 23.3155 17.4434C25.1671 17.4434 26.8896 17.0891 28.7062 16.9983C30.8387 16.8916 33.4531 16.5125 35.4817 15.8855C39.6685 14.5914 43.948 13.9502 48.3403 13.4622C50.1431 13.2619 52.0483 13.4374 53.867 13.4374C55.0099 13.4374 55.9004 12.9923 57.0569 12.9923C58.0989 12.9923 59.0821 12.7698 60.1232 12.7698C61.7429 12.7698 63.3426 12.5472 64.9451 12.5472C65.9572 12.5472 66.8883 12.1021 67.8754 12.1021C69.2148 12.1021 70.5543 12.1021 71.8937 12.1021C73.273 12.1021 75.2425 12.454 76.5549 11.929C77.7377 11.4559 79.3354 11.5966 80.5856 11.3108C81.6813 11.0604 82.9003 11.1852 84.0228 11.0388C85.4142 10.8573 86.8519 10.5971 88.2513 10.5443C89.0943 10.5124 90.5777 10.5626 91.3423 10.2228C92.389 9.75758 93.4495 9.8766 94.5816 9.8766C96.0069 9.8766 97.3147 9.4315 98.7112 9.4315C101.908 9.4315 105.386 9.34161 108.454 8.44238C110.992 7.69837 113.926 8.09619 116.565 8.09619C119.887 8.09619 123.208 8.09619 126.53 8.09619C132.852 8.09619 139.011 7.65108 145.311 7.65108C148.322 7.65108 151.487 7.45779 154.436 6.88452C156.053 6.56999 157.725 6.89152 159.357 6.73615C161.974 6.48687 164.385 5.42556 167.022 5.42556C168.602 5.42556 170.496 5.04236 172.03 4.659C173.231 4.35859 174.646 4.53536 175.875 4.53536C178.436 4.53536 181.255 3.96586 183.8 3.59569C188.42 2.92369 192.94 2.97749 197.623 2.97749C199.288 2.97749 200.953 2.97749 202.618 2.97749C204.168 2.97749 206.39 3.38868 207.836 2.82912C210.582 1.76596 213.86 2.08728 216.775 2.08728C219.316 2.08728 222.188 1.64742 224.515 2.74258C226.249 3.55879 228.52 4.32115 230.437 4.52299C232.664 4.75744 234.634 5.20301 236.916 5.20301C239.1 5.20301 241.285 5.20301 243.469 5.20301" stroke-width="3" stroke-linecap="round"/&gt;&lt;/svg&gt;&lt;/div&gt;');
  jQuery(".border-animation-bottom").append('&lt;div class="border-svg"&gt;&lt;svg viewBox="0 0 245 19" fill="none" xmlns="http://www.w3.org/2000/svg"&gt;&lt;path d="M2 16.7757C9.02368 17.5561 16.1832 17.4434 23.3155 17.4434C25.1671 17.4434 26.8896 17.0891 28.7062 16.9983C30.8387 16.8916 33.4531 16.5125 35.4817 15.8855C39.6685 14.5914 43.948 13.9502 48.3403 13.4622C50.1431 13.2619 52.0483 13.4374 53.867 13.4374C55.0099 13.4374 55.9004 12.9923 57.0569 12.9923C58.0989 12.9923 59.0821 12.7698 60.1232 12.7698C61.7429 12.7698 63.3426 12.5472 64.9451 12.5472C65.9572 12.5472 66.8883 12.1021 67.8754 12.1021C69.2148 12.1021 70.5543 12.1021 71.8937 12.1021C73.273 12.1021 75.2425 12.454 76.5549 11.929C77.7377 11.4559 79.3354 11.5966 80.5856 11.3108C81.6813 11.0604 82.9003 11.1852 84.0228 11.0388C85.4142 10.8573 86.8519 10.5971 88.2513 10.5443C89.0943 10.5124 90.5777 10.5626 91.3423 10.2228C92.389 9.75758 93.4495 9.8766 94.5816 9.8766C96.0069 9.8766 97.3147 9.4315 98.7112 9.4315C101.908 9.4315 105.386 9.34161 108.454 8.44238C110.992 7.69837 113.926 8.09619 116.565 8.09619C119.887 8.09619 123.208 8.09619 126.53 8.09619C132.852 8.09619 139.011 7.65108 145.311 7.65108C148.322 7.65108 151.487 7.45779 154.436 6.88452C156.053 6.56999 157.725 6.89152 159.357 6.73615C161.974 6.48687 164.385 5.42556 167.022 5.42556C168.602 5.42556 170.496 5.04236 172.03 4.659C173.231 4.35859 174.646 4.53536 175.875 4.53536C178.436 4.53536 181.255 3.96586 183.8 3.59569C188.42 2.92369 192.94 2.97749 197.623 2.97749C199.288 2.97749 200.953 2.97749 202.618 2.97749C204.168 2.97749 206.39 3.38868 207.836 2.82912C210.582 1.76596 213.86 2.08728 216.775 2.08728C219.316 2.08728 222.188 1.64742 224.515 2.74258C226.249 3.55879 228.52 4.32115 230.437 4.52299C232.664 4.75744 234.634 5.20301 236.916 5.20301C239.1 5.20301 241.285 5.20301 243.469 5.20301" stroke-width="3" stroke-linecap="round"/&gt;&lt;/svg&gt;&lt;/div&gt;');
  jQuery(".border-animation-top").mouseleave(function(){
    jQuery(this).addClass("animout");
      setTimeout(() =&gt; {
        jQuery(this).removeClass("animout");
      }, 2000)
  });
  jQuery(".border-animation-bottom").mouseleave(function(){
    jQuery(this).addClass("animout");
      setTimeout(() =&gt; {
        jQuery(this).removeClass("animout");
      }, 2000)
  });
  
  //Added menu code for desktop menu toggle class for about us menu
  jQuery(".menu-item-57 ul li").removeClass('current-menu-item');
  jQuery(".menu-item-57 .sub-menu li a").each(function(key,val) {
    if(document.location.hash == "#"+jQuery(this).attr('href').split('#')[1] ){
      jQuery(this).parent().addClass("current-menu-item");
    }
  });
  jQuery(".menu-item-57 .sub-menu li").click(function(e){
     jQuery('.sub-menu li.current-menu-item').removeClass('current-menu-item');
     jQuery('.sub-menu li').removeClass('sfHover');
     jQuery(this).addClass("current-menu-item");
  });
});

  jQuery(window).on("load resize", function(){
    jQuery(".custom-services .custom-services-listing .item").each(function(){
      var customContent = jQuery(this).find(".content").outerHeight();
      console.log(customContent);
      jQuery(this).find(".content").closest(".wpb_wrapper").css("padding-bottom",customContent);
    });  
  });</pre></body></html>