PageSourceSearch

https://a-articles.com/wp-content/themes/theme/js/blog-search.js

js a-articles.com collected 2026-10-01 23:45:07 UTC 751 bytes, 24 lines download raw bytes

1jQuery(document).ready(function($){
2    $('#blog-search').on('keyup', function(){
3        let query = $(this).val();
4        if(query.length >= 2){
5            $.ajax({
6                url: my_ajax.ajax_url,
7                data: {
8                    action: 'blog_search_suggestions',
9                    s: query
10                },
11                success: function(data){
12                    $('#search-suggestions').html(data).show();
13                }
14            });
15        } else {
16            $('#search-suggestions').hide();
17        }
18    });
19
20    // Клик по подсказке
21    $(document).on('click', '.search-suggestion-link', function(){
22        window.location.href = $(this).attr('href');
23    });
24});

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.