1/** 2 * @param {string} service - lobnya / sevastopol / udaltsova / nauchnyy 3 * @param {string} phone - ТелеÑон 4 * @param {string} type - forma / red_phone 5 * @param {string} name - ÐÐ¼Ñ (ÑÑабоÑÐ°ÐµÑ ÑолÑко в type === forma) 6 */ 7function sendDataToServer(service, phone, type, name= "-") { 8 const currentUrl = window.location.href; 9 const data = { 10 url: currentUrl, 11 service: service, 12 phone: phone, 13 type: type, 14 name: name 15 }; 16 fetch('https://fos.qrenta.ru/v1/fos', { 17 method: 'POST', 18 headers: {'Content-Type': 'application/json'}, 19 body: JSON.stringify(data) 20 }).then(response => { 21 if (!response.ok) { 22 throw new Error(`HTTP error! status: ${response.status}`); 23 } 24 return response.json(); 25 }).then(result => { 26 console.log('Success:', result); 27 }).catch(error => { 28 console.error('Error:', error); 29 }); 30}
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.