PageSourceSearch

https://www.fairfaxcounty.gov/resources/public/wcm17/js/mega-menu.js

js fairfaxcounty.gov collected 2026-09-24 08:29:28 UTC 1,787 bytes, 46 lines download raw bytes

1$(document).ready(function () {    
2    $(".dropdown1").hover(
3        function () {
4            $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true, true).slideDown(400).delay(500);
5            $(this).toggleClass('open');
6        },
7        function () {
8            $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true, true).slideUp(400).delay(500);
9            $(this).toggleClass('open');
10        }
11    );
12    $(".closeLink").click(function () {
13        $(".navbar-toggle").trigger("click");
14    });
15
16    $('.jumbotron-header .navbar-collapse').on('show.bs.collapse', function () {
17        $('.jumbotron-header .navbar-toggle .icon-bars').fadeOut(400);
18        $('.jumbotron-header .navbar-toggle .icon-x').fadeIn(400);
19    })
20
21    $('.jumbotron-header .navbar-collapse').on('hide.bs.collapse', function () {
22        $('.jumbotron-header .navbar-toggle .icon-bars').fadeIn(400);
23        $('.jumbotron-header .navbar-toggle .icon-x').fadeOut(400);
24    })
25
26    //avoid navigation bar from closing when item is selected
27    $('.site-settings-formitem').on('click', function (event) {
28        event.stopPropagation();
29    });
30
31    $('.jumbotron-header .dropdown').on('shown.bs.dropdown', function () {
32        $(this).closest('div.in.collapse').animate({
33            scrollTop: $(this).offset().top - 110
34        }, 2000);
35    });
36});
37
38/* close the navbar if anything else is clicked outside of it */
39$(document).click(function (event) {
40    var clickover = $(event.target);
41    var $navbar = $(".navbar-collapse");
42    var _opened = $navbar.hasClass("in");
43    if (_opened === true && !clickover.hasClass(".navbar-collapse") && !clickover.parents(".navbar-collapse").length) {
44        $navbar.collapse('hide');
45    }
46});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.