Suivez les actus de Vousecoute

#wa_chpcs_slider_title1700 { color: rgb(40, 40, 40); font-size: 14px; } #wa_chpcs_image_carousel1700 { color: rgb(40, 40, 40); font-size: 14px;width: 310px;} #wa_chpcs_image_carousel1700 .wa_chpcs_text_overlay_caption:hover::before { background-color: rgba(40,168,211,.85)!important; } #wa_chpcs_image_carousel1700 .wa_chpcs_overlay_caption::before { background-color: rgba(40,168,211,.85)!important; } #wa_chpcs_image_carousel1700 .wa_chpcs_prev, #wa_chpcs_image_carousel1700 .wa_chpcs_next,#wa_chpcs_image_carousel1700 .wa_chpcs_prev_v, #wa_chpcs_image_carousel1700 .wa_chpcs_next_v { background: rgb(99, 28, 170); color: #fff; font-size: 26px; line-height: 33px; width: 36px; height: 36px; margin-top: -26px;} #wa_chpcs_image_carousel1700 .wa_chpcs_prev:hover, #wa_chpcs_image_carousel1700 .wa_chpcs_next:hover { color: rgb(204, 204, 204); } #wa_chpcs_pager_1700 a { background: rgb(204, 204, 204); }#wa_chpcs_image_carousel1700 li img {}#wa_chpcs_image_carousel1700 li .wa_featured_img { text-align: center; } #wa_chpcs_image_carousel1700 li { text-align: center; }#wa_chpcs_image_carousel1700 li img:hover {jQuery(document).ready(function($) { var wa_vars = {"id":"1700","chpcs_pre_responsive":0,"wa_chpcs_pre_direction":"up","chpcs_pre_align":"center","wa_chpcs_auto":"true","wa_chpcs_timeout":"3000","c_items":"1","wa_chpcs_query_posts_fx":"scroll","c_easing":"linear","c_duration":"500","wa_chpcs_query_pause_on_hover":true,"wa_chpcs_infinite":"true","wa_chpcs_circular":"true","wa_chpcs_query_lazy_loading":"","wa_chpcs_query_posts_item_width":"310","c_min_items":"3","wa_chpcs_query_css_transitions":true,"wa_chpcs_query_posts_lightbox":"","wa_chpcs_query_animate_controls":true}; //lazy loading if (wa_vars.wa_chpcs_query_lazy_loading) { function loadImage() { jQuery('img.wa_lazy').lazyload({ container: jQuery('#wa_chpcs_image_carousel' + wa_vars.id) }); } } $('#wa_chpcs_foo' + wa_vars.id).carouFredSel({ responsive: (parseInt(wa_vars.chpcs_pre_responsive) == 1) ? true : false, direction: wa_vars.wa_chpcs_pre_direction, align: wa_vars.chpcs_pre_align, width: (parseInt(wa_vars.chpcs_pre_responsive) != 1) ? '100%' : '', auto: { play: (wa_vars.wa_chpcs_auto=='true') ? true: false, timeoutDuration: wa_vars.wa_chpcs_timeout }, scroll: { items: (wa_vars.c_items && wa_vars.c_items != 0) ? wa_vars.c_items : '', fx: wa_vars.wa_chpcs_query_posts_fx, easing: wa_vars.c_easing, duration: wa_vars.c_duration, pauseOnHover: (wa_vars.wa_chpcs_query_pause_on_hover == 1) ? true : false, }, infinite: (wa_vars.wa_chpcs_infinite=='true') ? true: false, circular: (wa_vars.wa_chpcs_circular=='true') ? true: false, onCreate: function(data) { if (wa_vars.wa_chpcs_query_lazy_loading) { loadImage(); } }, prev: { onAfter: function(data) { if (wa_vars.wa_chpcs_query_lazy_loading) { loadImage(); } }, button: '#foo' + wa_vars.id + '_prev' }, next: { onAfter: function(data) { if (wa_vars.wa_chpcs_query_lazy_loading) { loadImage(); } }, button: '#foo' + wa_vars.id + '_next' }, items: { width: (parseInt(wa_vars.chpcs_pre_responsive)== 1) ? wa_vars.wa_chpcs_query_posts_item_width : '', visible: (parseInt(wa_vars.chpcs_pre_responsive) == 0 && wa_vars.wa_chpcs_pre_direction == 'up' || wa_vars.wa_chpcs_pre_direction == 'down') ? wa_vars.c_min_items : '', visible: { min: (parseInt(wa_vars.chpcs_pre_responsive) == 1) ? 1 : '', max: (parseInt(wa_vars.chpcs_pre_responsive) == 1) ? parseInt(wa_vars.c_min_items) : '', } }, pagination: { container: '#wa_chpcs_pager_' + wa_vars.id } } , { transition: (wa_vars.wa_chpcs_query_css_transitions == 1) ? true : false } ); //touch swipe if (wa_vars.wa_chpcs_pre_direction == 'up' || wa_vars.wa_chpcs_pre_direction == 'down') { $('#wa_chpcs_foo' + wa_vars.id).swipe({ excludedElements: 'button, input, select, textarea, .noSwipe', swipeUp : function() { $('#wa_chpcs_foo' + wa_vars.id).trigger('next', 'auto'); }, swipeDown : function() { $('#wa_chpcs_foo' + wa_vars.id).trigger('prev', 'auto'); console.log('swipeRight'); }, tap: function(event, target) { $(target).closest('.wa_chpcs_slider_title').find('a').click(); } }) } else { $('#wa_chpcs_foo' + wa_vars.id).swipe({ excludedElements: 'button, input, select, textarea, .noSwipe', swipeLeft: function() { $('#wa_chpcs_foo' + wa_vars.id).trigger('next', 'auto'); }, swipeRight: function() { $('#wa_chpcs_foo' + wa_vars.id).trigger('prev', 'auto'); console.log('swipeRight'); }, tap: function(event, target) { $(target).closest('.wa_chpcs_slider_title').find('a').click(); } }) } //magnific popup if (wa_vars.wa_chpcs_query_posts_lightbox) { jQuery('#wa_chpcs_foo' + 1700).magnificPopup({ delegate: 'li .wa_featured_img > a', // child items selector, by clicking on it popup will open type: 'image' // other options }); } //animation for next and prev if (wa_vars.wa_chpcs_query_animate_controls == 1) { if (wa_vars.wa_chpcs_pre_direction == 'left' || wa_vars.wa_chpcs_pre_direction == 'right') { jQuery('#wa_chpcs_image_carousel' + wa_vars.id) .hover(function() { jQuery('#wa_chpcs_image_carousel' + wa_vars.id + ' .wa_chpcs_prev').animate({ 'left': '1.2%', 'opacity': 1 }), 300; jQuery('#wa_chpcs_image_carousel' + wa_vars.id + ' .wa_chpcs_next').animate({ 'right': '1.2%', 'opacity': 1 }), 300; }, function() { jQuery('#wa_chpcs_image_carousel' + wa_vars.id + ' .wa_chpcs_prev').animate({ 'left': 0, 'opacity': 0 }), 'fast'; jQuery('#wa_chpcs_image_carousel' + wa_vars.id + ' .wa_chpcs_next').animate({ 'right': 0, 'opacity': 0 }), 'fast'; }); } } });