
<!-- Javascript -->

<script type='text/javascript'>
  let originalPath = window.location.pathname;

  function openVideo(videoUrl, deep_link) {
    const overlay = document.getElementById('videoOverlay');
    const iframe = document.getElementById('videoIframe');
    const autoplayUrl = `${videoUrl}`;
    iframe.src = autoplayUrl;
    iframe.allow = "autoplay"
    overlay.style.display = 'flex';
    document.body.style.overflow = 'hidden';

    video_history_push_pop(deep_link);
    
  }

  function closeVideo() {
    const overlay = document.getElementById('videoOverlay');
    const iframe = document.getElementById('videoIframe');
    iframe.src = '';
    overlay.style.display = 'none';
    document.body.style.overflow = '';
    video_history_push_pop('');
  }

  function getYouTubeEmbedUrl(url) {
    // Our regex pattern to look for a youTube ID
    const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;
    //Match the url with the regex
    const match = url.match(regExp);
    //Return the result
    const videoId = match && match[2].length === 11 ? match[2] : undefined;
    if (videoId) {
      return 'https://www.youtube.com/embed/' + videoId + '?autoplay=1';
    }
    else {
      return undefined
    }
  };
  function getVimeoEmbedUrl(url) {
    // Look for a string with 'vimeo', then whatever, then a
    // forward slash and a group of digits.
    const match = /vimeo.*\/(\d+)/i.exec(url);
    // If the match isn't null (i.e. it matched)
    if (match) {
      // The grouped/matched digits from the regex
      return 'https://player.vimeo.com/video/' + match[1] + '?autoplay=1';
    }
    else {
      return undefined;
    }
  };

  function video_history_push_pop(deep_link) {
    console.log(deep_link);
    if (deep_link != '') {
      const newUrl = "/video/" + deep_link; 
      history.pushState({ video: true }, "", newUrl);
    } else {
      history.pushState({}, "", originalPath);
    }
  }
