Signin  Pricing  Examples  Support

Libraries > menu.js

menu.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://vasabladet.fi/Scripts/menu.js


Libraries on vasabladet.fi


ads.js

EAS_fif.js

jquery-1.9.1.min.js

jquery.dropdown.min.js

Jquerylogic.js

menu.js

bannerMB.js

spring.js



Explore More


jquery.placeholder.js

library.js

main.js

byside_webcare.js

menu.js
				

$.ajaxSetup({
    type: 'POST',
    headers: { "cache-control": "no-cache" }
});

$(document).ready(function () {

    //Låser menyn till toppen
    setTimeout(function () {
        var scrollTop = $(window).scrollTop();
        var elementOffset = $('#menuContainer').offset().top;

        $(document).scroll(function () {
            var $fixedMenu = $('#menuContainer');
            if ($(window).scrollTop() > elementOffset)
                $fixedMenu.css({ 'position': 'fixed', 'top': '0px' });
            else
                $fixedMenu.css({ 'position': 'relative', 'top': 'auto' });
        })
    }, 300);

    //Hanterar menyns beteende
    $("#menuContainer").click(function (event) {

        var activeMenu = event.target.id;

        if ($('#' + activeMenu + 'Content').hasClass('active')) {
            $('#' + activeMenu + 'Content').slideToggle(500);
            $('#' + activeMenu + 'Content').removeClass("active");
        } else {
            $('.active').hide();
            $('.active').removeClass("active");
            $('#' + activeMenu + 'Content').slideToggle(500);
            $('#' + activeMenu + 'Content').addClass("active");
        }

    });

});


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z