1jQuery(document).ready(function($) { 2 /*$('.nav-tabs.center li').on('click', function(){ 3 var container = $('.nav-tabs.center'); 4 5 console.log($(this).width()); 6 console.log($(this).index()); 7 8 var current_index = $(this).index(); 9 var width_left = 0; 10 var left = 0; 11 12 $('.nav-tabs.center li').each(function (index, value){ 13 if(current_index > index){ 14 width_left = width_left + $(this).width() + 10; 15 } 16 }); 17 18 if(current_index == 0){ 19 width_left = 0; 20 } 21 22 if(width_left + $(this).width() > $('.tabs-is-center .clearfix').width()){ 23 console.log('all items', $('.nav-tabs.center li').length); 24 console.log('current index', current_index); 25 26 left = $('.tabs-is-center .clearfix').width() - (width_left + $(this).width() + 10); 27 28 if($('.nav-tabs.center li').length - 1 <= current_index) 29 $('.nav-tabs.center').css('left', left + 'px'); 30 else { 31 $('.nav-tabs.center').css('left', left - 50 + 'px'); 32 } 33 } 34 else{ 35 left = 0 ; 36 $('.nav-tabs.center').css('left', left + 'px'); 37 } 38 39 })*/ 40 41 $('.full-width-slider').slick({ 42 slidesToShow: 1, 43 slidesToScroll: 1, 44 arrows: true, 45 asNavFor: '.full-width-slider-thumbs', 46 infinite: false, 47 }); 48 49 $('.full-width-slider-thumbs').slick({ 50 asNavFor: '.full-width-slider', 51 dots: false, 52 arrows: false, 53 infinite: false, 54 //variableWidth: true, 55 focusOnSelect: true, 56 slidesToShow: 8, 57 slidesToScroll: 1, 58 responsive: [ 59 { 60 breakpoint: 1263, 61 settings: { 62 slidesToShow: 7, 63 slidesToScroll: 1, 64 65 } 66 }, 67 { 68 breakpoint: 1105, 69 settings: { 70 slidesToShow: 6, 71 slidesToScroll: 1 72 } 73 }, 74 { 75 breakpoint: 947, 76 settings: { 77 slidesToShow: 5, 78 slidesToScroll: 1 79 } 80 }, 81 { 82 breakpoint: 789, 83 settings: { 84 slidesToShow: 4, 85 slidesToScroll: 1 86 } 87 }, 88 { 89 breakpoint: 631, 90 settings: { 91 slidesToShow: 3, 92 slidesToScroll: 1 93 } 94 }, 95 { 96 breakpoint: 480, 97 settings: { 98 slidesToShow: 2, 99 slidesToScroll: 1 100 } 101 } 102 // You can unslick at a given breakpoint now by adding: 103 // settings: "unslick" 104 // instead of a settings object 105 ] 106 }); 107 108 $('.view-news-carousel .view-content').slick({ 109 slidesToShow: 4, 110 slidesToScroll: 1, 111 autoplay: false, 112 autoplaySpeed: 5000, 113 speed: 900, 114 arrows: true, 115 responsive: [ 116 { 117 breakpoint: 992, 118 settings: { 119 slidesToShow: 3, 120 slidesToScroll: 1, 121 arrows: true, 122 } 123 }, 124 { 125 breakpoint: 769, 126 settings: { 127 slidesToShow: 2, 128 slidesToScroll: 1, 129 arrows: true, 130 } 131 }, 132 { 133 breakpoint: 481, 134 settings: { 135 slidesToShow: 1, 136 slidesToScroll: 1, 137 arrows: true, 138 } 139 }, 140 { 141 breakpoint: 321, 142 settings: { 143 slidesToShow: 1, 144 slidesToScroll: 1, 145 arrows: true, 146 } 147 }, 148 // You can unslick at a given breakpoint now by adding: 149 // settings: "unslick" 150 // instead of a settings object 151 ] 152 }); 153 154 $('.view-news-carousel-authors .view-content').slick({ 155 slidesToShow: 4, 156 slidesToScroll: 1, 157 autoplay: false, 158 autoplaySpeed: 5000, 159 speed: 900, 160 arrows: true, 161 responsive: [ 162 { 163 breakpoint: 992, 164 settings: { 165 slidesToShow: 3, 166 slidesToScroll: 1, 167 arrows: true, 168 } 169 }, 170 { 171 breakpoint: 769, 172 settings: { 173 slidesToShow: 2, 174 slidesToScroll: 1, 175 arrows: true, 176 } 177 }, 178 { 179 breakpoint: 481, 180 settings: { 181 slidesToShow: 1, 182 slidesToScroll: 1, 183 arrows: true, 184 } 185 }, 186 { 187 breakpoint: 321, 188 settings: { 189 slidesToShow: 1, 190 slidesToScroll: 1, 191 arrows: true, 192 } 193 }, 194 // You can unslick at a given breakpoint now by adding: 195 // settings: "unslick" 196 // instead of a settings object 197 ] 198 }); 199 200 $('.node-type-portfolio .view-some-cases .view-content').slick({ 201 slidesToShow: 4, 202 slidesToScroll: 1, 203 autoplay: false, 204 autoplaySpeed: 5000, 205 speed: 900, 206 arrows: true, 207 responsive: [ 208 { 209 breakpoint: 992, 210 settings: { 211 slidesToShow: 3, 212 slidesToScroll: 1, 213 arrows: true, 214 } 215 }, 216 { 217 breakpoint: 769, 218 settings: { 219 slidesToShow: 2, 220 slidesToScroll: 1, 221 arrows: true, 222 } 223 }, 224 { 225 breakpoint: 481, 226 settings: { 227 slidesToShow: 1, 228 slidesToScroll: 1, 229 arrows: true, 230 } 231 }, 232 { 233 breakpoint: 321, 234 settings: { 235 slidesToShow: 1, 236 slidesToScroll: 1, 237 arrows: true, 238 } 239 }, 240 // You can unslick at a given breakpoint now by adding: 241 // settings: "unslick" 242 // instead of a settings object 243 ] 244 }); 245 246 //$(window).on('resize orientationchange', function() { 247 // $('.news-front .view-content').slick('resize'); 248 //}); 249 250 //spoiler 251 $('.node .spoiler').click(function() { 252 $(this).toggleClass('colapsed'); 253 }); 254 $('.main-container .view-partners .views-row').click(function() { 255 $(this).toggleClass('colapsed'); 256 }); 257 $('.main-container .view-vacancies .views-row').click(function() { 258 $(this).toggleClass('colapsed'); 259 }); 260 261 /* isotope NEED to move*/ 262 $('.isotop-grid').isotope({ 263 itemSelector: '.isotop-grid-item', 264 percentPosition: true, 265 masonry: { 266 columnWidth: '.isotop-grid-sizer', 267 }, 268 }); 269 /* masonry NEED to move*/ 270 $('.masonry').masonry({ 271 itemSelector: '.item', // use a separate class for itemSelector, other than .col- 272 percentPosition: true 273 }); 274 275 /* ckeditor-tabber */ 276 $('.ckeditor-tabber').each(function(){ 277 var tab = 0; 278 var dt = 0; 279 var dd = 0; 280 $('<dl class="header"></dl>').prependTo(this); 281 $(this).children('dt').each(function(){ 282 $(this).addClass('tab-'+tab+'-'+dt); 283 dt = dt + 1; 284 }); 285 $(this).children('dt').appendTo($(this).children('.header')); 286 $(this).children('dd').each(function(){ 287 $(this).addClass('tab-'+tab+'-'+dd); 288 dd = dd + 1; 289 }); 290 tab = tab + 1; 291 dt = 0; 292 dd =0; 293 }); 294 $('.ckeditor-tabber dl dt').on('click', function(){ 295 var myclass = $(this).attr('class').split(' '); 296 myclass = myclass[0]; 297 298 $(this).parent().parent().children('dd').css('display','none'); 299 $('.ckeditor-tabber dd.'+myclass).css('display','block'); 300 }) 301 302}); 303 304 jQuery(document).ready(function($) { 305 $('ul.portfolio__tabs__caption li a').on('click', function(e){ 306 e.preventDefault(); 307 }); 308 309 $('ul.portfolio__tabs__caption').on('click', 'li:not(.active)', function() { 310 $(this) 311 .addClass('active').siblings().removeClass('active') 312 .closest('div.portfolio__tabs').find('div.portfolio__tabs__content').removeClass('active').eq($(this).index()).addClass('active'); 313 }); 314 315 var tags_height = $('.portfolio__tabs .all-categories').height(); 316 317 $('.show-all-categories').on('click', function(){ 318 if ($(this).html() == "Show more"){ 319 $('.all-categories').css('height', 'auto'); 320 $(this).html('Show less'); 321 } else{ 322 $('.all-categories').css('height', tags_height); 323 $(this).html('Show more'); 324 } 325 }); 326 }); 327;
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.