</script>{"id":12083,"date":"2024-10-08T03:45:11","date_gmt":"2024-10-08T03:45:11","guid":{"rendered":"https:\/\/www.afiniti.com\/?page_id=12083"},"modified":"2026-02-13T11:45:24","modified_gmt":"2026-02-13T11:45:24","slug":"virginmediao2","status":"publish","type":"page","link":"https:\/\/www.afiniti.com\/virginmediao2\/","title":{"rendered":"Virgin Media O2"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"12083\" class=\"elementor elementor-12083\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8c936d7 e-con-full banner-video e-flex e-con e-parent\" data-id=\"8c936d7\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5db6e50 elementor-widget elementor-widget-afiniti_video\" data-id=\"5db6e50\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"afiniti_video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n        <div class=\"afiniti-video-wrapper\" id=\"69eaaf8699d58\">\n      <button class=\"close-button\" aria-label=\"close\" onclick=\"onCloseClick('69eaaf8699d58')\">\n        <svg width=\"25\" height=\"25\" viewBox=\"0 0 27.46 27.46\" fill=\"#fff\">\n          <path d=\"M26.46 27.46a1 1 0 01-.71-.3L.29 1.71A1 1 0 011.71.29l25.45 25.46a1 1 0 010 1.41 1 1 0 01-.7.3z\"\n            fill=\"inherit\"><\/path>\n          <path d=\"M1 27.46a1 1 0 01-.71-1.71L25.75.29a1 1 0 011.41 0 1 1 0 010 1.42L1.71 27.16a1 1 0 01-.71.3z\"\n            fill=\"inherit\"><\/path>\n        <\/svg>\n      <\/button>\n      <div class=\"overlay-wrapper\">\n        <div\n          style=\"background-image: url(https:\/\/www.afiniti.com\/\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png); background-size:cover;display:none;opacity:0;\"\n          class=\"overlay\" id=\"image-overlay\"><\/div>\n        <video playsinline=\"true\" loop=\"true\" muted=\"true\" autoplay=\"true\" class=\"overlay desktop\"\n          id=\"video-overlay-desktop\"\n          style=\" \">\n          <source src=\"https:\/\/www.afiniti.com\/\/wp-content\/uploads\/2023\/12\/VMO2-BG-with-Overlay.mp4\" type=\"video\/mp4\">\n        <\/video>\n        <video playsinline=\"true\" loop=\"true\" muted=\"true\" autoplay=\"true\" class=\"overlay mobile\" id=\"video-overlay-mobile\"\n          style=\" \">\n          <source src=\"https:\/\/www.afiniti.com\/\/wp-content\/uploads\/2024\/01\/VMO2-BG-with-Overlay-Vertical.mp4\" type=\"video\/mp4\">\n        <\/video>\n\n        <div class=\"content-container \">\n          <div class=\"content-wrapper\"\n            style=\"\">\n            <h3 style=\"\">\n              More happy customers, more revenue, across channels            <\/h3>\n            <h4 style=\"display:none; \">\n                          <\/h4>\n            <p deep-link=\"vmo2\" class=\"deep-link\" style=\"display:none\"><\/p>\n            <div class=\"button-wrapper play_btn\"\n              onclick=\"onPlayClick('69eaaf8699d58', 'https:\/\/player.vimeo.com\/video\/884835466?autoplay=1')\">\n              <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"57\" height=\"58\" viewBox=\"0 0 57 58\">\n                <g id=\"Group_2299\" data-name=\"Group 2299\" transform=\"translate(-237 -1319)\">\n                  <rect id=\"Rectangle_32\" data-name=\"Rectangle 32\" width=\"57\" height=\"58\" transform=\"translate(237 1319)\"\n                    fill=\"#fff\" \/>\n                  <path id=\"Polygon_1\" data-name=\"Polygon 1\" d=\"M8.5,0,17,16H0Z\" transform=\"translate(276 1340) rotate(90)\"\n                    fill=\"#040a1f\" \/>\n                <\/g>\n              <\/svg>\n              <button aria-label=\"Play Button\" class=\"play-video-btn\">\n                Play Video              <\/button>\n            <\/div>\n          <\/div>\n          <!--             <div class=\"list-wrapper\">\n                                              <div\n                  onclick='onLogoClick([{\"video_type\":\"vimeo\",\"youtube_url\":\"https:\\\/\\\/www.youtube.com\\\/watch?v=XHOmBV4js_E\",\"vimeo_url\":\"https:\\\/\\\/vimeo.com\\\/884835466\",\"show_image_overlay\":\"\",\"image_overlay\":{\"url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/plugins\\\/elementor\\\/assets\\\/images\\\/placeholder.png\",\"id\":\"\",\"size\":\"\"},\"video_overlay_url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/VMO2-BG-with-Overlay.mp4\",\"main_heading\":\"More happy customers, more revenue, across channels\",\"sub_heading\":\"\",\"icon\":{\"url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/VMO2.svg\",\"id\":9695,\"size\":\"\",\"alt\":\"\",\"source\":\"library\"},\"_id\":\"792687d\",\"color_icon\":{\"url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Virgin_Media_O2.svg.svg\",\"id\":9700,\"size\":\"\",\"alt\":\"\",\"source\":\"library\"},\"video_overlay_mobile_url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/VMO2-BG-with-Overlay-Vertical.mp4\",\"logo_width\":40,\"deep_link\":\"vmo2\"}], 0, \"69eaaf8699d58\", \"https:\\\/\\\/player.vimeo.com\\\/video\\\/884835466?autoplay=1\", \"true\", 0, 10);'\n                  class=\"list-btn\" videoIndex=\"0\"\n                  style=\"border-bottom:1px solid #fff\">\n                  <img decoding=\"async\" src=\"https:\/\/www.afiniti.com\/\/wp-content\/uploads\/2023\/12\/VMO2.svg\" class=\"card-icon\"\n                  style=\"opacity: 1\"\n                    onload='autoPlay([{\"video_type\":\"vimeo\",\"youtube_url\":\"https:\\\/\\\/www.youtube.com\\\/watch?v=XHOmBV4js_E\",\"vimeo_url\":\"https:\\\/\\\/vimeo.com\\\/884835466\",\"show_image_overlay\":\"\",\"image_overlay\":{\"url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/plugins\\\/elementor\\\/assets\\\/images\\\/placeholder.png\",\"id\":\"\",\"size\":\"\"},\"video_overlay_url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/VMO2-BG-with-Overlay.mp4\",\"main_heading\":\"More happy customers, more revenue, across channels\",\"sub_heading\":\"\",\"icon\":{\"url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/VMO2.svg\",\"id\":9695,\"size\":\"\",\"alt\":\"\",\"source\":\"library\"},\"_id\":\"792687d\",\"color_icon\":{\"url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Virgin_Media_O2.svg.svg\",\"id\":9700,\"size\":\"\",\"alt\":\"\",\"source\":\"library\"},\"video_overlay_mobile_url\":\"https:\\\/\\\/www.afiniti.com\\\/\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/VMO2-BG-with-Overlay-Vertical.mp4\",\"logo_width\":40,\"deep_link\":\"vmo2\"}], \"69eaaf8699d58\", 10,);' \/>\n                <\/div>\n                          <\/div>\n           -->\n        <\/div>\n\n        \n\n      <\/div>\n    <\/div>\n    <script type='text\/javascript'>\n\n      const content = document.querySelector(\".nav_list .inner_wrap\");\n      document.addEventListener(\"DOMContentLoaded\", function () {\n        const scrollRightBtn = document.querySelector(\".mobile_arrow\");\n\n        if (scrollRightBtn) {\n          scrollRightBtn.addEventListener(\"click\", function () {\n            scrollRight();\n          });\n        }\n      });\n      function scrollRight() {\n        const currentScroll = content.scrollLeft;\n        const newScroll = currentScroll + content.clientWidth * 0.35;\n\n        content.scrollTo({\n          left: newScroll,\n          behavior: \"smooth\",\n        });\n      }\n\n\n      var autoPlayArr = [];\n      var loopInterval;\n      var videoArrayCopy = [];\n      var logoIndexCopy = 0;\n      var autoPlayDelayCopy = 10;\n      function autoPlay(videoArray, unique_id, autoPlayDelay, logoIndex = 0,) {\n        videoArrayCopy = videoArray;\n        logoIndexCopy = logoIndex;\n        autoPlayDelayCopy = autoPlayDelay;\n        const autoPlayExists = autoPlayArr.find((element) => (element.id === unique_id && element.autoPlayInit === true))\n        if (!autoPlayExists) {\n          \/\/initializing autoplay\n          autoPlayArr.push({ \"id\": unique_id, autoPlayInit: true, videoArray: videoArray, activeIndex: logoIndex })\n          loopInterval = setInterval(() => {\n            let index = autoPlayArr.findIndex((element) => (element.id === unique_id))\n            if (autoPlayArr[index].activeIndex >= 1) {\n              scrollRight();\n            }\n            if (autoPlayArr[index].activeIndex >= videoArray.length - 1) {\n              content.scrollTo({\n                left: 0,\n                behavior: \"smooth\",\n              });\n            }\n\n            if (index >= 0 && autoPlayArr[index].autoPlayInit === true) {\n              if (autoPlayArr[index].activeIndex == autoPlayArr[index].videoArray.length - 1) {\n                autoPlayArr[index].activeIndex = 0;\n              }\n              else {\n                autoPlayArr[index].activeIndex++;\n              }\n                              onLogoClick(autoPlayArr[index].videoArray, autoPlayArr[index].activeIndex, autoPlayArr[index].id, getEmbedUrl(autoPlayArr[index].videoArray[autoPlayArr[index].activeIndex][[autoPlayArr[index].videoArray[autoPlayArr[index].activeIndex]['video_type'] + '_url']]))\n                          }\n          }, autoPlayDelay * 1000)\n\n        }\n      }\n\n\n      function onLogoClick(videoArray, index, unique_id, embed_url, logoClicked, logoIndex = 0, autoPlayDelay = \"\") {\n        const autoPlayIndex = autoPlayArr.findIndex((element) => (element.id === unique_id))\n        if (autoPlayIndex) {\n          autoPlayArr[autoPlayIndex].activeIndex = index;\n        }\n        if (logoClicked) {\n          clearInterval(loopInterval);\n          autoPlayArr = [];\n          autoPlay(videoArray, unique_id, autoPlayDelay, logoIndex);\n        }\n\n        if (videoArray[index]['show_image_overlay'] === 'yes') {\n          \/\/ if the overlay is an image\n          document.getElementById(`${unique_id}`).querySelector('#image-overlay').style.opacity = 0;\n          document.getElementById(`${unique_id}`).querySelector('#image-overlay').style.display = \"none\";\n          document.getElementById(`${unique_id}`).querySelector('#image-overlay').style.backgroundImage = `url('${videoArray[index]['image_overlay']['url']}')`;\n          if (window.matchMedia('(min-width: 767px)').matches) {\n            document.getElementById(`${unique_id}`).querySelector('#video-overlay-desktop').style.display = \"none\";\n            document.getElementById(`${unique_id}`).querySelector('#video-overlay-desktop').style.opacity = 0;\n          } else {\n            document.getElementById(`${unique_id}`).querySelector('#video-overlay-moble').style.display = \"none\";\n            document.getElementById(`${unique_id}`).querySelector('#video-overlay-moble').style.opacity = 0;\n          }\n          setTimeout(() => {\n            document.getElementById(`${unique_id}`).querySelector('#image-overlay').style.display = \"block\";\n            document.getElementById(`${unique_id}`).querySelector('#image-overlay').style.opacity = 1;\n          }, 500)\n\n        }\n        else if (videoArray[index]['show_image_overlay'] === '') {\n          \/\/ if the overlay is a video\n          document.getElementById(`${unique_id}`).querySelector('#image-overlay').style.display = \"none\";\n          document.getElementById(`${unique_id}`).querySelector('#image-overlay').style.opacity = 0;\n          if (window.matchMedia('(min-width: 767px)').matches) {\n            document.getElementById(`${unique_id}`).querySelector('#video-overlay-desktop').style.opacity = 0;\n            setTimeout(() => {\n              document.getElementById(`${unique_id}`).querySelector('#video-overlay-desktop').setAttribute(\"src\", videoArray[index]['video_overlay_url']);\n              document.getElementById(`${unique_id}`).querySelector('#video-overlay-desktop').style.display = \"block\";\n              document.getElementById(`${unique_id}`).querySelector('#video-overlay-desktop').style.opacity = 1;\n            }, 500)\n          } else {\n            document.getElementById(`${unique_id}`).querySelector('#video-overlay-mobile').style.opacity = 0;\n            setTimeout(() => {\n              document.getElementById(`${unique_id}`).querySelector('#video-overlay-mobile').setAttribute(\"src\", videoArray[index]['video_overlay_mobile_url']);\n              document.getElementById(`${unique_id}`).querySelector('#video-overlay-mobile').style.display = \"block\";\n              document.getElementById(`${unique_id}`).querySelector('#video-overlay-mobile').style.opacity = 1;\n            }, 500)\n\n          }\n        }\n\n        \/\/animate and change values of headings and play button\n\n        if (document.getElementById(`${unique_id}`).querySelector('.content-wrapper h3')) {\n          document.getElementById(`${unique_id}`).querySelector('.content-wrapper h3').style.opacity = 0\n        }\n        if (document.getElementById(`${unique_id}`).querySelector('.content-wrapper h4')) {\n          document.getElementById(`${unique_id}`).querySelector('.content-wrapper h4').style.opacity = 0\n        }\n        document.getElementById(`${unique_id}`).querySelector('.content-wrapper .button-wrapper').style.opacity = 0\n        document.getElementById(`${unique_id}`).querySelector('.content-wrapper .button-wrapper').onclick = function () { onPlayClick(unique_id, embed_url) };\n\n        setTimeout(() => {\n          if (videoArray[index]['main_heading']) {\n            document.getElementById(`${unique_id}`).querySelector('.content-wrapper h3').innerHTML = videoArray[index]['main_heading']\n            document.getElementById(`${unique_id}`).querySelector('.content-wrapper h3').style.display = \"block\"\n            document.getElementById(`${unique_id}`).querySelector('.content-wrapper h3').style.opacity = 1\n            document.getElementById(`${unique_id}`).querySelector(\".content-wrapper p\").setAttribute(\"deep-link\", videoArray[index]['deep_link']);\n          }\n          else {\n            document.getElementById(`${unique_id}`).querySelector('.content-wrapper h3').style.display = \"none\"\n\n          }\n          if (videoArray[index]['sub_heading']) {\n            document.getElementById(`${unique_id}`).querySelector('.content-wrapper h4').innerHTML = videoArray[index]['sub_heading']\n            document.getElementById(`${unique_id}`).querySelector('.content-wrapper h4').style.display = \"block\"\n            document.getElementById(`${unique_id}`).querySelector('.content-wrapper h4').style.opacity = 1\n          }\n          else {\n            document.getElementById(`${unique_id}`).querySelector('.content-wrapper h4').style.display = \"none\"\n\n          }\n\n          document.getElementById(`${unique_id}`).querySelector('.content-wrapper .button-wrapper').style.opacity = 1\n        }, 500)\n\n\n        \/\/ change the background color of list buttons\n        let listButtons = document.getElementById(`${unique_id}`).querySelectorAll('.list-btn')\n        for (let i = 0; i < listButtons.length; i++) {\n          let grey_image = listButtons[i].querySelector(`img`).getAttribute('grey-image');\n          listButtons[i].querySelector(`img`).setAttribute('src', grey_image)\n        }\n        document.getElementById(`${unique_id}`).querySelector(`[videoIndex='${index}']`).querySelector(`img`).style.opacity = '0.5';\n        let color_image = document.getElementById(`${unique_id}`).querySelector(`[videoIndex='${index}']`).querySelector(`img`).getAttribute('color-image');\n\n        setTimeout(() => {\n          document.getElementById(`${unique_id}`).querySelector(`[videoIndex='${index}']`).querySelector(`img`).setAttribute('src', color_image)\n          setTimeout(() => {\n            document.getElementById(`${unique_id}`).querySelector(`[videoIndex='${index}']`).querySelector(`img`).style.opacity = '1';\n          }, 0);\n        }, 300);\n      }\n      function onPlayClick(unique_id, embed_url) {\n        const bodyElement = document.body;\n        bodyElement.style.overflow = 'hidden';\n        const videoWrappers = document.querySelectorAll('.afiniti-video-wrapper');\n        const videoContainers = document.querySelectorAll('.banner-video');\n\n        videoWrappers.forEach((videoWrapper, index) => {\n          const videoContainer = videoContainers[index];\n\n          videoWrapper.classList.add(\"active\");\n          videoContainer.classList.add(\"fullbleed\"); \/\/ used when bg videos is not 100%\n          videoWrapper.style.position = 'fixed';\n          videoWrapper.style.zIndex = 999;\n\n        });\n\n        \/\/ Stop the video carousal autoplay\n        clearInterval(loopInterval);\n        autoPlayArr = [];\n\n\n        const autoPlayIndex = autoPlayArr.findIndex((element) => (element.id === unique_id))\n        if (autoPlayIndex.length > 0) {\n          autoPlayArr[autoPlayIndex].autoPlayInit = false;\n        }\n        const iframe = document.createElement(\"iframe\");\n        iframe.classList = [\"video-player\"]\n        iframe.src = embed_url;\n        iframe.allow = \"autoplay\"\n\n        document.getElementById(`${unique_id}`).appendChild(iframe)\n        document.getElementById(`${unique_id}`).getElementsByClassName(\"overlay-wrapper\")[0].style.opacity = 0;\n        document.getElementById(`${unique_id}`).querySelector(\".close-button\").style.opacity = 1;\n        document.querySelector(\".header\").firstElementChild.style.opacity = 0;\n        \/\/ setTimeout(() => {\n        document.getElementById(`${unique_id}`).getElementsByClassName(\"overlay-wrapper\")[0].style.display = \"none\";\n        \/\/ }, 100)\n      }\n\n      function onCloseClick(unique_id) {\n        autoPlay(videoArrayCopy, unique_id, autoPlayDelayCopy, logoIndexCopy); \/\/ start the autoplay again\n        const bodyElement = document.body;\n        bodyElement.style.overflow = 'unset';\n\n        const videoWrappers = document.querySelectorAll('.afiniti-video-wrapper');\n        const videoContainers = document.querySelectorAll('.banner-video');\n\n        videoWrappers.forEach((videoWrapper, index) => {\n          const videoContainer = videoContainers[index];\n\n          videoWrapper.classList.remove(\"active\");\n          videoContainer.classList.remove(\"fullbleed\");\n          videoWrapper.style.position = 'relative';\n          videoWrapper.style.zIndex = \"unset\";\n        })\n\n        const autoPlayIndex = autoPlayArr.findIndex((element) => (element.id === unique_id))\n        if (autoPlayIndex) {\n          autoPlayArr[autoPlayIndex].autoPlayInit = true;\n        }\n        document.getElementById(`${unique_id}`).getElementsByClassName(\"overlay-wrapper\")[0].style.display = \"block\";\n        document.getElementById(`${unique_id}`).querySelector(\".close-button\").style.opacity = 0;\n\n\n\n        \/\/ setTimeout(() => {\n        document.getElementById(`${unique_id}`).getElementsByClassName(\"overlay-wrapper\")[0].style.opacity = 1;\n        document.querySelector(\".header\").firstElementChild.style.opacity = 1;\n\n        var iframes = document.getElementById(`${unique_id}`).getElementsByTagName(\"iframe\")\n        if (iframes != null) {\n          for (var i = 0; i < iframes.length; i++) {\n\n            iframes[i].remove();\n          }\n        }\n        \/\/ }, 500)\n\n      }\n\n      function getEmbedUrl(url) {\n        if (url.includes(\"youtube\")) {\n          return getYouTubeEmbedUrl(url)\n        }\n        else if (url.includes(\"vimeo\")) {\n          return getVimeoEmbedUrl(url)\n        }\n        else {\n          return undefined\n        }\n      }\n\n      function getYouTubeEmbedUrl(url) {\n        \/\/ Our regex pattern to look for a youTube ID\n        const regExp = \/^.*(youtu.be\\\/|v\\\/|u\\\/\\w\\\/|embed\\\/|watch\\?v=|&v=)([^#&?]*).*\/;\n        \/\/Match the url with the regex\n        const match = url.match(regExp);\n        \/\/Return the result\n        const videoId = match && match[2].length === 11 ? match[2] : undefined;\n        if (videoId) {\n          return 'https:\/\/www.youtube.com\/embed\/' + videoId + '?autoplay=1';\n        }\n        else {\n          return undefined\n        }\n      };\n      function getVimeoEmbedUrl(url) {\n        \/\/ Look for a string with 'vimeo', then whatever, then a\n        \/\/ forward slash and a group of digits.\n        const match = \/vimeo.*\\\/(\\d+)\/i.exec(url);\n        \/\/ If the match isn't null (i.e. it matched)\n        if (match) {\n          \/\/ The grouped\/matched digits from the regex\n          return 'https:\/\/player.vimeo.com\/video\/' + match[1] + '?autoplay=1';\n        }\n        else {\n          return undefined;\n        }\n      };\n\n      document.addEventListener(\"DOMContentLoaded\", function () {\n        const playBtn = document.querySelector(\".play-video-btn\");\n        const deepLink = document.querySelector(\".deep-link\");\n        const closeBtn = document.querySelector(\".close-button\");\n\n        const originalPath = window.location.pathname;\n\n        if (playBtn) {\n          playBtn.addEventListener(\"click\", function () {\n            let deep_link = deepLink.getAttribute(\"deep-link\");\n            const newUrl = \"\/video\/\" + deep_link; \n            history.pushState({ video: true }, \"\", newUrl);\n          });\n        }\n\n        if (closeBtn) {\n          closeBtn.addEventListener(\"click\", function () {\n            history.pushState({}, \"\", originalPath);\n          });\n        }\n        \/\/ Double click on wrapper play a video.\n        const wrapper = document.querySelector(\".afiniti-video-wrapper\"); \n\n        if (wrapper && playBtn) {\n          wrapper.addEventListener(\"dblclick\", function (e) {\n            e.preventDefault();\n            playBtn.click();\n          });\n        }\n      });\n\n\n    <\/script>\n    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7a63046 e-flex e-con-boxed e-con e-parent\" data-id=\"7a63046\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4e7dbb9 elementor-widget__width-initial elementor-widget elementor-widget-heading\" data-id=\"4e7dbb9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Together we can<br>\ntransform your business<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-01137a6 elementor-widget elementor-widget-cta\" data-id=\"01137a6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"cta.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t    <div class=\"cta-container\">\n      <a class=\"cta-wrapper   theme-light  \"\n         href=\"https:\/\/www.afiniti.com\/contact\/\"  target=\"_blank\" >\n                  Contact Us                <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 21 18\" width=\"21\" height=\"18\"\n          class=\" cta-svg  \">\n          <path\n            d=\"m2.64,13.88l2-1.02,3.02-1.54,3.12-1.59,2.78-1.42,3.12-1.59,1.08-.55-1.49,4.67s-.15.41.2.51c.37.1.49-.19.56-.38l.91-2.78.81-2.48s.16-.33-.12-.46c-.22-.11-2.54-.84-2.54-.84,0,0-3.39-1.1-3.51-1.13-.17-.05-.52-.12-.6.18-.03.11-.09.38.37.51s3.6,1.15,3.6,1.15l1.41.44-4.36,2.22L2.46,13.12s-.41.15-.26.52c0,0,.11.3.44.23Z\"\n            fill=\" #ffffff\"\n            stroke-width=\"0\" \/>\n        <\/svg>\n      <\/a>\n    <\/div>\n\n    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>&nbsp; More happy customers, more revenue, across channels Play Video Together we can transform your business Contact Us &nbsp;<\/p>\n","protected":false},"author":4,"featured_media":13985,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"page-category":[],"class_list":["post-12083","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/pages\/12083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/comments?post=12083"}],"version-history":[{"count":7,"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/pages\/12083\/revisions"}],"predecessor-version":[{"id":13921,"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/pages\/12083\/revisions\/13921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/media\/13985"}],"wp:attachment":[{"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/media?parent=12083"}],"wp:term":[{"taxonomy":"page-category","embeddable":true,"href":"https:\/\/www.afiniti.com\/api\/wp\/v2\/page-category?post=12083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}