Advertisement
michaelyuen

Untitled

Jul 2nd, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML>
  2. <html dir="ltr">
  3.    <head>
  4.       <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5.       <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.       <meta name="viewport" content="width=device-width, user-scalable=yes">
  7.       <title>ReCAPTCHA Demo</title>
  8.       <link rel="stylesheet" href="https://www.gstatic.com/recaptcha/api2/v1529908317173/demo__ltr.css" type="text/css">
  9.       <script src='/recaptcha/api.js' async defer nonce="4MAamreyHg4NCTidpO3JGTKlOuQ"></script>
  10.    </head>
  11.    <body>
  12.       <div class="sample-form">
  13.          <form id="recaptcha-demo-form" method="POST">
  14.             <fieldset>
  15.                <legend>ReCAPTCHA Demo</legend>
  16.                <ul>
  17.                   <li><label for="input1">First Name</label><input class="jfk-textinput" id="input1" name="input1" type="text" value="Jane" disabled aria-disabled="true"></li>
  18.                   <li><label for="input2">Last Name</label><input class="jfk-textinput" id="input2" name="input2" type="text" value="Smith" disabled aria-disabled="true"></li>
  19.                   <li><label for="input3">Email Address</label><input class="jfk-textinput" id="input3" name="input3" type="text" value="stopallbots@gmail.com" disabled aria-disabled="true"></li>
  20.                   <li>
  21.                      <p>Please Select Color:</p>
  22.                      <label class="jfk-radiobutton-label" for="option1">
  23.                         <input class="jfk-radiobutton-checked" type="radio" id="option1" name="radios" value="option1" disabled aria-disabled="true" checked aria-checked="true">Red
  24.                     </label>
  25.                     <label class="jfk-radiobutton-label" for="option2"><input class="jfk-radiobutton" type="radio" id="option2" name="radios" value="option2" disabled aria-disabled="true">Green
  26.                     </label>
  27.                   </li>
  28.                   <li>
  29.                      <div class="">
  30.                         <!-- BEGIN: ReCAPTCHA implementation example. -->
  31.                         <div id="recaptcha-demo" class="g-recaptcha" data-sitekey="6LfP0CITAAAAAHq9FOgCo7v_fb0-pmmH9VW3ziFs" data-callback="onSuccess" data-bind="recaptcha-demo-submit"></div>
  32.                         <script nonce="4MAamreyHg4NCTidpO3JGTKlOuQ">
  33.                            var onSuccess = function(response) {
  34.                              var errorDivs = document.getElementsByClassName("recaptcha-error");
  35.                              if (errorDivs.length) {
  36.                                errorDivs[0].className = "";
  37.                              }
  38.                              var errorMsgs = document.getElementsByClassName("recaptcha-error-message");
  39.                              if (errorMsgs.length) {
  40.                                errorMsgs[0].parentNode.removeChild(errorMsgs[0]);
  41.                              }
  42.                              document.getElementById("recaptcha-demo-form").submit();};
  43.                         </script><!-- Optional noscript fallback. --><!-- END: ReCAPTCHA implementation example. -->
  44.                      </div>
  45.                   </li>
  46.                   <li><button id="recaptcha-demo-submit" type="button" disabled>Sumit</button></li>
  47.                </ul>
  48.             </fieldset>
  49.          </form>
  50.       </div>
  51.    </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement