1function loadSmartCaptcha(id) { 2 const waitForSmartCaptcha = setInterval(() => { 3 if (window.smartCaptcha) { 4 clearInterval(waitForSmartCaptcha); 5 const container = document.getElementById(id); 6 7 const widgetId = window.smartCaptcha.render(container, { 8 sitekey: 'ysc1_uJ8xdGPEQYPfelQJvYq5BjhvFrklNLTcTTvqt5Iz2c7c71b8', 9 hl: 'ru', 10 callback: function (token) { 11 }, 12 invisible: true, 13 hideShield: true, 14 }); 15 16 container.closest('form').dataset.widgetId = widgetId; 17 18 return widgetId; 19 } 20 }, 100); 21} 22 23$(document).on('click', '.detail-news1 .to-cart', function () { 24 ym(20761690, 'reachGoal', 'blog2basket'); 25 console.log('УÑла ÑÐµÐ»Ñ blog2basket'); 26}); 27 28$(function ($) { 29 $(document).mouseup(function (e) { // ÑобÑÑие клика по веб-докÑменÑÑ 30 var div = $(".holidays-notice-popup-inner"); // ÑÑÑ ÑказÑваем ID ÑлеменÑа 31 if (!div.is(e.target) // еÑли клик бÑл не по наÑÐµÐ¼Ñ Ð±Ð»Ð¾ÐºÑ 32 && div.has(e.target).length === 0) { // и не по его доÑеÑним ÑлеменÑам 33 $('#holiday-notice-popup').hide(); // ÑкÑÑваем его 34 $('body').css('overflow-y', 'visible'); 35 } 36 }); 37});
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.