PageSourceSearch

https://www.jcdecaux.com/modules/custom/jcdecaux_protected_pages_user/js/external_users_login_form.js?v=10.4.5

js jcdecaux.com collected 2026-10-01 10:43:53 UTC 1,041 bytes, 33 lines download raw bytes

1/**
2 * @file
3 */
4
5(function ($, Drupal, drupalSettings) {
6  'use strict';
7  Drupal.behaviors.externalLoginForm = {
8    attach: function () {
9      $(once('reset-pass-link', 'form.external-auth-form .reset-pass-link')).each(function () {
10        var $this = $(this);
11        $this.click(function(e) {
12          e.preventDefault();
13          $this.hide();
14          $this.parents('form.external-auth-form').toggleClass('reset-pass');
15          $('.external-auth input.login').remove();
16          $('.external-auth .form-item-pass').remove();
17          $('.external-auth .form-message').remove();
18          $('.external-auth input[name="mail"]').val('');
19        })
20      });
21
22      $(once('action-login', '.header-widget .external-login')).each(function () {
23        var $this = $(this);
24        const urlParams = new URLSearchParams(window.location.search);
25        const action = urlParams.get('action');
26        if (action && action ==='login') {
27          $this.click();
28        }
29      });
30
31    }
32  };
33})(jQuery, Drupal, drupalSettings);

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.