$(document).ready(function(){ $('.inner4-section1 .col-50 .gray-div .col-70 img').parents('p').hide(); $('.menu-item-has-children').addClass('dropdown'); $('.sub-menu').wrap('
'); $('.sub-menu').contents().unwrap(); var winHeight = $(window).height(); var winwidth = $(window).width(); $('.burger').click(function(){ $(this).toggleClass('active') $('.top-header .third-block ul.main-ul').slideToggle(); }); $('.top-header .third-block ul.main-ul > li.dropdown a').click(function(){ $(this).toggleClass('active') $(this).parent().find('.megamenu').slideToggle(); }); $( function() { $( "#datepicker" ).datepicker({firstDay: 1,dateFormat : "dd.mm.yy"}, $.datepicker.regional['de']); }); $( function() { $( "#datepicker2" ).datepicker({firstDay: 1,dateFormat : "dd.mm.yy"}, $.datepicker.regional['de']); }); $( function() { $( "#datepicke3" ).datepicker({firstDay: 1,dateFormat : "dd.mm.yy"}, $.datepicker.regional['de']); }); $( function() { $( "#datepicker4" ).datepicker({firstDay: 1,dateFormat : "dd.mm.yy"}, $.datepicker.regional['de']); }); if (winwidth < 767){ $('li.dropdown').append(''); $('.home-section1').css('background-image','none'); $('ul.middle-ul').insertAfter('.footer-div'); $('html').click(function(){ $('.top-header .third-block ul.main-ul').slideUp(); }); $('.top-header .third-block ul.main-ul').click(function(e){ e.stopPropagation(); }); $('.burger').click(function(e){ e.stopPropagation(); }); $('#reisedauer').css('display','none'); $('#anreise').css('display','none'); } $('.top-header .third-block ul.main-ul > li.dropdown span').click(function(){ $(this).toggleClass('active') $(this).parent().find('.megamenu').slideToggle(); }); $('.slick1').slick({ dots: false, infinite: true, speed: 1500, autoplaySpeed:4000, autoplay: false, arrows:true, slidesToShow: 1, loop:true, }); $('.col-33.abs p').click(function(){ var inputValue = $(this).find('input[type="radio"]').attr("id"); var targetBox = $("." + inputValue); $(".changing").not(targetBox).hide(); $(targetBox).show(); }); $(".input-wrapp.changing select ").on("change", function () { $('.input-wrapp.changing select option').not($(this).find('option')).prop('selected', function() { return this.defaultSelected; }); }); }); 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 '); equalheight('.eq2 '); equalheight('.eq3 '); equalheight('.eq4 '); equalheight($('.col-50').find('.gray-div')); }); $(window).resize(function(){ equalheight('.eq '); equalheight('.eq2 '); equalheight('.eq3 '); equalheight('.eq4'); });