Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Google RECAPTCHA:
- <div class="wa-captcha wa-recaptcha">
- <a class="wa-captcha-refresh" style="display:none;"></a>
- <div class="g-recaptcha initialized"><div style="width: 304px; height: 78px;"><div><iframe src="https://www.google.com/recaptcha/api2/anchor?k=123&co=aHR0cDovL3dhLmxhbjo4MA..&hl=ru&v=r20171109115411&size=normal&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>
- </div>
- wa-captcha:
- <div class="wa-captcha">
- <p>
- <img class="wa-captcha-img" src="/shop/captcha.php?rid=15108364235a0d88c79e5c0" alt="CAPTCHA" title="Обновить капчу (CAPTCHA)">
- <strong>→</strong>
- <input type="text" name="captcha" class="wa-captcha-input" autocomplete="off">
- </p>
- <p>
- <a href="#" class="wa-captcha-refresh">Обновить капчу (CAPTCHA)</a>
- </p>
- <script type="text/javascript">
- $(function() {
- $('div.wa-captcha .wa-captcha-refresh, div.wa-captcha .wa-captcha-img').click(function(){
- var div = $(this).parents('div.wa-captcha');
- var captcha = div.find('.wa-captcha-img');
- if(captcha.length) {
- captcha.attr('src', captcha.attr('src').replace(/\?.*$/,'?rid='+Math.random()));
- captcha.one('load', function() {
- div.find('.wa-captcha-input').focus();
- });
- };
- div.find('input').val('');
- return false;
- });
- });
- </script>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement