1(function ($, Drupal, window) { 2 Drupal.behaviors.register = { 3 attach: function (context, settings) { 4 $(once('register-login', 'body.path-login', context)).each(function () { 5 var $button = $('summary[aria-controls="edit-user-profiles-0"][aria-expanded="true"][aria-pressed="true"]'); 6 $button.hide(); 7 var $label = $('label[for="edit-user-profiles-0-entity-field-gender-none"].option'); 8 $label.hide(); 9 $('.captcha__description.description').hide(); 10 var $first_name = $('.js-form-item.form-item.js-form-type-textfield.form-type-textfield.js-form-item-user-profiles-0-entity-field-first-name-0-value.form-item-user-profiles-0-entity-field-first-name-0-value') 11 var $last_name = $('.field--type-string.field--name-field-last-name.field--widget-string-textfield.js-form-wrapper.form-wrapper') 12 $first_name.wrapAll('<div class="full-name"></div>'); 13 $('.full-name').append($last_name); 14 $('.user-register-form > #user-register-form').addClass('user-form') 15 16 var $userLoginForm = $('#user-login-form', context); 17 if ($userLoginForm.length) { 18 $userLoginForm.prepend('<h2>Login</h2>'); 19 } 20 var inputField = $('#edit-user-profiles-0-entity-field-first-name-0-value', context); 21 if (inputField.length) { 22 inputField.attr('placeholder', 'First Name'); 23 } 24 var inputLastName = $('#edit-user-profiles-0-entity-field-last-name-0-value', context); 25 if (inputLastName.length) { 26 inputLastName.attr('placeholder', 'Last Name'); 27 } 28 var inputPassWord = $('#edit-pass-pass1', context); 29 if (inputPassWord.length) { 30 inputPassWord.attr('placeholder', 'Password'); 31 } 32 var inputConfirmPassWord = $('#edit-pass-pass2', context); 33 if (inputConfirmPassWord.length) { 34 inputConfirmPassWord.attr('placeholder', 'Confirm Password'); 35 } 36 }); 37 } 38 } 39})(jQuery, Drupal, window);
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.