1const wpcf_form = document.querySelector('.wpcf7-form'); 2const wpcf_form_submit = document.querySelector('.wpcf7-submit'); 3 4function yandex_captcha_onload() { 5 if (!window.smartCaptcha) { 6 return; 7 } 8 9 window.smartCaptcha.render('captcha-container', { 10 sitekey: 'ysc1_gMrfJCDsQSQ621ibFgWAHg22Tqq15TjGeMxXzbS6369076d2', 11 invisible: true, // СделаÑÑ ÐºÐ°Ð¿ÑÑ Ð½ÐµÐ²Ð¸Ð´Ð¸Ð¼Ð¾Ð¹ 12 shieldPosition: 'top-left', 13 callback: callback_smart_captcha, 14 }); 15} 16 17function callback_smart_captcha() { 18 19 if( wpcf_form ) { 20 wpcf_form_submit.classList.add('smartCaptcha_executed'); 21 wpcf_form_submit.click(); 22 } 23 24} 25 26document.addEventListener('DOMContentLoaded', function() { 27 28 if( wpcf_form_submit ) { 29 wpcf_form_submit.addEventListener('click', function(e) { 30 if( !wpcf_form_submit.classList.contains('smartCaptcha_executed') ) { 31 e.preventDefault(); 32 if (!window.smartCaptcha) { 33 return; 34 } 35 window.smartCaptcha.execute(); 36 } 37 }); 38 } 39 40});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.