1/** 2 * @param {string} service - sevastopolskaya / kaluzhskaya / lobnenskaya / udalcovo - название ÑеÑвиÑов 3 * @param {string} type - fos / red_button - Ñип обÑаÑной ÑвÑзи 4 * @param {string} client_phone - ТелеÑон клиенÑа 5 * @param {string} service_phone - ТелеÑон Ñ ÑайÑа 6 * @param {string} site - ТекÑÑий ÑÐ°Ð¹Ñ 7 */ 8function sendMangoOfficeApi(service, type, client_phone, service_phone, site = '') { 9 let currentUrl = ""; 10 if(site.length < 1) { 11 currentUrl = window.location.href; 12 }else{ 13 currentUrl = site 14 } 15 const data = { 16 service: service, 17 type: type, 18 client_phone: client_phone, 19 service_phone: service_phone, 20 site: currentUrl 21 }; 22 fetch('https://callback.qrenta.ru/fos.php', { 23 method: 'POST', 24 headers: {'Content-Type': 'application/json'}, 25 body: JSON.stringify(data) 26 }).then(response => { 27 if (!response.ok) { 28 throw new Error(`HTTP error! status: ${response.status}`); 29 } 30 return response.json(); 31 }).then(result => { 32 console.log('Success:', result); 33 }).catch(error => { 34 console.error('Error:', error); 35 }); 36}
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.