[text] captcha

Viewer

  1. <!doctype html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" style="background-color:#ffffff">
  3.    <head>
  4.       <title>You have been blocked</title>
  5.       <!--[if !mso]>
  6.       <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.       </meta>
  8.       <![endif]-->
  9.       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  10.       </meta>
  11.       <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  12.       <meta name="robots" content="noindex">
  13.       <link rel="preconnect"  href="https://js.datadome.co"/>
  14.       <link rel="preconnect"  href="//static.captcha-delivery.com"/>
  15.       <link rel="preconnect" href="https://www.gstatic.com">
  16.       <link rel="preconnect" href="https://www.googletagmanager.com">
  17.       <link rel="preconnect" href="https://www.google-analytics.com">
  18.       <link rel="preconnect" href="https://api-js.datadome.co">
  19.       <link rel="preconnect" href="https://www.google.com">
  20.       <link rel="preconnect" href="https://fonts.googleapis.com">
  21.       <link rel="preconnect" href="https://fonts.gstatic.com">
  22.       <link rel="stylesheet" href="//static.captcha-delivery.com/captcha/assets/tpl/6dc485c0c428c35b53577b146dc6f9179f55ef9ad41b327a2a179998839364bf/index.css"/>
  23.       <!-- Google Tag Manager -->
  24.       <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  25.          new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  26.          j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  27.          'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  28.          })(window,document,'script','dataLayer','GTM-5KTHT2G');
  29.       </script>
  30.       <!-- End Google Tag Manager -->
  31.       <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  32.       <style>
  33.          /* General font handling */
  34.          *, *::before, *::after
  35.          {
  36.          font-family : Roboto, Verdana, Arial;
  37.          font-weight : 400;
  38.          color       : #000000;
  39.          }
  40.          .captcha__contact__submit
  41.          {
  42.          background-color : #000000 !important;
  43.          }
  44.          .captcha__contact__submit
  45.          {
  46.          color : #FFFFFF !important;
  47.          }
  48.       </style>
  49.    </head>
  50.    <body >
  51.       <script>
  52.          !function(a,b,c,d,e,f){a.ddjskey=e;a.ddoptions=f||null;var m=b.createElement(c),n=b.getElementsByTagName(c)[0];m.async=1,m.src=d,n.parentNode.insertBefore(m,n)}(window,document,"script","https://js.datadome.co/tags.js","A55FBF4311ED6F1BF9911EB71931D5", { responsePage: "captcha" });
  53.       </script>
  54.       <!-- Google Tag Manager (noscript) -->
  55.       <noscript>
  56.          <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KTHT2G"
  57.             height="0" width="0" style="display:none;visibility:hidden"></iframe>
  58.       </noscript>
  59.       <!-- End Google Tag Manager (noscript) -->
  60.       <div id="captcha-container" class="captcha">
  61.          <div id="analyticsCaptchaPassed" data-analytics-captcha-passed="false"></div>
  62.          <div class="captcha__header">
  63.             <div class="captcha__header__container">
  64.                <div class="captcha__header__logo-wrapper">
  65.                   <img src="//static.captcha-delivery.com/captcha/assets/set/1f65946a8ad55ecd871c0db1e0a4c27e7dec2b10/logo.png?update_cache=3079268174847546002" class="captcha__header__logo" alt="Footlocker logo" tabindex="0"/>
  66.                </div>
  67.             </div>
  68.          </div>
  69.          <div class="captcha__human">
  70.             <div class="captcha__human__container" style="min-height: 205px;">
  71.                <div class="captcha__human__title" tabindex="0">
  72.                   We want to make sure it is actually you we are dealing with and not a robot.
  73.                </div>
  74.                <div class="captcha__human__submit-description" tabindex="0">
  75.                   Please click below to access the site.
  76.                </div>
  77.                <div class="captcha__human__captcha-container">
  78.                   <div id="captcha-submit" class="g-recaptcha"></div>
  79.                   <img id="captcha-loader" class="captcha__human__loader"  src="//static.captcha-delivery.com/captcha/assets/tpl/6dc485c0c428c35b53577b146dc6f9179f55ef9ad41b327a2a179998839364bf/loading_spinner.gif" style="display: none">
  80.                </div>
  81.             </div>
  82.          </div>
  83.          <div class="captcha__robot">
  84.             <div class="captcha__robot__container">
  85.                <div class="captcha__robot__warning" tabindex="0">
  86.                   Why is this verification required? Something about the behaviour of the browser has caught our attention.<br><br>There are various possible explanations for this:
  87.                   <ul>
  88.                      <li> you are browsing and clicking at a speed much faster than expected of a human being</li>
  89.                      <li> something is preventing Javascript from working on your computer</li>
  90.                      <li> there is a robot on the same network (IP 73.221.157.242) as you</li>
  91.                   </ul>
  92.                </div>
  93.                <div class="captcha__robot__contact_support" tabindex="0">
  94.                   Having problems accessing the site?
  95.                   <a id="show-human-auth" class="captcha__contact_support__submit" tabindex="0">
  96.                   Contact support
  97.                   </a>
  98.                </div>
  99.                <div id="human-contact-form-wrapper" class="captcha__contact_support hidden not-displayed"
  100.                   xmlns="http://www.w3.org/1999/html">
  101.                   <form id="human-contact-form" class="captcha__contact_form" method="post" action="//c.captcha-delivery.com/captcha/contact-human?initialCid=AHrlqAAAAAMAISQ_HcHmRTEASd2d8g%3D%3D&hash=A55FBF4311ED6F1BF9911EB71931D5&cid=AI5MFeMOhE6lt1vWkHUe9kCB_z4OgKoP1xzGmIziXE7alSWh6w-8Nlbk5xcO%7EGTyfrKyQWbLO%7E1dEXIG8fmXU0Ms7ApiTSvmXZoIgT8WKg">
  102.                      <input type="hidden" id="document_referer" name="document_referer" value="https://www.footlocker.com/">
  103.                      <input type="hidden" id="captcha_hash" name="captcha_hash" value="VszZJhNCiUgdV+iHcyKH1RFSAV0ktHRKHQBxC8qAGmJnezKpA3x8tQ3VzoUdfLSrvbkVrIgloTTDu2HsJ/881o+4kgLEu3RQZSUXqNrJ1QLG3vYBuAnI3PzMuXElA1PfHNEU8u0wtZUmiInbautcxZDeD1J6nEUjAFFC10kh2KA=">
  104.                      <input type="hidden" id="tpl_version" name="tpl_version" value="3">
  105.                      <div class="captcha_contact__radio-container">
  106.                         <div class="contact__label">
  107.                            <label for="human-reason" tabindex="0">Please choose a subject</label>
  108.                         </div>
  109.                         <div class="captcha__contact__radio">
  110.                            <label>
  111.                            <input required name="human-reason" type="radio" value="recaptcha_no_button"> The “I'm not a robot” checkbox is not displaying
  112.                            </label>
  113.                         </div>
  114.                         <div class="captcha__contact__radio">
  115.                            <label>
  116.                            <input required name="human-reason" type="radio" value="recaptcha_no_challenge"> I've checked the box but no test is displaying
  117.                            </label>
  118.                         </div>
  119.                         <div class="captcha__contact__radio">
  120.                            <label>
  121.                            <input required name="human-reason" type="radio" value="recaptcha_cannot_pass_challenge"> I've tried several times but it won't work
  122.                            </label>
  123.                         </div>
  124.                         <div class="captcha__contact__radio">
  125.                            <label>
  126.                            <input required name="human-reason" type="radio" value="other"> Other
  127.                            </label>
  128.                         </div>
  129.                      </div>
  130.                      <div class="captcha__contact__input-container">
  131.                         <textarea rows="4" id="human-comment" name="human-comment" class="captcha__contact__input" placeholder="Comment"></textarea>
  132.                         <div id="human-comment-error" class="captcha__contact__input__error not-displayed">
  133.                            Email is not valid <!-- !!! -->
  134.                         </div>
  135.                      </div>
  136.                      <button id="human-contact-form-submit" type="submit" class="captcha__contact__submit">
  137.                      SUBMIT
  138.                      </button>
  139.                      <img id="human-contact-form-loader" class="captcha__human__loader"  src="//static.captcha-delivery.com/captcha/assets/tpl/6dc485c0c428c35b53577b146dc6f9179f55ef9ad41b327a2a179998839364bf/loading_spinner.gif" style="display: none">
  140.                   </form>
  141.                   <div id="human-contact-form-submit-success" tabindex="0" style="display: none">Your message has been sent.</div>
  142.                   <div id="human-contact-form-submit-failure" style="display: none" tabindex="0">An Error Has Occured..</div>
  143.                </div>
  144.             </div>
  145.          </div>
  146.          <div class="captcha__footer">
  147.             <div class="captcha__footer__container">
  148.             </div>
  149.          </div>
  150.       </div>
  151.       <script>
  152.          ! function r(t, e, n) {
  153.              function a(u, i) {
  154.                  if (!e[u]) {
  155.                      if (!t[u]) {
  156.                          var h = "function" == typeof require && require;
  157.                          if (!i && h) return h(u, !0);
  158.                          if (o) return o(u, !0);
  159.                          var c = new Error("Cannot find module '" + u + "'");
  160.                          throw c.code = "MODULE_NOT_FOUND", c
  161.                      }
  162.                      var s = e[u] = {
  163.                          exports: {}
  164.                      };
  165.                      t[u][0].call(s.exports, (function(r) {
  166.                          return a(t[u][1][r] || r)
  167.                      }), s, s.exports, r, t, e, n)
  168.                  }
  169.                  return e[u].exports
  170.              }
  171.              for (var o = "function" == typeof require && require, u = 0; u < n.length; u++) a(n[u]);
  172.              return a
  173.          }({
  174.              1: [function(r, t, e) {
  175.                  window.ddExecuteCaptchaChallenge = function(r, t) {
  176.                      function e(r, t, e) {
  177.                          this.seed = r, this.currentNumber = r % t, this.offsetParameter = t, this.multiplier = e, this.currentNumber <= 0 && (this.currentNumber += t)
  178.                      }
  179.                      e.prototype.getNext = function() {
  180.                          return this.currentNumber = this.multiplier * this.currentNumber % this.offsetParameter, this.currentNumber
  181.                      };
  182.                      for (var n = [function(r, t) {
  183.                              var e = 26157,
  184.                                  n = 0;
  185.                              if (s = "VEc5dmEybHVaeUJtYjNJZ1lTQnFiMkkvSUVOdmJuUmhZM1FnZFhNZ1lYUWdZWEJ3YkhsQVpHRjBZV1J2YldVdVkyOGdkMmwwYUNCMGFHVWdabTlzYkc5M2FXNW5JR052WkdVNklERTJOMlJ6YUdSb01ITnVhSE0", navigator.userAgent) {
  186.                                  for (var a = 0; a < s.length; a += 1 % Math.ceil(1 + 3.1425172 / navigator.userAgent.length)) n += s.charCodeAt(a).toString(2) | e ^ t;
  187.                                  return n
  188.                              }
  189.                              return s ^ t
  190.                          }, function(r, t) {
  191.                              for (var e = (navigator.userAgent.length << Math.max(r, 3)).toString(2), n = -42, a = 0; a < e.length; a++) n += e.charCodeAt(a) ^ t << a % 3;
  192.                              return n
  193.                          }, function(r, t) {
  194.                              for (var e = 0, n = (navigator.language ? navigator.language.substr(0, 2) : void 0 !== navigator.languages ? navigator.languages[0].substr(0, 2) : "default").toLocaleLowerCase() + t, a = 0; a < n.length; a++) e = ((e = ((e += n.charCodeAt(a) << Math.min((a + t) % (1 + r), 2)) << 3) - e + n.charCodeAt(a)) & e) >> a;
  195.                              return e
  196.                          }], a = new e(function(r) {
  197.                              for (var t = 126 ^ r.charCodeAt(0), e = 1; e < r.length; e++) t += (r.charCodeAt(e) * e ^ r.charCodeAt(e - 1)) >> e % 2;
  198.                              return t
  199.                          }(r), 1723, 7532), o = a.seed, u = 0; u < t; u++) {
  200.                          o ^= (0, n[a.getNext() % n.length])(u, a.seed)
  201.                      }
  202.                      window.ddCaptchaChallenge = o
  203.                  }
  204.              }, {}]
  205.          }, {}, [1]);
  206.          window.ddExecuteCaptchaChallenge( "AI5MFeMOhE6lt1vWkHUe9kCB_z4OgKoP1xzGmIziXE7alSWh6w-8Nlbk5xcO~GTyfrKyQWbLO~1dEXIG8fmXU0Ms7ApiTSvmXZoIgT8WKg" , 10);
  207.          window.captchaCallback = function() {
  208.          if (window.ga && ga.create) {
  209.          ga('send', 'event', 'Challenge', 'Access to website', 'JSKey: A55FBF4311ED6F1BF9911EB71931D5 - ClientId: AI5MFeMOhE6lt1vWkHUe9kCB_z4OgKoP1xzGmIziXE7alSWh6w-8Nlbk5xcO~GTyfrKyQWbLO~1dEXIG8fmXU0Ms7ApiTSvmXZoIgT8WKg');
  210.          }
  211.          
  212.          var captchaSubmitEl = document.getElementById('captcha-submit');
  213.          var captchaLoaderEl = document.getElementById('captcha-loader');
  214.          if (captchaSubmitEl) {
  215.          captchaSubmitEl.style.display = 'none';
  216.          }
  217.          if (captchaLoaderEl) {
  218.          captchaLoaderEl.style.display = ''
  219.          }
  220.          
  221.          var re = new RegExp("datadome=([^;]+)");
  222.          var value = re.exec(document.cookie);
  223.          var ccid = (value != null) ? unescape(value[1]) : null;
  224.          
  225.          var parentFrameUrl = (window.location != window.parent.location) ? document.referrer : document.location.href;
  226.          
  227.          var url = "/captcha/check?";
  228.          var getRequest = 'cid=' + encodeURIComponent( 'AI5MFeMOhE6lt1vWkHUe9kCB_z4OgKoP1xzGmIziXE7alSWh6w-8Nlbk5xcO~GTyfrKyQWbLO~1dEXIG8fmXU0Ms7ApiTSvmXZoIgT8WKg' );
  229.          getRequest += '&icid=' + encodeURIComponent('AHrlqAAAAAMAISQ_HcHmRTEASd2d8g==');
  230.          getRequest += '&ccid=' + encodeURIComponent(ccid);
  231.          
  232.          
  233.          getRequest += '&g-recaptcha-response=' + encodeURIComponent(grecaptcha.getResponse());
  234.          
  235.          getRequest += '&hash=' + encodeURIComponent('A55FBF4311ED6F1BF9911EB71931D5');
  236.          getRequest += '&ua=' + encodeURIComponent('doodoo');
  237.          getRequest += '&referer=' + encodeURIComponent('http://www.footlocker.com/api/users/carts/current/entries');
  238.          getRequest += '&parent_url=' + encodeURIComponent(parentFrameUrl);
  239.          getRequest += '&x-forwarded-for=' + encodeURIComponent('');
  240.          if (window.ddCaptchaChallenge) {
  241.          getRequest += '&captchaChallenge=' + encodeURIComponent(window.ddCaptchaChallenge);
  242.          }
  243.          getRequest += '&s=' + encodeURIComponent('17434');
  244.          
  245.          var request = new XMLHttpRequest();
  246.          request.open(
  247.          'GET',
  248.          url + getRequest,
  249.          true
  250.          );
  251.          
  252.          request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
  253.          request.onload = function() {
  254.          function extractOriginFromUrl(url) {
  255.              var pathArray = url.split('/');
  256.              // `pathArray[1]` should be empty string if referer contains protocol. use it!
  257.              if (pathArray.length >= 3 && pathArray[1] === '') {
  258.                  return pathArray[0] + '//' + pathArray[2];
  259.              }
  260.              return '*'
  261.          }
  262.          if (this.status >= 200 && this.status < 400) {
  263.                  // Track captcha passed
  264.                  var element = document.getElementById('analyticsCaptchaPassed');
  265.                  if (element) {
  266.                      element.setAttribute('data-analytics-captcha-passed', 'true');
  267.                  }
  268.          
  269.                  var cid = "AI5MFeMOhE6lt1vWkHUe9kCB_z4OgKoP1xzGmIziXE7alSWh6w-8Nlbk5xcO~GTyfrKyQWbLO~1dEXIG8fmXU0Ms7ApiTSvmXZoIgT8WKg";
  270.                  var cookie = "AI5MFeMOhE6lt1vWkHUe9kCB_z4OgKoP1xzGmIziXE7alSWh6w-8Nlbk5xcO~GTyfrKyQWbLO~1dEXIG8fmXU0Ms7ApiTSvmXZoIgT8WKg";
  271.                      var reloadHref = "http://www.footlocker.com/api/users/carts/current/entries";
  272.          
  273.                  if (window.parent && window.parent.postMessage && this.responseText !== undefined) {
  274.                      var json = JSON.parse(this.responseText);
  275.                      if (json.hasOwnProperty('cookie') && json.cookie !== null) {
  276.                          cookie = json.cookie;
  277.                          var origin = '*';
  278.                          // we can't use `window.parent.location.origin` here because access from another origin to `window.parent.location` raises a DOMException
  279.                          // except write a new location but it isn't our case.
  280.                          // get it from refrerer by hand
  281.                          if (document.referrer) {
  282.                              origin = extractOriginFromUrl(document.referrer);
  283.                              if(origin === document.location.origin) {
  284.                                  origin = extractOriginFromUrl(reloadHref);
  285.                              }
  286.                          }
  287.          
  288.                          window.parent.postMessage(JSON.stringify({'cookie': json.cookie, 'url': reloadHref}), origin);
  289.                      }
  290.                  }
  291.          
  292.                  // to prevent race condition with postMessage that should setup a cookie
  293.                  // adds some sleep for refresh logic
  294.                  setTimeout(function () {
  295.                      if (window.android
  296.                          && window.android.onCaptchaSuccess) {
  297.                          window.android.onCaptchaSuccess(cid);
  298.                          window.android.onCaptchaSuccess(cookie);
  299.                          return;
  300.                      }
  301.                      if (window.webkit
  302.                          && window.webkit.messageHandlers
  303.                          && window.webkit.messageHandlers.onCaptchaSuccess
  304.                          && window.webkit.messageHandlers.onCaptchaSuccess.postMessage) {
  305.                          window.webkit.messageHandlers.onCaptchaSuccess.postMessage(cookie);
  306.                          return;
  307.                      }
  308.                      if (window.ReactNativeWebView
  309.                        && window.ReactNativeWebView.postMessage) {
  310.                        window.ReactNativeWebView.postMessage(cookie);
  311.                      }
  312.                  }, 500);
  313.          
  314.                  // Fallback reload if postMessage did not succeeded
  315.                  setTimeout(function () {
  316.                      window.top.location.href = reloadHref;
  317.                  }, 7000);
  318.          } else {
  319.              captchaSubmitEl.style.display = '';
  320.              captchaLoaderEl.style.display = 'none'
  321.          }
  322.          };
  323.          request.send();
  324.          }
  325.          
  326.          // HELPERS
  327.          // >= IE9
  328.          function documentReady(fn) {
  329.          if (document.readyState != 'loading'){
  330.          fn();
  331.          } else {
  332.          document.addEventListener('DOMContentLoaded', fn);
  333.          }
  334.          }
  335.          
  336.          function isIE() {
  337.          var ua = window.navigator.userAgent;
  338.          var msie = ua.indexOf('MSIE ');
  339.          var trident = ua.indexOf('Trident/');
  340.          if (msie > 0 || trident > 0) {
  341.          return true;
  342.          }
  343.          }
  344.          function scrollToY(y) {
  345.          if (isIE()) {
  346.          window.scrollTo(0, y);
  347.          } else {
  348.          window.scrollTo({
  349.              top: y,
  350.              left: 0,
  351.              behavior: 'smooth'
  352.          });
  353.          }
  354.          }
  355.          
  356.          function serializeForm(form) {
  357.          if (!form || !form.elements) return;
  358.          
  359.          var serial = [], i, j, first;
  360.          var add = function (name, value) {
  361.          serial.push(encodeURIComponent(name) + '=' + encodeURIComponent(value));
  362.          }
  363.          
  364.          var elems = form.elements;
  365.          for (i = 0; i < elems.length; i += 1, first = false) {
  366.          if (elems[i].name.length > 0) { /* don't include unnamed elements */
  367.              switch (elems[i].type) {
  368.                  case 'select-one': first = true;
  369.                  case 'select-multiple':
  370.                      for (j = 0; j < elems[i].options.length; j += 1)
  371.                          if (elems[i].options[j].selected) {
  372.                              add(elems[i].name, elems[i].options[j].value);
  373.                              if (first) break; /* stop searching for select-one */
  374.                          }
  375.                      break;
  376.                  case 'checkbox':
  377.                  case 'radio': if (!elems[i].checked) break; /* else continue */
  378.                  default: add(elems[i].name, elems[i].value); break;
  379.              }
  380.          }
  381.          }
  382.          return serial.join('&');
  383.          }
  384.          
  385.          // POLYFILLS
  386.          if (window.NodeList && !NodeList.prototype.forEach) {
  387.          NodeList.prototype.forEach = function (callback, thisArg) {
  388.          thisArg = thisArg || window;
  389.          for (var i = 0; i < this.length; i++) {
  390.              callback.call(thisArg, this[i], i, this);
  391.          }
  392.          };
  393.          }
  394.          function submitContactForm(contactFormId, event) {
  395.          
  396.          var contactFormEl = document.getElementById(contactFormId),
  397.          formSubmitEl = document.getElementById(contactFormId + '-submit'),
  398.          formFailureEl = document.getElementById(contactFormId + '-submit-failure'),
  399.          formSuccessEl = document.getElementById(contactFormId + '-submit-success'),
  400.          formLoaderEl = document.getElementById(contactFormId + '-loader');
  401.          event.preventDefault();
  402.          
  403.          formSubmitEl.style.display = 'none';
  404.          formFailureEl.style.display = 'none';
  405.          formSuccessEl.style.display = 'none';
  406.          formLoaderEl.style.display = '';
  407.          
  408.          var request = new XMLHttpRequest();
  409.          request.open(
  410.          contactFormEl.getAttribute('method'),
  411.          contactFormEl.getAttribute('action'),
  412.          true
  413.          );
  414.          request.setRequestHeader(
  415.          "Content-Type",
  416.          "application/x-www-form-urlencoded; charset=UTF-8"
  417.          );
  418.          request.onload = function() {
  419.          if (this.status >= 200 && this.status < 400) {
  420.              formSuccessEl.style.display = '';
  421.              formLoaderEl.style.display = 'none';
  422.              contactFormEl.style.display = 'none';
  423.          } else {
  424.              formSubmitEl.style.display = '';
  425.              formFailureEl.style.display = '';
  426.              formLoaderEl.style.display = 'none';
  427.          }
  428.          };
  429.          request.onerror = function() {
  430.          formSubmitEl.style.display = '';
  431.          formFailureEl.style.display = '';
  432.          formLoaderEl.style.display = 'none';
  433.          };
  434.          
  435.          
  436.          request.send(serializeForm(contactFormEl));
  437.          }
  438.          
  439.          function showForm(formWrapperId) {
  440.          var formWrapperEl = document.getElementById(formWrapperId);
  441.          // IE10+
  442.          if (formWrapperEl.classList.contains('not-displayed')) {
  443.          formWrapperEl.classList.toggle('not-displayed');
  444.          formWrapperEl.classList.toggle('hidden');
  445.          var rect = formWrapperEl.getBoundingClientRect();
  446.          scrollToY(document.body.scrollTop + rect.top);
  447.          
  448.          } else {
  449.          formWrapperEl.classList.toggle('not-displayed');
  450.          formWrapperEl.classList.toggle('hidden');
  451.          }
  452.          
  453.          }
  454.          
  455.          documentReady(function () {
  456.          
  457.          // >= IE8 querySelectorAll
  458.          
  459.          var contactSupportComment = 'Comment';
  460.          var humanCommentEl = document.getElementById('human-comment');
  461.          var problemReasons = document.querySelectorAll('input[type=radio][name=human-reason]');
  462.          problemReasons.forEach(function(problemReason) {
  463.          problemReason.addEventListener('change', function() {
  464.              if (problemReason.value == 'other') {
  465.                  humanCommentEl.setAttribute('required', '');
  466.                  humanCommentEl.setAttribute('placeholder', contactSupportComment+'*');
  467.              } else {
  468.                  humanCommentEl.removeAttribute('required');
  469.                  humanCommentEl.setAttribute('placeholder', contactSupportComment+'');
  470.              }
  471.          });
  472.          });
  473.          
  474.          document.getElementById('captcha-container').addEventListener('keyup', function (event) {
  475.          if (event.code === "Enter" && document.activeElement === document.getElementById('show-human-auth')) {
  476.              showForm('human-contact-form-wrapper');
  477.          }
  478.          });
  479.          document.getElementById('show-human-auth').addEventListener('click', function () {
  480.              showForm('human-contact-form-wrapper');
  481.          });
  482.          
  483.          document.getElementById('human-contact-form').addEventListener('submit', function (e) {
  484.          submitContactForm('human-contact-form', e);
  485.          });
  486.          });
  487.          // Fix issue with Safari 12.*
  488.          window.innerWidth = 512;
  489.          var RecaptchaOptions = {
  490.          theme : 'white'
  491.          };
  492.          window.recaptchaLoadCallback = function() {
  493.          grecaptcha.render('captcha-submit', {
  494.          'sitekey' : '6LccSjEUAAAAANCPhaM2c-WiRxCZ5CzsjR_vd8uX',
  495.          'callback': captchaCallback,
  496.          });
  497.          
  498.          };
  499.          if ("MutationObserver" in window) {
  500.          new MutationObserver(function(mutations) {
  501.          mutations.forEach(function(mutation) {
  502.              if(mutation.type === 'attributes' && mutation.target.localName === 'div' && mutation.attributeName === 'style' && mutation.target.className !== 'g-recaptcha-bubble-arrow') {
  503.                  var bubbleArrowElCollection = document.getElementsByClassName('g-recaptcha-bubble-arrow');
  504.                  if(bubbleArrowElCollection.length > 0) {
  505.                      var recaptchaOuterDivEl = bubbleArrowElCollection[0].parentNode;
  506.                      var automaticallyComputedLeftCss = getComputedStyle(recaptchaOuterDivEl)['left']; // IE9+
  507.                      if (automaticallyComputedLeftCss && automaticallyComputedLeftCss[0] === '-') {
  508.                          recaptchaOuterDivEl.style.left = 0;
  509.                      }
  510.                  }
  511.              }
  512.          });
  513.          }).observe(document.documentElement, {
  514.          attributes: true,
  515.          subtree: true
  516.          });
  517.          }
  518.          var recaptchaJsScript    = document.createElement('script');
  519.          recaptchaJsScript.src    = 'https://www.google.com/recaptcha/api.js?onload=recaptchaLoadCallback&render=explicit&hl=en';
  520.          recaptchaJsScript.type   = 'text/javascript';
  521.          recaptchaJsScript.async  = 1;
  522.          recaptchaJsScript.defer  = 1;
  523.          
  524.          document.getElementsByTagName("body")[0].appendChild(recaptchaJsScript);
  525.       </script>
  526.    </body>
  527. </html>

Editor

You can edit this paste and save as new:


File Description
  • captcha
  • Paste Code
  • 05 May-2021
  • 26.78 Kb
You can Share it: