');
//$('.slider-caret-left').addClass('disabled');
$('.slider-caret').on('click', function( e ) {
var _slick_dots = el.find('.slick-dots'),
_cur_dot = _slick_dots.find('.slick-active'),
_next_dot = _cur_dot.next(),
_prev_dot = _cur_dot.prev(),
_first_dot = el.find('.slick-dots li').first(),
_last_dot = el.find('.slick-dots li').last();
if( $(this).hasClass('slide-next-img') ) {
if( _next_dot.length ) _next_dot.trigger('click');
else {
console.log( _first_dot );
console.log('first dot');
_first_dot.trigger('click');
}
}
else {
if( _prev_dot.length ) _prev_dot.trigger('click');
else {
console.log( _last_dot );
console.log('last dot');
_last_dot.trigger('click');
}
}
});
};
$(function() {
var normalize_item = function( el ) {
var _w = $( window ).width()
_max_h = 0;
if( _w > 767 ) {
el.each( function( e, i ) {
if( $(this).height() > _max_h ) _max_h = $( this ).height();
});
if( _max_h > 0 ) {
el.each( function( e, i ) {
$( this ).css({ 'height' : _max_h + 'px' , 'min-height' : _max_h + 'px' });
});
}
} else {
el.each( function( e, i ) {
$( this ).css({ 'height' : 'auto' , 'min-height' : 'auto' });
});
}
};
_glow_slider( $('.right-side-slider-cta') );
normalize_item( $('.blue-gauge-block') );
normalize_item( $('.mega-menu-footer .one-fifth') );
normalize_item( $('.mega-menu-footer .two-fifth') );
$( window ).on('resize', function() {
normalize_item( $('.blue-gauge-block') );
normalize_item( $('.mega-menu-footer .one-fifth') );
normalize_item( $('.mega-menu-footer .two-fifth') );
});
});