1$("#client_phone").mask("+7 (999) 999-99-99"); 2 3$('.modal-form-open').click(function (event) { 4 event.preventDefault(); 5 this.blur(); 6 let modalForm = $("#modal-form"); 7 let button = $(this); 8 modalForm.find("#recall-form-name").text(button.data('name')); 9 modalForm.modal(); 10}); 11 12$(document).on("click", "#form-recall-send", function (event) { 13 event.preventDefault(); 14 let form = $(this).closest('#recall-form'); 15 let phone_client = form.find('input[name=client_phone]')?.val().replace(/\D+/g, ""); 16 let service = form.find('select[name="service"]')?.val(); 17 18 let services = { 19 'sevastopolskaya': { 20 "name": "sevastopolskaya", 21 'phone': '74951507036', 22 }, 23 'kaluzhskaya': { 24 "name": 'kaluzhskaya', 25 'phone': '74953745055' 26 }, 27 'lobnenskaya': { 28 "name": 'lobnenskaya', 29 'phone': '74951507073' 30 }, 31 'udalcovo': { 32 "name": 'udalcovo', 33 'phone': '74951503356' 34 } 35 } 36 37 if (phone_client === '') { 38 showNotification('ÐÑедÑпÑеждение!', 'Ðоле ÑелеÑон не заполнено!', true); 39 return false; 40 } 41 console.log(service) 42 if (!service) { 43 showNotification('ÐÑедÑпÑеждение!', 'ÐÑбеÑиÑе адÑÐµÑ ÑеÑвиÑа', true); 44 return false; 45 } 46 if (form.find('#check_agree').is(':checked') === false) { 47 showNotification('ÐÑедÑпÑеждение!', 'ÐожалÑйÑÑа, подÑвеÑдиÑе обÑабоÑÐºÑ Ð¿ÐµÑÑоналÑнÑÑ Ð´Ð°Ð½Ð½ÑÑ ', true) 48 return false; 49 } 50 51 let service_name = services[service]['name']; 52 let phone_service = document.getElementById(service_name)?.textContent?.replace(/\D+/g, "") || services[service]['phone']; 53 sendMangoOfficeApi(service_name, 'fos', phone_client, phone_service); 54 showNotification('ÐÑпÑавлено!', 'ÐаÑа заÑвка полÑÑена, Ð¼Ñ Ð¿ÐµÑезвоним в ÑеÑении 30 ÑекÑнд'); 55 56 $(this).blur(); 57}); 58 59function showNotification(header, message, closeExisting = false) { 60 let modal = $("#modal-report"); 61 62 modal.find("#modal-report-header").text(header); 63 modal.find("#modal-report-massage").text(message); 64 65 if (closeExisting) { 66 modal.modal({ 67 closeExisting: false 68 }); 69 } else { 70 modal.modal({ 71 fadeDuration: 200, 72 clickClose: true, 73 escapeClose: true 74 }); 75 } 76} 77 78$('.form-recall-ok').click(function () { 79 var paramsString = window.location.host; 80 if (paramsString === 'remont-turbiny.com') { 81 yaCounter92047965.reachGoal('fos_okey'); 82 console.log('Ð¦ÐµÐ»Ñ fos_okey remont-turbiny'); 83 } else if (paramsString === 'remont-dizelnogo-dvigatelya.com') { 84 yaCounter92047978.reachGoal('fos_okey'); 85 console.log('Ð¦ÐµÐ»Ñ fos_okey remont-dizelnogo-dvigatelya'); 86 } else if (paramsString === 'remont-dvigatelya.com') { 87 yaCounter92048006.reachGoal('fos_okey'); 88 console.log('Ð¦ÐµÐ»Ñ fos_okey remont-turbiny'); 89 } 90});
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.