1jQuery(document).ready(function() { 2 // Popups 3 var scrollWidth = window.innerWidth - document.documentElement.clientWidth; 4 function popupArgs(src, type) { 5 var args = { 6 type: 'inline', 7 removalDelay: 300, 8 mainClass: 'mfp-zoom-in', 9 tClose: 'ÐакÑÑÑÑ', 10 tLoading: 'ÐагÑÑзка...', 11 closeMarkup: '<button title="%title%" class="popup__close-btn ic ic-close" data-popup-close></button>', 12 image: { 13 tError: '<a href="%url%">ÐзобÑажение</a> не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð·Ð°Ð³ÑÑжено.' 14 }, 15 callbacks: { 16 beforeOpen: function() { 17 this.container[0].classList.add('mfp-with-anim'); 18 }, 19 open: function() { 20 if ($('.header__fxd').hasClass('_fixed')) { 21 $('.header__main').css('margin-right', scrollWidth); 22 } 23 }, 24 close: function() { 25 $('.header__main').css('margin-right', ''); 26 } 27 }, 28 }; 29 30 if (type == 'iframe' || type == 'image') args['type'] = type; 31 32 if (type == 'gallery') { 33 args['type'] = 'image'; 34 args['gallery'] = { 35 tPrev: 'Ðазад (или нажмиÑе влево)', 36 tNext: 'Ðалее (или нажмиÑе впÑаво)', 37 tCounter: '%curr% из %total%', 38 enabled: true 39 }; 40 } else { 41 args['items'] = { 42 src: src 43 }; 44 } 45 return args; 46 } 47 48 $('body').on('click', '[data-popup]', function() { 49 $.magnificPopup.open(popupArgs($(this).attr('href'), $(this).attr('data-popup'))); 50 if ($(this).hasClass('blur')) { 51 $('.mfp-container').addClass('blur-mode'); 52 } 53 return false; 54 }); 55 56 $('body').on('click', '[data-popup-close]', function() { 57 $.magnificPopup.close(); 58 return false; 59 }); 60 61 $('.js-gallery').each(function() { 62 $(this).find('a').not('[data-popup]').magnificPopup(popupArgs(false, 'gallery')); 63 }); 64 // Popups END 65 66 // $('.direction__technology-card-title').matchHeight(); 67 $('.prod__productions-card h3').matchHeight(); 68 $('.related-technologies__card-title').matchHeight(); 69 70 // ÑÐ°Ð±Ñ Ð½Ð° доÑеÑней ÑÑÑаниÑе напÑÐ°Ð²Ð»ÐµÐ½Ð¸Ñ Ð´ÐµÑÑелÑноÑÑи 71 jQuery('.sub-direction__tabs .tabs__btn-list a').on('click', function(e) { 72 var currentAttrValue = jQuery(this).attr('href'); 73 jQuery('.tab-content ' + currentAttrValue).fadeIn(400).siblings().hide(); 74 jQuery(this).parent('li').addClass('active').siblings().removeClass('active'); 75 e.preventDefault(); 76 }); 77 78 // ÑÐ°Ð±Ñ Ð½Ð° ÑÑÑаниÑе пÑодÑкÑа 79 jQuery('.product__tabs .tabs__btn-list a').on('click', function(e) { 80 var currentAttrValue = jQuery(this).attr('href'); 81 jQuery('.tab-content ' + currentAttrValue).fadeIn(400).siblings().hide(); 82 jQuery(this).parent('li').addClass('active').siblings().removeClass('active'); 83 e.preventDefault(); 84 }); 85 86 // ÑÑÑаниÑа ÑÐµÑ Ð½Ð¾Ð»Ð¾Ð³Ð¸Ð¸, ÑопÑÑÑÑвÑÑÑие ÑÐµÑ Ð½Ð¾Ð»Ð¾Ð³Ð¸Ð¸ 87 new Swiper(document.querySelector('.related-technologies__swiper'), { 88 speed: 500, 89 // autoplay: { 90 // delay: 4000, 91 // }, 92 allowTouchMove: true, 93 pagination: { 94 el: '.related-technologies__swiper-pagination', 95 clickable: true, 96 type: 'bullets', 97 }, 98 navigation: { 99 prevEl: '.related-technologies__nav-left', 100 nextEl: '.related-technologies__nav-right', 101 }, 102 breakpoints: { 103 0: { 104 slidesPerView: 2, 105 spaceBetween: 10, 106 }, 107 576: { 108 slidesPerView: 2, 109 spaceBetween: 20, 110 }, 111 768: { 112 slidesPerView: 3, 113 spaceBetween: 35, 114 }, 115 }, 116 }); 117 118 // найÑи и обеÑнÑÑÑ ÑаблиÑÑ 119 $('.tablepress').wrap("<div class='table-wrapper'></div>"); 120 121 // пеÑеклÑÑаÑÐµÐ»Ñ Ñежима оÑобÑÐ°Ð¶ÐµÐ½Ð¸Ñ 122 $('._grid-mode').click(function(){ 123 $('section.scientific-library').removeClass('_list-mode'); 124 }); 125 126 $('._list-mode').click(function(){ 127 $('section.scientific-library').addClass('_list-mode'); 128 }); 129 130 // ÑдалиÑÑ Ð¸ÑпанÑкий ÑзÑк из ÑелекÑоÑа 131 $('.lang-box select option').each(function() { 132 if($(this).val() == 'es') { 133 $(this).remove(); 134 } 135 }); 136 137}); //ready
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.