1(function ($) { 2 'use strict'; 3 4 Drupal.behaviors.addModalTriggersToMemberNavBar = { 5 attach: function(context, settings) { 6 7 const $memberNavBarSignUp = $('#member-nav-bar-signup'); 8 const $memberNavBarLogin = $('#member-nav-bar-login'); 9 if ($memberNavBarSignUp.length) { 10 $memberNavBarSignUp 11 .addClass('js-modal-trigger') 12 .on('click', (e) => { 13 e.preventDefault() 14 // Open the modal. 15 $('#nea-member-user-register').addClass('modal-open') 16 }) 17 } 18 if ($memberNavBarLogin.length) { 19 $memberNavBarLogin 20 .addClass('js-modal-trigger') 21 .on('click', (e) => { 22 e.preventDefault() 23 // Open the modal. 24 $('#nea-member-user-login').addClass('modal-open') 25 }) 26 } 27 } 28 }; 29})(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.