PageSourceSearch

https://mitwirk-o-mat.de/wp-content/themes/ecocoded/js/accessibility.min.js?ver=20160720

js mitwirk-o-mat.de collected 2026-10-06 20:48:56 UTC 1,316 bytes, 49 lines download raw bytes

1jQuery(document).ready(function($){
2	console.log("loaded");
3		$('.toggle-mobile-menu').click(function(e) {
4			setTimeout(function(){
5				e.preventDefault();  // don't grab focus
6			if($('body').hasClass('mobile-menu-active') ) {
7				$("#smobile-menu #primary-menu li a").first().focus();
8				$( document ).off("keydown");
9				$( document ).on( 'keydown', function ( e ) {
10					if ( e.keyCode === 27 ) { 
11						// escape to close popout menu
12						backToMenu();
13					}
14				});
15				
16				$('#smobile-menu .smenu-hide').off("keydown");
17				$('#smobile-menu .smenu-hide').on('keydown', function (e) {
18					if((e.keyCode === 9 && e.shiftKey) || e.keyCode === 13) {
19						   //shift tab or enter on "menu" close menu
20						backToMenu();
21					}
22				});
23			}
24			},10);
25		});
26
27		$("#smobile-menu #primary-menu").append(
28			'<li><a href="" id="accessibility-close-mobile-menu" style="padding:0;height:0;"></a></li>'
29		);
30
31		$("#accessibility-close-mobile-menu").focusin(function(e){
32			$( document ).off("keydown");
33			$('.toggle-mobile-menu').click();
34			$('#primary a').first().focus();
35		});
36	
37	
38		function backToMenu(){
39			$( document ).off("keydown");
40			$('.toggle-mobile-menu').trigger("click");
41			setTimeout(function(){
42				$('.toggle-mobile-menu').focus();
43			}, 10);
44			$('.toggle-mobile-menu').focus();
45		}
46	
47
48});
49	

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.