$(document).ready(function(){ var winHeight = $(window).height(); var winwidth = $(window).width(); $('.burger-wrapp').click(function(){ $(this).toggleClass('active') $('.bottom-navigation').slideToggle(); }); $('.bottom-nav ul li.dropdown img ').click(function(){ $(this).parent().siblings().find('ul').slideUp(); $(this).parent().siblings().find('img').removeClass(); $(this).toggleClass('active') $(this).parent().find('ul').slideToggle(); }); $('.fancybox').fancybox(); $('.slider-for2').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: false, asNavFor: '.slider-nav2' }); $('.slider-nav2').slick({ slidesToShow: 6, slidesToScroll: 1, asNavFor: '.slider-for2', dots: false, arrows: false, centerMode: false, focusOnSelect: true, responsive: [ { breakpoint: 990, settings: { slidesToShow: 4 } } ] }); }); function showDiv(elem){ if(elem.value == 0){ $('.middle-section .secion1 ').hide() document.getElementById('sec1').style.display = "block"; } else if(elem.value == 2){ $('.middle-section .secion1 ').hide() document.getElementById('sec2').style.display = "block"; } else if(elem.value == 2){ $('.middle-section .secion1 ').hide() document.getElementById('sec2').style.display = "block"; } else if(elem.value == 3){ $('.middle-section .secion1 ').hide() document.getElementById('sec3').style.display = "block"; } else if(elem.value == 4){ $('.middle-section .secion1 ').hide() document.getElementById('sec4').style.display = "block"; } else if(elem.value == 5){ $('.middle-section .secion1 ').hide() document.getElementById('sec5').style.display = "block"; } else if(elem.value == 6){ $('.middle-section .secion1 ').hide() document.getElementById('sec6').style.display = "block"; } else if(elem.value == 7){ $('.middle-section .secion1 ').hide() document.getElementById('sec7').style.display = "block"; } else if(elem.value == 8){ $('.middle-section .secion1 ').hide() document.getElementById('sec8').style.display = "block"; } else if(elem.value == 9){ $('.middle-section .secion1 ').hide() document.getElementById('sec9').style.display = "block"; } else if(elem.value == 10){ $('.middle-section .secion1 ').hide() document.getElementById('sec10').style.display = "block"; } else if(elem.value == 11){ $('.middle-section .secion1 ').hide() document.getElementById('sec11').style.display = "block"; } else if(elem.value == 12){ $('.middle-section .secion1 ').hide() document.getElementById('sec12').style.display = "block"; } else if(elem.value == 13){ $('.middle-section .secion1 ').hide() document.getElementById('sec13').style.display = "block"; } else if(elem.value == 14){ $('.middle-section .secion1 ').hide() document.getElementById('sec14').style.display = "block"; } } equalheight = function(container){ var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0; $(container).each(function() { $el = $(this); $($el).height('auto') topPostion = $el.position().top; if (currentRowStart != topPostion) { for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } rowDivs.length = 0; // empty the array currentRowStart = topPostion; currentTallest = $el.height(); rowDivs.push($el); } else { rowDivs.push($el); currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); } for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } }); } $(window).load(function() { equalheight('.eq '); }); $(window).resize(function(){ equalheight('.eq '); var innerheight = $('.inner-wrapper').width(); $('.inner-wrapper').css('height', innerheight ) var innerheight2 = $('.inner-wrapper2').width(); $('.inner-wrapper2').css('height', innerheight2 ); var bannerheight = $('.banner-wrapper').width(); $('.banner-wrapper').css('height', bannerheight ) });