PageSourceSearch

https://www.ehrenamt-ekm.de/assets/js/search.js?v1.2

js ehrenamt-ekm.de collected 2026-10-02 21:27:41 UTC 1,724 bytes, 89 lines download raw bytes

1$(function() {
2  $('#keywordsearch, #keywordsearch-xs').typeahead({
3    autoSelect: false,
4    items: 'all',
5    delay: 300,
6
7    sorter: function(items) {
8      return items;
9    },
10
11    source: function(query, process) {
12      $.ajax({
13        url: '/v6/api/search/keyword/?q=' + encodeURIComponent(query),
14
15        success: function(data) {
16          process(data);
17        }
18      });
19    },
20
21    afterSelect: function(obj) {
22      location.href = '/kirche/landeskirchenamt/suche/' + obj.id + '/';
23    },
24
25    matcher: function() {
26      return true;
27    }
28  });
29
30  $('#personsearch, #personsearch-xs').typeahead({
31    autoSelect: false,
32    items: 'all',
33    delay: 300,
34
35    sorter: function(items) {
36      return items;
37    },
38
39    source: function(query, process) {
40      $.ajax({
41        url: '/v6/api/search/person/?q=' + encodeURIComponent(query),
42
43        success: function(data) {
44          process(data);
45        }
46      });
47    },
48
49    afterSelect: function(obj) {
50      location.href = '/kirche/landeskirchenamt/suche/' + obj.id + '.html/';
51    },
52
53    matcher: function() {
54      return true;
55    }
56  });
57
58  $('#congregationsearch, #congregationsearch-xs').typeahead({
59    autoSelect: false,
60    items: 'all',
61    delay: 300,
62
63    sorter: function(items) {
64      return items;
65    },
66
67    source: function(query, process) {
68      if ( query.length < 3 ) {
69        return;
70      }
71
72      $.ajax({
73        url: '/v6/api/search/congregation/?q=' + encodeURIComponent(query),
74
75        success: function(data) {
76          process(data);
77        }
78      });
79    },
80
81    afterSelect: function(obj) {
82      location.href = obj.id; // + '.html/';
83    },
84
85    matcher: function() {
86      return true;
87    }
88  });
89});

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.