1$(document).ready(function(){ 2 3 $(".mygallery").justifiedGallery({ 4 rowHeight : 150, 5 lastRow : 'nojustify', 6 captions : false, 7 border : 0, 8 margins : 7 9 }); 10 11 $(".mygallery2").justifiedGallery({ 12 rowHeight : 200, 13 lastRow : 'nojustify', 14 captions : false, 15 border : 0, 16 margins : 7 17 }); 18 19 $(".mygallery-catalog").justifiedGallery({ 20 rowHeight : 70, 21 lastRow : 'nojustify', 22 captions : false, 23 border : 0, 24 margins : 7 25 }); 26 27 //Slider main page 28 $(".header-slider").owlCarousel({ 29 items:1, 30 loop:true, 31 margin:0, 32 nav:false, 33 autoplay:true, 34 autoplayTimeout:6000, 35 smartSpeed:750, 36 autoplayHoverPause:true 37 }); 38 39 //Slider section main page 40 $(".section-slider").owlCarousel({ 41 items:4, 42 loop:true, 43 margin:30, 44 nav:true, 45 dots: false, 46 autoplay:false, 47 smartSpeed:750, 48 autoplayHoverPause:false, 49 responsive:{ 50 0:{ 51 items:1 52 }, 53 768:{ 54 items:2 55 }, 56 992:{ 57 items:4 58 } 59 } 60 }); 61 62 //Slider section main page 63 $(document).ready(function () { 64 const $slider = $('.section-slider2'); 65 let originalItems = []; 66 67 // ÐлониÑÑем иÑÑ Ð¾Ð´Ð½Ñе ÑлеменÑÑ Ð¾Ð´Ð¸Ð½ Ñаз 68 $slider.children('div').each(function () { 69 originalItems.push($(this).clone()); 70 }); 71 72 // ÐниÑиализаÑÐ¸Ñ ÐºÐ°ÑÑÑели пÑи ÑÑаÑÑе 73 function initCarousel() { 74 $slider.owlCarousel({ 75 items: 4, 76 loop: false, 77 margin: 30, 78 nav: true, 79 dots: false, 80 autoplay: false, 81 smartSpeed: 750, 82 autoplayHoverPause: false, 83 responsive: { 84 0: { items: 1 }, 85 768: { items: 2 }, 86 992: { items: 4 } 87 } 88 }); 89 } 90 91 initCarousel(); // пеÑвÑй запÑÑк 92 93 $('.bts-keys button').on('click', function () { 94 let filter = $(this).data('filter'); 95 96 // УбиÑаем active Ñ Ð¿ÑедÑдÑÑей кнопки и добавлÑем на ÑекÑÑÑÑ 97 $('.bts-keys button').removeClass('active'); 98 $(this).addClass('active'); 99 100 // УдалÑем каÑÑÑÐµÐ»Ñ Ð¸ обÑÑÑки 101 $slider.trigger('destroy.owl.carousel'); 102 $slider.removeClass('owl-carousel owl-loaded'); 103 $slider.find('.owl-stage-outer, .owl-stage').children().unwrap(); 104 $slider.empty(); // оÑиÑаем 105 106 // ФилÑÑÑÑем и добавлÑем нÑжнÑе 107 originalItems.forEach(function ($item) { 108 let itemRazdel = $item.data('razdel'); 109 if (filter === 'all' || itemRazdel === filter) { 110 $slider.append($item.clone()); 111 } 112 }); 113 114 // ÐеÑеиниÑиализаÑÐ¸Ñ 115 $slider.addClass('owl-carousel'); // обÑзаÑелÑно! 116 initCarousel(); 117 }); 118 }); 119 120 //Slider section main page partners 121 $(".section-slider-partners").owlCarousel({ 122 items:6, 123 loop:true, 124 margin:30, 125 nav:false, 126 dots: false, 127 autoplay:true, 128 smartSpeed:750, 129 autoplayHoverPause:false, 130 responsive:{ 131 0:{ 132 items:2 133 }, 134 768:{ 135 items:3 136 }, 137 992:{ 138 items:5 139 } 140 } 141 }); 142 143 $(".section-slider .owl-next, .section-slider2 .owl-next").html("<i class='fa fa-angle-right nextarr' aria-hidden='true'></i>"); 144 $(".section-slider .owl-prev, .section-slider2 .owl-prev").html("<i class='fa fa-angle-left prevarr' aria-hidden='true'></i>"); 145 146 // Fixed - sidebar 147 $('#sidebar_fixed').sticky({topSpacing:70}); 148 149 // Action - sidebar 150 $(".sidebar-action").owlCarousel({ 151 items:1, 152 loop:true, 153 margin:0, 154 nav:true, 155 dots: false, 156 autoplay:true, 157 smartSpeed:750, 158 autoplayHoverPause:false, 159 }); 160 161 // Review, portfolio - sidebar 162 $(".sidebar-review, .sidebar-portfolio").owlCarousel({ 163 items:1, 164 loop:true, 165 margin:0, 166 nav:true, 167 dots: false, 168 autoplay:false, 169 smartSpeed:750, 170 autoplayHoverPause:false, 171 }); 172 173 $("#sidebar .owl-next").html("<i class='fa fa-arrow-circle-right nextarr' aria-hidden='true'></i>"); 174 $("#sidebar .owl-prev").html("<i class='fa fa-arrow-circle-left prevarr' aria-hidden='true'></i>"); 175 176 // Taby - calc 177 $(".tabs").lightTabs(); 178 179 //Maska nomer phone 180 $(".inputmask").inputmask(typeof window.inputMaskPattern !== 'undefined'?window.inputMaskPattern:"+7 (999) 999-99-99"); 181 182 // Spaces in a prices 183 $(".pricespace").each(function(){ 184 var price = $(this).html(); 185 var parts = (price + '').split('.'); 186 var main = parts[0]; 187 var len = main.length; 188 var pricetxt = ''; 189 var i = len - 1; 190 while(i >= 0) { 191 pricetxt = main.charAt(i) + pricetxt; 192 if ((len - i) % 3 === 0 && i > 0) { 193 pricetxt = ' ' + pricetxt; 194 } 195 --i; 196 } 197 if (parts.length > 1) { pricetxt += '.' + parts[1]; } 198 $(this).html(pricetxt); 199 }); 200 201});
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.