1 2/*! 3 * Bootstrap 4 multi dropdown navbar ( https://bootstrapthemes.co/demo/resource/bootstrap-4-multi-dropdown-navbar/ ) 4 * Copyright 2017. 5 * Licensed under the GPL license 6 */ 7 8 9$( document ).ready( function () { 10 $( '.dropdown-menu a.dropdown-toggle' ).on( 'click', function ( e ) { 11 var $el = $( this ); 12 $el.toggleClass('active-dropdown'); 13 $el.parent('li').siblings().find('.dropdown-toggle').removeClass('active-dropdown') 14 var $parent = $( this ).offsetParent( ".dropdown-menu" ); 15 if ( !$( this ).next().hasClass( 'show' ) ) { 16 $( this ).parents( '.dropdown-menu' ).first().find( '.show' ).removeClass( "show" ); 17 } 18 19 var $subMenu = $( this ).next( ".dropdown-menu" ); 20 $subMenu.toggleClass( 'show' ); 21 22 $( this ).parent( "li" ).toggleClass( 'show' ); 23 24 $( this ).parents( 'li.nav-item.dropdown.show' ).on( 'hidden.bs.dropdown', function ( e ) { 25 $( '.dropdown-menu .show' ).removeClass( "show" ); 26 $el.removeClass('active-dropdown'); 27 } ); 28 29 // if ( !$parent.parent().hasClass( 'dropdown-right' ) ) { 30 // $el.next().css( { "top": $el[0].offsetTop, "left": $parent.outerWidth() - 1 } ); 31 // } 32 33 // if ( $el.next().hasClass( 'dropdown-left' ) ) { 34 // $el.next().css( { "top": $el[0].offsetTop, "left": 0 - $parent.outerWidth() } ); 35 // } 36 37 38 39 return false; 40 } ); 41} );
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.