PageSourceSearch

https://dgp23.ru/bitrix/components/simplex/doctor.search/templates/.default/script.js?1608034500912

js dgp23.ru collected 2026-09-28 22:54:24 UTC 912 bytes, 38 lines download raw bytes

1$(document).ready(function() {
2
3	$(".doctor_search").select2({
4	    ajax: {
5	        url: "/bitrix/components/simplex/doctor.search/ajax.php",
6	        dataType: 'json',
7	        processResults: function (data) {
8        		 return {
9	                results: data.items != null ? $.map(data.items, function(obj) {
10	                    return { id: obj, text: obj };
11	                }) : data.items
12	            };
13	        }
14	    }
15	});
16
17	$('body').on('change', '.doctor_search', function() {
18		if ($(this).val().length > 0) {
19			$.ajax({
20				url: "/ajax/getDoctors.php",
21				data: {STREET: $(this).val()},
22				success: function(data) {
23					$('.doctors_list').html(data);
24				}
25			})
26		}
27	});
28
29})
30
31$(document).on('keyup',
32     '.select2-search__field',
33     function (e) {       
34			var text = $(this).val(); 
35			var new_text = text.charAt(0).toUpperCase() + text.substr(1);
36			$(this).val(new_text);
37     }
38);

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.