PageSourceSearch

https://www.unionmart.ru/bitrix/templates/design2025/components/cu…/.default/script.js?1788290063745

js unionmart.ru collected 2026-10-01 12:37:21 UTC 745 bytes, 24 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2    if (typeof ymaps === 'undefined') return;
3
4    ymaps.ready(function () {
5        var el = document.getElementById('ymap-contacts');
6        if (!el) return;
7
8        var lat  = parseFloat(el.getAttribute('data-lat')) || 55.875;
9        var lon  = parseFloat(el.getAttribute('data-lon')) || 37.436;
10        var zoom = parseInt(el.getAttribute('data-zoom')) || 16;
11
12        var map = new ymaps.Map(el, {
13            center: [lat, lon],
14            zoom: zoom,
15            controls: ['zoomControl']
16        });
17
18        var placemark = new ymaps.Placemark([lat, lon], {}, {
19            preset: 'islands#redShoppingIcon'
20        });
21
22        map.geoObjects.add(placemark);
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.