Internal anchor smooth scroll

Internal URL smooth scroll from menu – anchor link:

        $("a[href*=#]:not([href=#])").click(function() {
            var kliknjeno = $(this);

            var calapse_mobile = kliknjeno.parent().parent().parent().parent();

            if (calapse_mobile.hasClass('collapse')) {
                calapse_mobile.collapse('hide');
            }

            if (!kliknjeno.hasClass( "nohref" )) {
                if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname) {
                    var a = $(this.hash);
                    if (a = a.length ? a : $("[name=" + this.hash.slice(1) + "]"), a.length) return $("html,body").animate({
                        scrollTop: a.offset().top - 30
                    }, 1000), !1
                }
            }

        })

Menu Dropdown / Submenu

Open Submenu:

    $('ul.desktop_menu li.menu-item-has-children').hover(function() {
        $(this).find('.sub-menu').stop(true, true).delay(100).fadeIn(200);
    }, function() {
        $(this).find('.sub-menu').stop(true, true).delay(100).fadeOut(200);
    });


    //WPML switcher
    $('ul.wpml_switch li.dropdown').hover(function() {
        $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(200);
    }, function() {
        $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeOut(200);
    });