<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
 *  all project-specific functions
 *  go here, common functions are
 *  stored in common.js
 */

$(document).ready(function() {
    /**
     * removes cookie banner on click
     */
    $('.acceptcookies').click(function() {
        $.post("/de/", {
            cookie_accepted: "true"
        });
        $('.acceptcookie').fadeOut();
    });

    /**
     * sets the carousel height based on item heights
     */
    function carouselHeight() {
        if ($('.carousel-vis').length) {
            $('.carousel-vis').each(function() {
                var maxHeight = -1;
                $(this).find('.item').each(function() {
                    if ($(this).outerHeight() &gt; maxHeight) {
                        maxHeight = $(this).outerHeight();
                    }
                });
                $(this).height(maxHeight);
            });
        }

        var maxHeightNav = -1;
        //$('header nav.nav-main ul').each(function() {
        //    if ($(this).outerHeight() &gt; maxHeightNav) {
        //        maxHeightNav = $(this).height();
        //    }
        //    $('.mega-menu').css('padding-top', maxHeightNav + 160);
        //});
    }
    carouselHeight();

    $(window).on('resize orientationchange', function() {
        carouselHeight();
    });

    //
    //$('nav.nav-main &gt; ul &gt; li').mouseenter(function() {
    //    $('.mega-menu').hide();
    //    $('nav.nav-main li').removeClass('show');
    //    if ($(this).hasClass('parent')) {
    //        $('nav.nav-main li').removeClass('show');
    //        $(this).addClass('show');
    //        $('.mega-menu').show();
    //    }
    //});
    //
    //$('.mega-menu').mouseleave(function() {
    //    $('.mega-menu').hide();
    //    $('nav.nav-main li').removeClass('show');
    //});
});
</pre></body></html>