PageSourceSearch

https://henrico.gov/wp-content/themes/henrico/js/accessibility.js?ver=5.1

js henrico.gov collected 2026-10-02 03:23:47 UTC 1,425 bytes, 38 lines download raw bytes

1(function (w, $) {
2
3    // Primary navigation changes opacity and visibility, check for those attributes
4    function isVisible (ele) {
5        // return whether the element is visible or not
6        return ($(ele).css('opacity') == '1' && $(ele).css('visibility') == 'visible');
7    }
8
9    // Define a visible state
10    function show (ele) {
11        // This content is rendered hidden to avoid tab indexing the entire menu
12        // So we need to show it
13        $(ele).css('visibility', 'visible');
14        // Now we are going to replicate our hover animation with jQuery
15        $(ele).animate({top: '50px'}, 250);
16    }
17
18    function hide (ele) {
19        // Again, replicate the CSS transition using jQuery animate
20        $(ele).animate({top: -600}, 250, function () {
21            // Remove the style attribute to go back to CSS rules
22            // Otherwise the css hover will be overriden by the inline css
23            $(ele).removeAttr('style');
24        });
25    }
26
27    // Get the primary navigation menu (new header uses .main-menu)
28    var primary_menu = $('.main-menu');
29
30    if (!primary_menu.length || !primary_menu[0]) {
31        return;
32    }
33
34    // Arrow-key handling for the old primary nav was here.
35    // The new main nav uses standard link/tab behavior and doesn't require
36    // arrow-key navigation for WCAG 2.1 AA, so we keep this disabled.
37
38})(window, jQuery);

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.