PageSourceSearch

https://lpotouraine.fr/wp-content/themes/oxygen/js/navigation.js?ver=20130301

js lpotouraine.fr collected 2026-10-02 14:44:21 UTC 824 bytes, 37 lines download raw bytes

1/**
2 * Handles toggling the navigation menu for small screens.
3 */
4
5( function ( $ ) {
6
7    var nav, button, menu;
8
9    button = $( ".menu-toggle" );
10        if ( ! button ) 
11            return;    
12
13    button.click( function() {
14    
15        nav = $(this).closest( ".site-navigation" );
16        if ( ! nav ) 
17            return;
18        
19        menu = $( "ul:first", nav );
20        if ( ! menu.length || ! menu.children().length ) {
21            button.hide();
22            return;
23        }
24
25        menu.toggleClass( 'nav-menu' );
26
27        if ( ! $(this).hasClass( 'toggled-on' ) ) {
28            $(this).removeClass( 'toggled-on' );
29            menu.removeClass( 'toggled-on' );
30        } else {
31            menu.addClass( 'toggled-on' );
32            $(this).addClass( 'toggled-on' );
33        }
34
35    } );
36
37} ) ( 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.