
<!-- 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":6843,"date":"2023-10-24T08:21:16","date_gmt":"2023-10-24T08:21:16","guid":{"rendered":"https:\/\/website23-prsrhearfpxnbzqh.afiniti.io\/?page_id=6843"},"modified":"2026-01-20T11:07:21","modified_gmt":"2026-01-20T11:07:21","slug":"job","status":"publish","type":"page","link":"https:\/\/staging.afiniti.com\/job\/","title":{"rendered":"Job"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"6843\" class=\"elementor elementor-6843\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1eaab22 e-flex e-con-boxed e-con e-parent\" data-id=\"1eaab22\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1c07859 elementor-widget elementor-widget-shortcode\" data-id=\"1c07859\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">        <div class=\"detailWrap\">\r\n            <h1 class=\"job-title\"><\/h1>\r\n        <\/div>\r\n    <\/div>\n\t\t\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<div class=\"elementor-element elementor-element-32d5150 e-flex e-con-boxed e-con e-parent\" data-id=\"32d5150\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-0ab9411 e-flex e-con-boxed e-con e-child\" data-id=\"0ab9411\" 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-6d2d8e5 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"6d2d8e5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fbb322f elementor-widget elementor-widget-cta-new\" data-id=\"fbb322f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"cta-new.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-new-wrapper cta-wrapper   theme-light  \"\n         href=\"https:\/\/staging.afiniti.com\/jobs\/\"  target=\"_blank\" >\n                  GO BACK TO JOBS LIST        \n        \n      <div class=\"cta-lottie   label-lottie \" data-lottie=\"https:\/\/staging.afiniti.com\/wp-content\/plugins\/design-system-plugin-2026\/widgets\/..\/assets\/lottie\/button-dark-single.json\"><\/div>\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\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>GO BACK TO JOBS LIST<\/p>\n","protected":false},"author":4,"featured_media":12194,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"page-category":[],"class_list":["post-6843","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/pages\/6843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/comments?post=6843"}],"version-history":[{"count":65,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/pages\/6843\/revisions"}],"predecessor-version":[{"id":19386,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/pages\/6843\/revisions\/19386"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/media\/12194"}],"wp:attachment":[{"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/media?parent=6843"}],"wp:term":[{"taxonomy":"page-category","embeddable":true,"href":"https:\/\/staging.afiniti.com\/api\/wp\/v2\/page-category?post=6843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}