1function checkNavColor(slider){ 2 var nav_color_flex = slider.find('.flex-active-slide').data('nav_color'); 3 if(nav_color_flex == 'dark') 4 slider.find('.flex-control-nav').addClass('flex-dark'); 5 else 6 slider.find('.flex-control-nav').removeClass('flex-dark'); 7} 8function checkHeight(){ 9 /*if($('.col-m-pull-60').length) 10 { 11 if(window.matchMedia('(min-width:992px)').matches) 12 { 13 var height = $('.col-m-pull-60').actual('outerHeight'), 14 padding = parseInt($('.col-m-pull-60 .item').css('padding-bottom')); 15 16 $('.top_slider_wrapp .flexslider .slides > li, .top_slider_wrapp .flexslider, .top_slider_wrapp .flexslider .slides > li td').height(height-padding); 17 } 18 else 19 { 20 $('.top_slider_wrapp .flexslider .slides > li, .top_slider_wrapp .flexslider, .top_slider_wrapp .flexslider .slides > li td').height(''); 21 } 22 }*/ 23} 24$(document).ready(function(){ 25 if($('.top_slider_wrapp .flexslider').length){ 26 var config = {"controlNav": true, "animationLoop": true, "pauseOnHover" : true}; 27 if(typeof(arNextOptions['THEME']) != 'undefined'){ 28 var slideshowSpeed = Math.abs(parseInt(arNextOptions['THEME']['BIGBANNER_SLIDESSHOWSPEED'])); 29 var animationSpeed = Math.abs(parseInt(arNextOptions['THEME']['BIGBANNER_ANIMATIONSPEED'])); 30 config["slideshow"] = (slideshowSpeed && arNextOptions['THEME']['BIGBANNER_ANIMATIONTYPE'].length ? true : false); 31 config["animation"] = (arNextOptions['THEME']['BIGBANNER_ANIMATIONTYPE'] === 'FADE' ? 'fade' : 'slide'); 32 if(animationSpeed >= 0){ 33 config["animationSpeed"] = animationSpeed; 34 } 35 if(slideshowSpeed >= 0){ 36 config["slideshowSpeed"] = slideshowSpeed; 37 } 38 if(arNextOptions['THEME']['BIGBANNER_ANIMATIONTYPE'] !== 'FADE'){ 39 config["direction"] = (arNextOptions['THEME']['BIGBANNER_ANIMATIONTYPE'] === 'SLIDE_VERTICAL' ? 'vertical' : 'horizontal'); 40 } 41 config.start = function(slider){ 42 checkNavColor(slider); 43 44 if(slider.count <= 1){ 45 slider.find('.flex-direction-nav li').addClass('flex-disabled'); 46 } 47 $(slider).find('.flex-control-nav').css('opacity',1); 48 } 49 config.after = function(slider){ 50 checkNavColor(slider); 51 } 52 } 53 54 $(".top_slider_wrapp .flexslider").flexslider(config); 55 } 56 57 checkHeight(); 58 59 BX.addCustomEvent('onWindowResize', function(eventdata){ 60 try{ 61 ignoreResize.push(true); 62 checkHeight(); 63 } 64 catch(e){} 65 finally{ 66 ignoreResize.pop(); 67 } 68 }) 69});
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.