1(function($){ 2$(window).ready(function(){ 3 4 /*======================== Slider ========================*/ 5 6 tmls_sliders = $('.tmls_slider, .tmls_slider2'); 7 tmls_style3_names = $('.style3 .tmls_name'); 8 tmls_visible_slider_buttons = $('.tmls_next_prev.tmls_visible'); 9 10 11 if (tmls_sliders.length ) 12 { 13 tmls_sliders.each(function(){ 14 15 tmls_slider_play($(this)); 16 17 $(this).parent().parent().mouseenter(function(){ 18 $(this).children('.tmls_show_on_hover').slideToggle(); 19 }); 20 21 $(this).parent().parent().mouseleave(function(){ 22 $(this).children('.tmls_show_on_hover').slideToggle(); 23 }); 24 25 }); 26 27 tmls_visible_slider_buttons.fadeIn(); 28 29 $(window).resize(function() { 30 tmls_sliders.each(function(){ 31 tmls_slider_play($(this)); 32 }); 33 34 35 if(tmls_style3_names.length) { 36 tmls_style3_names.each(function(){ 37 38 tmls_style3_infos_height_sum = ($(this).height()+ 2.5 + $(this).parent().children('.tmls_position').height()+$(this).parent().children('.tmls_rating').height()+5); 39 tmls_style3_img_height = $(this).parent().children('.tmls_image').height(); 40 41 if(tmls_style3_infos_height_sum < tmls_style3_img_height && $(this).parent().children('.tmls_image').css('display')!='none' ) { 42 $(this).css('padding-top', (tmls_style3_img_height/2) - (tmls_style3_infos_height_sum/2)); 43 } 44 else { 45 $(this).css('padding-top',0); 46 } 47 48 }); 49 } 50 51 52 }); 53 54 55 } 56 57 58 59 if(tmls_style3_names.length) { 60 tmls_style3_names.each(function(){ 61 62 tmls_style3_infos_height_sum = ($(this).height()+ 2.5 + $(this).parent().children('.tmls_position').height()+$(this).parent().children('.tmls_rating').height()+5); 63 tmls_style3_img_height = $(this).parent().children('.tmls_image').height(); 64 65 if(tmls_style3_infos_height_sum < tmls_style3_img_height && $(this).parent().children('.tmls_image').css('display')!='none' ) { 66 $(this).css('padding-top', (tmls_style3_img_height/2) - (tmls_style3_infos_height_sum/2)); 67 } 68 else { 69 $(this).css('padding-top',0); 70 } 71 72 }); 73 } 74 75 76 77}); 78 79 80$(window).load(function(){ 81 tmls_sliders.each(function(){ 82 tmls_slider_play($(this)); 83 }); 84}); 85 86 87function tmls_slider_play(tmls_slider) { 88 89 tmls_slider.carouFredSel({ 90 responsive: true, 91 width:'variable', 92 height:'variable', 93 prev: { 94 button: function() { 95 return $(this).parents().children(".tmls_next_prev").children(".tmls_prev"); 96 } 97 }, 98 next: { 99 button: function() { 100 return $(this).parents().children(".tmls_next_prev").children(".tmls_next"); 101 } 102 }, 103 pagination: { 104 container: function() { 105 return $(this).parents().next().children('.tmls_paginationContainer'); 106 }, 107 anchorBuilder : function(nr) { 108 return "<div class='tmls_image_container "+$(this).attr('data-imageradius')+"'><div class='tmls_image' style='"+$(this).attr('data-bgimg')+"'></div><div class='tmls_image_overlay' style='background-color:"+$(this).parent().attr('data-slider2unselectedoverlaybgcolor')+"'></div></div>"; 109 } 110 }, 111 scroll: { 112 items:1, 113 duration: tmls_slider.data('scrollduration'), 114 fx: tmls_slider.data('transitioneffect') 115 }, 116 auto: { 117 play: tmls_slider.data('autoplay'), 118 timeoutDuration:tmls_slider.data('pauseduration'), 119 pauseOnHover:tmls_slider.data('pauseonhover') 120 }, 121 items: { 122 width:700 123 }, 124 swipe: { 125 onMouse: false, 126 onTouch: true 127 } 128 129 }); 130 131} 132 133}) (jQuery);
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.