nisarg.js
Calls click() on a DOM element
SHA-256b73ec855361ff486832406e9f53820cf95319765a68d0e2d94eeb528125939b8
MaleculeH(U)
Evidence
1/**
2 * Functions to add dropdown caret at the end of navigation menu item with children
3 * and code to remove white between navigation menu and header image.
4 */
5
6(function($){
7 /**
8 * Add Carate-down at the end of menu item, if the menu item has children
9 …
10:32… ( container ) {
11 // Add dropdown toggle that displays child menu items.
12 var dropdownToggle = $( '<button />', {
13 'class …
27:33… tem-has-children' ).attr( 'aria-haspopup', 'true' );
28
29 container.find( '.dropdown-toggle' ).click( function( e ) {
30 var _this = $( this ),
31 screenReaderSpan = _this.find( '.screen-reader-text' );
32
33 e.preventDefault();
34 _this.toggleClass( 'toggled-on' );
35 _this.next( '.children, .sub-men …