1/* 2You can use this file with your scripts. 3It will not be overwritten when you upgrade solution. 4*/ 5 6 //function scrollTo(element, margintop) { window.scroll({ top: element.getBoundingClientRect().top + (window.scrollY === undefined ? window.scrollY : window.pageYOffset) - margintop, behavior: 'smooth' }); } 7 8 $(document).ready(function() { 9 if ($(window).width() <= '767'){ 10 $('.slides').after('<div class="botblck"></div>'); 11 $('.botblck').append($('#top1')); 12 }; 13 document.querySelectorAll('a[href^="#"][data-link-type="anchor"]').forEach(function(anchorLink){ 14 anchorLink.addEventListener('click', function(e){ 15 e.preventDefault(); 16 scrollTo(document.querySelector(this.getAttribute('href')), 100); 17 }); 18 }); 19 $('.popup-with-zoom-anim').magnificPopup({type:'inline'}); 20 document.querySelectorAll('.countdown .dd').forEach(function(counter){ 21 var num = parseInt(counter.TEXT_NODE); 22 counter.innerHTML = (num > 3 ? num - 3 : 0) + '<div class="text">д.</div>'; 23 }); 24 }); 25 26 $(document).on('click','.text-more-btn a',function(e) { 27 e.preventDefault(); 28 if( $(this).is(".active") ){ 29 $('.text-hidden').slideUp(); 30 $(this).removeClass('active').html("ÐодÑобнее"); 31 } else{ 32 $('.text-hidden').slideDown(); 33 $(this).addClass('active').html("СкÑÑÑÑ"); 34 } 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.