1(function($){ 2/* опÑеделÑем ÑÐ°Ð·Ð¼ÐµÑ ÑкÑана */ 3$.screenWidth = function() { 4 var screen = $(window).width(); 5 if (screen > 575) 6 { 7 window.width = $('main').width(); 8 } 9 else 10 { 11 window.width = 575; 12 }; 13 var SWidth = $.cookie('ScreenWidth'); 14 if (width != SWidth) { 15 $.cookie('ScreenWidth', width, {expires: 30, path: '/', domain: '89.111.146.197'}); 16 $.cookie('ScreenWidth', width, {expires: 30, path: '/', domain: 'retail-loyalty.org'}); 17 18 location.reload(); 19 } 20 return width; 21}; 22/* -- */ 23 24$(document).ready(function () { 25/* вÑводим ÐºÐ½Ð¾Ð¿ÐºÑ ÐÐÐРХ */ 26 var shirina = width; 27//console.log('ШиÑина - '+shirina); 28if(width > 576) { 29 $('body').append('<div id="scroller" class="button-up"><img src="/local/templates/retail_new/images/chevron-up-solid.svg" alt=""></i></div>'); 30 $(window).scroll(function () { 31 if ($(this).scrollTop() > 1000) { 32//console.log('ШиÑина - '+$(this).scrollTop()); 33 $('#scroller').fadeIn(600); 34 } else { 35 $('#scroller').fadeOut(600); 36 } 37 }); 38 $('#scroller').click(function () { 39 $('body,html').animate({ 40 scrollTop: 0 41 }, 300); 42 return false; 43 }); 44}; 45/* -- */ 46/* 47$.secondHome = function() { 48 49 var SWidth = width; 50console.log( 'ШиÑина внÑÑÑи - '+width); 51 let stat = [], 52 i = 0; 53 $(window).scroll(function() { 54 topOfBlock = $('#third').offset().top; // ÐеÑÑ Ð½ÑÑ Ð³ÑаниÑа ÑлеменÑа 55 blockHeight = $('#third').height(); //ÐÑÑоÑа ÑлеменÑа 56 bottom_of_block = parseInt(topOfBlock) + parseInt(blockHeight); 57 bottom_of_screen = $(window).scrollTop() + window.innerHeight; 58 top_of_screen = $(window).scrollTop(); 59// console.log(bottom_of_screen); 60 if (topOfBlock < bottom_of_screen) { 61 if (stat[i] != 1) { 62 var randomIndex = Math.floor(Math.random() * 4); 63 var preloader = ["preloader1.gif", "preloader2.gif", "preloader3.gif", "preloader4.gif"]; 64//console.log(preloader); 65//BX.showWait = function () { 66// var loader = '<div class="loader"><div class="cssload-clock"></div></div>'; 67 var loader = '<div class="loader"><div class="text-center my-5 d-flex flex-column">'+ 68 '<div class="loader-text">... еÑÑ ÐºÐ¾Ðµ-ÑÑо инÑеÑеÑное, ожидайÑе!</div>'+ 69 '<div class="loader-img"><img src="/images/preloaders/'+preloader[randomIndex]+'" alt="preloader" /></div>'+ 70 '</div></div>'; 71//console.log(loader); 72 $('#third').prepend(loader); 73// }; 74 75 BX.ajax({ 76 url: '/local/templates/plus_new/includes/third.php', 77 method: 'post', 78 async: true, 79 timeout: 0, 80 processData: true, 81 scriptsRunFirst: false, 82 emulateOnload: true, 83 start: true, 84 cache: true, 85 dataType: 'html', 86 data: { 87 width: SWidth, 88 }, 89 onsuccess: function(data){ 90 $('.loader').remove(); 91 $('#third').html(data); 92 }, 93 error: function(xhr, ajaxOptions, thrownError) { 94 alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); 95 } 96 97 }); 98 stat[i] = 1; 99 } 100 } 101 }); 102} 103*/ 104 105 106}); 107})(jQuery);
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.