PageSourceSearch

https://atlasddt31.fr/assets/js/accueil.js

js atlasddt31.fr collected 2026-10-08 10:36:28 UTC 914 bytes, 28 lines download raw bytes

1$(function(){
2
3    $.get(base_url + 'tableau_de_bord/get_all_communes', function(data) {
4        let tmpl = ``;
5        data['features'].forEach( function(d) {
6            tmpl += `<option data-value="${d['properties']['code']}" value="${d['properties']['nom']} (${d['properties']['code']})"></option>`;
7        });
8
9        $('#tdb_commune').html(tmpl);
10
11    }, 'json');
12
13    $('#form_tdb').on('submit', function(e) {
14        e.preventDefault();
15        $('#input_tdb_commune').removeClass('is-valid is-invalid');
16        let selval = $('#input_tdb_commune').val();
17        let tosend = $('#tdb_commune option[value="' + selval + '"]').data('value');
18
19        if ( tosend === undefined) {
20            $('#input_tdb_commune').addClass('is-invalid');
21            return false;
22        }
23        $('#input_tdb_commune').addClass('is-valid');
24
25        window.open(base_url + 'tableau_de_bord/' + tosend);
26    });
27
28});

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.