PageSourceSearch

https://www.detran.am.gov.br/wp-content/themes/newscrunch/assets/js/ajax-search.js

js detran.am.gov.br collected 2026-10-02 04:48:03 UTC 1,003 bytes, 25 lines download raw bytes

1jQuery(document).ready(function($) {
2    $('#s, #res').on('input', function() {
3        let search = $(this).val();
4        if (search.length > 0) {
5            $.ajax({
6                url: newscrunch_ajax.ajax_url,
7                type: 'POST',
8                data: {
9                    action: 'newscrunch_live_search',
10                    keyword: search
11                },
12                beforeSend: function() {
13                    $('.search-results-container').remove();
14                    $('#searchform').after('<div class="search-results-container">' + newscrunch_ajax.searching_text + '</div>');
15                    $('#res-searchform').after('<div class="search-results-container">' + newscrunch_ajax.searching_text + '</div>');
16                },
17                success: function(response) {
18                    $('.search-results-container').html(response);
19                }
20            });
21        } else {
22            $('.search-results-container').remove();
23        }
24    });
25});

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.