PageSourceSearch

https://www.infanthearing.org/scripts/show-hide-mobile-menu-functions.js

js infanthearing.org collected 2026-10-02 03:37:21 UTC 776 bytes, 18 lines download raw bytes

1/*standard jquery ui code to hide/ show the menu*/
2$( ".button" ).click(function() {
3  $( "#header-top-right, #search, #nav" ).toggle( "blind", 1000 );
4});
5
6
7/*extra jquery ui code for this page to fix a bug.  Without this, if you use the menu button (show/ hide toggle) and then widen the browser window to the point where the button icon is replaced by the desktop version navigation tabs, then the navigation tabs are hidden and the page must be refreshed.  Added to the code/ solution found on this page: http://stackoverflow.com/questions/13032496/jquery-toggle-issue-with-responsive-design*/
8
9$(window).resize(function() {
10	if($(window).width() > 819)
11	{
12		$("#header-top-right, #search, #nav").show();
13	}
14	else
15	{
16		$("#header-top-right, #search, #nav").hide();
17	}
18});

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.