1document.addEventListener("DOMContentLoaded", function () { 2 3 let head = document.getElementsByTagName('head')[0]; 4 5 let linkFont = document.createElement('link'); 6 linkFont.setAttribute('href', 'https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&subset=cyrillic&display=swap'); // &amp; 7 linkFont.setAttribute('rel', 'stylesheet'); 8 head.appendChild(linkFont); 9 10 // Yandex.Metrika 11 (function (d, w, c) { 12 (w[c] = w[c] || []).push(function () { 13 try { 14 w.yaCounter481062 = new Ya.Metrika({ 15 "id": 481062, 16 "webvisor": true, 17 "trackHash": false, 18 "clickmap": true, 19 "trackLinks": true, 20 "accurateTrackBounce": true, 21 "ut": "noindex", 22 "params": [] 23 }); 24 } catch (e) { 25 } 26 }); 27 var n = d.getElementsByTagName("script")[0], 28 s = d.createElement("script"), 29 f = function () { 30 n.parentNode.insertBefore(s, n); 31 }; 32 s.type = "text/javascript"; 33 s.async = true; 34 s.src = "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/watch.js"; 35 if (w.opera == "[object Opera]") { 36 d.addEventListener("DOMContentLoaded", f, false); 37 } else { 38 f(); 39 } 40 })(document, window, "yandex_metrika_callbacks"); 41 42 // jQuery 43 $(document).ready(function () { 44 45 // ������� Live Internet 46 let liveInternetImageSrc = '//counter.yadro.ru/hit;bn-ru?t39.6;r' 47 + escape(document.referrer) 48 + ((typeof (screen) == "undefined") ? "" : ";s" + screen.width + "*" + screen.height + "*" + (screen.colorDepth ? screen.colorDepth : screen.pixelDepth)) 49 + ";u" + escape(document.URL) 50 + ";" + Math.random(); 51 52 $('#counter-li') 53 .append( 54 $('<a />', { 55 href: 'https://metrika.yandex.ru/stat/?id=481062&from=informer', 56 target: '_blank', 57 rel: 'nofollow' 58 }) 59 .append($('<img />', { 60 src: 'https://metrika-informer.com/informer/481062/3_1_FFFFFFFF_EFEFEFFF_0_visits', 61 style: 'width:88px; height:31px; border:0;', 62 width: 88, 63 height: 31, 64 class: 'ym-advanced-informer', 65 'data-cid': '481062', 66 'data-lang': 'ru' 67 }))) 68 .append( 69 $('<a />', {href: '//www.liveinternet.ru/click;bn-ru', target: '_blank'}) 70 .append($('<img />', {src: liveInternetImageSrc, border: 0, width: 31, height: 31}))); 71 72 // ����������� �������� AdFox 73 let scriptAdFox = document.createElement('script'); 74 scriptAdFox.setAttribute('src', 'https://yastatic.net/pcode/adfox/loader.js'); 75 scriptAdFox.setAttribute('crossorigin', 'anonymous'); 76 scriptAdFox.addEventListener('load', () => { 77 $('.af-item').each(function () { 78 let item = $(this); 79 window.Ya.adfoxCode.create({ 80 ownerId: item.data('owner-id'), 81 containerId: item.data('container-id'), 82 params: { 83 pp: item.data('pp'), 84 ps: item.data('ps'), 85 p2: item.data('p2') 86 }, 87 onRender: function () { 88 $('.sales_list-more-phone').each(function () { 89 let item = $(this); 90 let phone = item.data('phone'); 91 if ((phone) && (phone !== '')) { 92 item.prop('href', 'tel:+7' + phone); 93 item.show(); 94 } 95 else { 96 item.hide(); 97 } 98 }); 99 } 100 }); 101 }); 102 103 // InPage ������ � ��������� ������ 104 if ($('#adfox_15850415911187142').length) { 105 try { 106 window.Ya.adfoxCode.create({ 107 ownerId: 271186, 108 containerId: "adfox_15850415911187142", 109 params: { 110 pp: "ytl", 111 ps: "cthm", 112 p2: "gtea" 113 }, 114 onRender: function () { 115 let url = $("#adfox_15850415911187142 a").attr("href"); 116 let image = $("#adfox_15850415911187142 img").attr("src"); 117 $(".detail-gazeta-in-read__stub").attr("href", url); 118 $(".detail-gazeta-in-read__container") 119 .css("background", "url('" + image
119+ "') no-repeat center center") 120 .css("background-size", "cover"); 121 $(".detail-gazeta-in-read__stub").addClass("detail-gazeta-in-read__stub-active") 122 .html(""); 123 }, 124 onStub: function () { 125 $(".detail-gazeta-in-read__stub").remove(); 126 } 127 }); 128 } catch (e) { 129 } 130 } 131 }); 132 head.appendChild(scriptAdFox); 133 134 // scroll to top, BNRU-3341 135 $('.toUpButton').click(function () { 136 $('html, body').animate({ 137 scrollTop: 0 138 }, 500); 139 }); 140 141 $(window).scroll(function () { 142 // BNRU-3341 143 let scroll = Math.round($(window).scrollTop()); // ������ ������� � px 144 let button = $('.toUpButton'); 145 scroll > 300 ? button.removeClass('hide') : button.addClass('hide'); 146 }); 147 }); 148});;
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.