PageSourceSearch

https://iff.org/wp-content/themes/IFFTheme2023-NewColors/scripts/nav.js

js iff.org collected 2026-10-03 21:37:15 UTC 2,383 bytes, 64 lines download raw bytes

1jQuery(document).ready(function(){
2			jQuery('ul.menu').superfish();
3	document.onkeydown = function(evt) { evt = evt || window.event; var isEscape = false; if ("key" in evt) { isEscape = (evt.key === "Escape" || evt.key === "Esc"); } else { isEscape = (evt.keyCode === 27); } if (isEscape) { jQuery('li.menu-item-has-children').superfish('hide'); } }; 
4		});
5jQuery(".menuButton").click(function() {
6  jQuery(this).toggleClass("close");
7});
8jQuery(window).load(function(){
9jQuery('#mobnav-btn').click(
10function () {
11    jQuery('#default-navigation').toggleClass("xactive");
12jQuery('#mobclose').show();
13});
14jQuery('#mobclose').click(
15function () {
16    jQuery('#default-navigation').removeClass("xactive");
17jQuery('#mobclose').hide();
18});
19});
20		
21
22// Add ARIA role to menubar and menu items
23    jQuery('ul.menu').attr('role', 'menubar').find('li').attr('role', 'menuitem');
24
25    var top_level_links = $(this).find('> li > a');
26
27    // Set tabIndex to -1 so that top_level_links can't receive focus until menu is open
28    jQuery(top_level_links).next('ul')
29        .attr({ 'aria-hidden': 'true', 'role': 'menu' })
30        .find('a')
31            .attr('tabIndex',-1);
32
33    // Adding aria-haspopup for appropriate items
34    jQuery(top_level_links).each(function(){
35        if($(this).next('ul').length > 0)
36            $(this).parent('li').attr('aria-haspopup', 'true');
37    });
38
39    jQuery(top_level_links).hover(function(){
40        $(this).closest('ul')
41            .attr('aria-hidden', 'false')
42            .find('.'+settings.menuHoverClass)
43                .attr('aria-hidden', 'true')
44                .removeClass(settings.menuHoverClass)
45                .find('a')
46                    .attr('tabIndex',-1);
47        jQuery(this).next('ul')
48            .attr('aria-hidden', 'false')
49            .addClass(settings.menuHoverClass)
50            .find('a').attr('tabIndex',0);
51    });
52   jQuery(top_level_links).focus(function(){
53        $(this).closest('ul')
54            .attr('aria-hidden', 'false')
55            .find('.'+settings.menuHoverClass)
56                .attr('aria-hidden', 'true')
57                .removeClass(settings.menuHoverClass)
58                .find('a')
59                    .attr('tabIndex',-1);
60        jQuery$(this).next('ul')
61            .attr('aria-hidden', 'false')
62            .addClass(settings.menuHoverClass)
63            .find('a').attr('tabIndex',0);
64    });

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.