PageSourceSearch

https://www.axiuminfra.com/wp-content/themes/zeyn/js/pseudo-dropdown.js?ver=1719432226

js axiuminfra.com collected 2026-10-05 03:11:14 UTC 1,486 bytes, 35 lines download raw bytes

1jQuery( document ).ready( function( $ ) {
2    $( '.pseudo-dropdown .pseudo-dropdown-item' ).on( 'click', function ( evt ) {
3        let id = $( this ).data( 'id' ),
4            filter_name = $( this ).parents( '.pseudo-dropdown' ).attr( 'id' ),
5            filter_function = $( this ).parents( '.pseudo-dropdown' ).data( 'filter_function' );
6            
7        $( this ).parents( '.pseudo-dropdown' ).data( 'filter_by', id ).find( '.pseudo-dropdown-button' ).text( $( this ).text() );
8        
9        window[filter_function]();
10        
11        $( this ).parents( '.pseudo-dropdown' ).removeClass( 'show-dropdown' );
12    });
13    
14    $( 'body' ).on( 'click', function ( evt ) {
15        if ( ! $( evt.target ).hasClass( 'pseudo-dropdown-button' ) ) {
16            $( '.pseudo-dropdown' ).removeClass( 'show-dropdown' );
17        }
18    });
19    
20    $( '.pseudo-dropdown .pseudo-dropdown-button' ).on( 'click', function ( evt ) {
21        evt.preventDefault();
22        
23        $( this ).parent().toggleClass( 'show-dropdown' );
24    });
25    
26    $( '.pseudo-dropdown' ).each(function () {
27        var filter_value = $( this ).data( 'filter_by' );
28        if ( filter_value != -1 ) {
29            $( this ).find( '.pseudo-dropdown-button' ).text( $( this ).find( '.pseudo-dropdown-item[data-id="' + filter_value + '"]' ).text() );
30            window[$( this ).data( 'filter_function' )]();
31        }
32    });
33    
34    //window[$( '.pseudo-dropdown' ).first().data( 'filter_function' )]();
35});

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.