PageSourceSearch

https://anermed.ru/local/templates/class_clinic/components/bitrix/…/script.js?17867822401621

js anermed.ru collected 2026-10-10 02:31:13 UTC 1,621 bytes, 70 lines download raw bytes

1var myMap;
2
3function initYandexMap() {
4	ymaps.ready(init);
5}
6
7function init() {
8	if (document.getElementById('map') != null) {
9		myMap = new ymaps.Map("map", {
10			center: [54.717302, 20.501625],
11			behaviors: ['default', 'scrollZoom'],
12			zoom: 13,
13			controls: []
14		});
15
16		$(".marker-info").each(function () {
17			var lat = $(this).data('lat');
18			var lng = $(this).data('lng');
19			var metkaname = $(this).data('name');
20			var metkatel = $(this).data('tel');
21			var metkaadr = $(this).data('adr');
22
23			var metkaimg = '/local/templates/class_clinic/images/favicon.svg';
24
25			var latlngcity = JSON.parse('[' + lat + ',' + lng + ']');
26
27			var myPlacemark = new ymaps.Placemark(latlngcity, {
28				hintContent: metkaname,
29				balloonContent:
30					'<div class="ball_content">' +
31					'<div class="ball_name">' + metkaname + '</div>' +
32					'<p>' + metkatel + '</p>' +
33					'<p>' + metkaadr + '</p>' +
34					'</div>',
35				clusterCaption: metkaname
36			}, {
37				iconLayout: 'default#image',
38				iconImageHref: metkaimg,
39				iconImageSize: [53, 53],
40				iconImageOffset: [-10, -40]
41			});
42
43			myMap.geoObjects.add(myPlacemark);
44
45			myPlacemark.events.add('click', function () {
46				myMap.panTo(latlngcity, {
47					delay: 0,
48					callback: function () {
49						myMap.options.set('maxAnimationZoomDifference', Infinity);
50
51						myMap.setZoom(17, {
52							smooth: true,
53							duration: 500
54						});
55					}
56				});
57			});
58		});
59	}
60}
61
62if (typeof ymaps !== 'undefined') {
63	initYandexMap();
64} else {
65	const ymapsScript = document.querySelector('#yandex-maps-api');
66
67	ymapsScript?.addEventListener('load', initYandexMap, {
68		once: true
69	});
70}

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.