Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html dir="ltr">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, user-scalable=yes">
- <title>ReCAPTCHA Demo</title>
- <link rel="stylesheet" href="https://www.gstatic.com/recaptcha/api2/v1529908317173/demo__ltr.css" type="text/css">
- <script src='/recaptcha/api.js' async defer nonce="4MAamreyHg4NCTidpO3JGTKlOuQ"></script>
- </head>
- <body>
- <div class="sample-form">
- <form id="recaptcha-demo-form" method="POST">
- <fieldset>
- <legend>ReCAPTCHA Demo</legend>
- <ul>
- <li><label for="input1">First Name</label><input class="jfk-textinput" id="input1" name="input1" type="text" value="Jane" disabled aria-disabled="true"></li>
- <li><label for="input2">Last Name</label><input class="jfk-textinput" id="input2" name="input2" type="text" value="Smith" disabled aria-disabled="true"></li>
- <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>
- <li>
- <p>Please Select Color:</p>
- <label class="jfk-radiobutton-label" for="option1">
- <input class="jfk-radiobutton-checked" type="radio" id="option1" name="radios" value="option1" disabled aria-disabled="true" checked aria-checked="true">Red
- </label>
- <label class="jfk-radiobutton-label" for="option2"><input class="jfk-radiobutton" type="radio" id="option2" name="radios" value="option2" disabled aria-disabled="true">Green
- </label>
- </li>
- <li>
- <div class="">
- <!-- BEGIN: ReCAPTCHA implementation example. -->
- <div id="recaptcha-demo" class="g-recaptcha" data-sitekey="6LfP0CITAAAAAHq9FOgCo7v_fb0-pmmH9VW3ziFs" data-callback="onSuccess" data-bind="recaptcha-demo-submit"></div>
- <script nonce="4MAamreyHg4NCTidpO3JGTKlOuQ">
- var onSuccess = function(response) {
- var errorDivs = document.getElementsByClassName("recaptcha-error");
- if (errorDivs.length) {
- errorDivs[0].className = "";
- }
- var errorMsgs = document.getElementsByClassName("recaptcha-error-message");
- if (errorMsgs.length) {
- errorMsgs[0].parentNode.removeChild(errorMsgs[0]);
- }
- document.getElementById("recaptcha-demo-form").submit();};
- </script><!-- Optional noscript fallback. --><!-- END: ReCAPTCHA implementation example. -->
- </div>
- </li>
- <li><button id="recaptcha-demo-submit" type="button" disabled>Sumit</button></li>
- </ul>
- </fieldset>
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement