PageSourceSearch

https://chehochu.ru/wp-content/themes/quests/js/map.js

js chehochu.ru collected 2026-10-04 09:35:12 UTC 1,698 bytes, 1 lines download raw bytes

1function mapAdd(){var o=$(".map").data("key");let a=document.createElement("script");a.src=null==o||""==o?"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=getYaMap":"https://api-maps.yandex.ru/2.1/?apikey="+o+"&lang=ru_RU&onload=getYaMap";let e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(a,e)}function getYaMap(){$(".map").length>0&&$(".map").each((function(o,a){var e="map-"+o;$(this).attr("id",e),ymaps.ready((function(){var o=new ymaps.Map(e,{center:[$("#"+e).data("c1"),$("#"+e).data("c2")],zoom:$("#"+e).data("scale"),controls:["geolocationControl"]}),a=$("#"+e).closest(".map_box").find(".map_objects_point"),t=new Array,n=new ymaps.GeoObjectCollection;o.controls.add("zoomControl",{size:"small"}),o.controls.remove("geolocationControl"),o.controls.remove("searchControl"),o.controls.remove("trafficControl"),o.controls.remove("typeSelector"),o.controls.remove("fullscreenControl"),o.controls.remove("rulerControl"),a.each((function(o,a){var l=$(this)[0],r=$(this).html(),c="false"!==l.dataset.baloon;t[o]=new ymaps.Placemark([l.dataset.c1,l.dataset.c2],{balloonContentBody:c?r:null},{balloonPanelMaxMapArea:0,balloonOffset:[-51,50],hideIconOnBalloonOpen:!1,iconLayout:"default#image",iconImageHref:$("#"+e).data("icon"),iconImageSize:[116,70],iconImageOffset:[-58,-35]}),c&&t[o].events.add("click",(o=>{o.get("target").balloon.open()})),n.add(t[o])})),o.geoObjects.add(n),o.events.add("click",(o=>o.get("target").balloon.close()))}))}))}$((function(){if($(".map").length){var o=!1,a=$(".map").offset().top,e=$(window).height(),t=$(window).scrollTop();a<e||t>10?(mapAdd(),o=!0):$(window).on("scroll",(function(){$(this).scrollTop()>50&&(o||(mapAdd(),o=!0))}))}}));

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.