1$(document).on('click', '.bt-whatsapp-site', function(e) { 2 e.preventDefault(); 3 openUrl($(this)); 4 tracking(1); 5}); 6 7function openUrl(obj) { 8 var link = obj.attr('href'); 9 window.open(link, '_blank'); 10} 11 12function tracking(type) { 13 $.ajax({ 14 type: "post", 15 url: "ajax/clickTracking", 16 dataType: "json", 17 data: { 18 type: type 19 }, 20 success: function(data) { 21 if (data) { 22 alert (data); 23 } 24 } 25 }); 26} 27 28$(window).on('resize', function(){ 29 if (window.innerWidth > 991) { 30 $('#site-menu-topo').addClass ('desktopClass'); 31 $('#site-menu-topo').removeClass ('mobileClass'); 32 } else { 33 $('#site-menu-topo').removeClass ('desktopClass'); 34 $('#site-menu-topo').addClass ('mobileClass'); 35 } 36 37}).resize(); 38 39$.ajax({ 40 type: "POST", 41 url: "ajax/getPopup", 42 dataType: "json", 43 success: function (data) { 44 if (data.show) { 45 $('.popupSite').html(data.content); $('.popup').show(); 46 } 47 } 48}); 49 $('body').on('click', '.close-popup', function () { 50 $('.popup').hide(); 51 $.ajax({ 52 url: 'ajax/getPopupClick', 53 dataType: 'json', 54 type: 'POST', 55 }); 56}); 57 58function callBackToFormDefault(token) { 59 appendInput('form.formComValidate', token); 60} 61 62function appendInput(nameForm, token) { 63 const form = $(nameForm); 64 form.prepend('<input type="hidden" name="g-recaptcha-response" value="' + token + '">'); 65 form.submit(); 66} 67 68$.getScript("https://www.google.com/recaptcha/api.js", function () { 69 if ($('.g-recaptcha-response').length) { 70 $('.g-recaptcha-response').each(function () { 71 $(this).rules('add', {required: true}); 72 }) 73 } 74});
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.