PageSourceSearch

https://www.yvelines.fr/wp-content/plugins/live-identity-captcha/js/live_captcha_ajax.js?ver=2.0

js yvelines.fr collected 2026-09-24 09:23:10 UTC 1,206 bytes, 37 lines download raw bytes

1(function ($) {
2    $(document).ready(function () {
3        function getFormValues(form) {
4            var formData = new FormData(form[0]),
5                values = Object.fromEntries(formData);
6
7            // Rebuild multi-select values.
8            $.each(values, function (key, value) {
9                var element = $(form).find(':input[name="' + key + '"]');
10                if (element.is('select[multiple]')) {
11                    values[key] = element.val();
12                }
13            });
14            return values;
15        }
16
17        $('.js-live-identity').submit(function (e) {
18            e.preventDefault();
19
20            const data = getFormValues($(this));
21            const ajaxUrl = $(this).attr('action');
22
23            fetch(ajaxUrl, {
24                method: 'POST',
25                headers: {
26                    'Content-Type': 'application/x-www-form-urlencoded',
27                    'Cache-Control': 'no-cache',
28                },
29                body: new URLSearchParams(data),
30            })
31                .then(response => response.json())
32                .then(response => {
33                    window.location.reload()
34                });
35        });
36    });
37})(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.