PageSourceSearch

https://colore.hu/wp-content/plugins/colore-spec-search/colore-spec-search.js?ver=1790953685

js colore.hu collected 2026-10-02 20:13:02 UTC 2,929 bytes, 79 lines download raw bytes

1(function($) {
2    $(document).ready(function() {
3
4        $('body').append($('<div/>', {
5            id: 'spec-search-ret' 
6        }));
7
8        var Search_Inp;
9
10        Search_Inp = $('#top-menu-subscribe :button');
11
12        //$('#spec-search-ret').offset({top: Search_Inp.offset().top + Search_Inp.height() + 25});
13        //$('#spec-search-ret').offset({left: Search_Inp.offset().left});
14
15        //$('#spec-search-ret').show();
16
17        $('#top-search :input[type=button]').bind('click', function() {
18
19        });
20        $('#top-search .close').bind('click',function(){
21            if($('#spec-search-ret').is(':visible')){ 
22                $('#spec-search-ret').hide();
23            }
24            $('#top-search :input[type=search]').val('') 
25        });
26        
27        $('#top-search :input[type=search]').keyup(function(e) {
28            if(e.which == 13) {
29                //alert('You pressed enter!');
30                $('#spec-search-ret').hide(); 
31            } else {
32               // Get Ajax
33
34               //alert($('#top-search :input[type=search]').val());
35
36               var post_data = {
37                    'action': 'colore_spec_search',
38                    'searchstring': $('#top-search :input[type=search]').val()
39                };
40
41                //alert(colore_search_ajax.ajaxurl);
42            
43                //jQuery.post("/wp-admin/admin-ajax.php", data, function(response) {
44                //    console.log(response);
45                    //alert('Got this from the server: ' + response);
46                //});
47
48                $.ajax({
49                    type: "POST",
50                    url: colore_search_ajax.ajaxurl,
51                    data: post_data,
52                    DataType:'JSON',
53                    success: function(response){
54                        
55                        response = JSON.parse(response);
56
57                        console.log(response.status);
58                        if(response.status === 'NOK') {
59                            //if($('#spec-search-ret').is(':visible')){ 
60                            $('#spec-search-ret').hide();
61                            //} 
62                        } else if(response.status === 'OK') {
63                            $('#spec-search-ret').html(response.content);
64                            //alert('Itt');
65                            //if($('#spec-search-ret').is(':visible') === false){
66                            $('#spec-search-ret').offset({top: Search_Inp.offset().top + Search_Inp.height() + 25});
67                            $('#spec-search-ret').offset({left: Search_Inp.offset().left});     
68                            $('#spec-search-ret').show();
69                            //}
70                        }
71                    }
72                });
73
74                
75            }
76        });
77        
78    });
79}) (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.