Advertisement
Guest User

Untitled

a guest
Nov 16th, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.92 KB | None | 0 0
  1. Google RECAPTCHA:
  2.  
  3. <div class="wa-captcha wa-recaptcha">
  4.     <a class="wa-captcha-refresh" style="display:none;"></a>
  5.     <div class="g-recaptcha initialized"><div style="width: 304px; height: 78px;"><div><iframe src="https://www.google.com/recaptcha/api2/anchor?k=123&amp;co=aHR0cDovL3dhLmxhbjo4MA..&amp;hl=ru&amp;v=r20171109115411&amp;size=normal&amp;cb=rvrma6hhf234" width="304" height="78" role="presentation" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox"></iframe></div><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid #c1c1c1; margin: 10px 25px; padding: 0px; resize: none;  display: none; "></textarea></div></div>
  6. </div>
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. wa-captcha:
  18.  
  19. <div class="wa-captcha">
  20.     <p>
  21.         <img class="wa-captcha-img" src="/shop/captcha.php?rid=15108364235a0d88c79e5c0" alt="CAPTCHA" title="Обновить капчу (CAPTCHA)">
  22.         <strong></strong>
  23.         <input type="text" name="captcha" class="wa-captcha-input" autocomplete="off">
  24.     </p>
  25.     <p>
  26.         <a href="#" class="wa-captcha-refresh">Обновить капчу (CAPTCHA)</a>
  27.     </p>
  28.     <script type="text/javascript">
  29.     $(function() {
  30.         $('div.wa-captcha .wa-captcha-refresh, div.wa-captcha .wa-captcha-img').click(function(){
  31.             var div = $(this).parents('div.wa-captcha');
  32.             var captcha = div.find('.wa-captcha-img');
  33.             if(captcha.length) {
  34.                 captcha.attr('src', captcha.attr('src').replace(/\?.*$/,'?rid='+Math.random()));
  35.                 captcha.one('load', function() {
  36.                     div.find('.wa-captcha-input').focus();
  37.                 });
  38.             };
  39.             div.find('input').val('');
  40.             return false;
  41.         });
  42.     });
  43.     </script>
  44. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement