PageSourceSearch

https://cdn-resources.ableton.com/80bA26cPQ1hEJDFjpUKntxfqdmG3ZykO…/email-validation.10b8a353d3c9.js

js ableton.com collected 2026-09-24 08:25:52 UTC 1,109 bytes, 38 lines download raw bytes

1// This file is deprecated. Email Validation has been moved to static/scripts/src/abl-lib/lib/email-validation.js using vanilla JS
2// TODO: Replace the existing jQuery imports with the new vanilla JS code and remove this file.
3
4(function($) {
5  'use strict';
6
7  $(function() {
8    $('.js-validate-email input[type="email"]').blur(function() {
9      var $this = $(this);
10      var $warning = $this
11        .parents('.js-form-element')
12        .find('.js-validation-warning');
13
14      var data = {
15        email: $this.val(),
16        // csrfmiddlewaretoken needed to avoid error on /trial/
17        csrfmiddlewaretoken: $this
18          .parents('form')
19          .find('[name=csrfmiddlewaretoken]')
20          .val() // Adding the secret password
21      };
22
23      $warning.addClass('hidden');
24
25      if (data.email !== '') {
26        $.ajax({
27          data: data,
28          type: 'POST',
29          url: '/en/validate-email/'
30        }).always(function(json, textStatus, xhr) {
31          if (!json.valid) {
32            $warning.removeClass('hidden');
33          }
34        });
35      }
36    });
37  });
38})(window.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.