PageSourceSearch

https://www.syage.org/wp-content/cache/min/1/wp-content/themes/syage/assets/js/map.js?ver=1783670894

js syage.org collected 2026-10-02 19:57:37 UTC 2,052 bytes, 7 lines download raw bytes

1'use strict';if(typeof mapOptions=='undefined'){var mapOptions={}}
2if(typeof mapMarkerOptions=='undefined'){var mapMarkerOptions={}}(function($){var $toggles=$('[data-toggle="map"]'),options={};$toggles.each(function(index,el){options.setMaxZoom=5;options.maxZoom=7;options=$.extend({},mapOptions,JSON.parse(JSON.stringify(el.dataset)));if(options.paddingTop||options.paddingLeft||options.paddingRight||options.paddingBottom){options.padding=[40,40,40,40];if(options.paddingTop){options.padding[0]=parseInt(options.paddingTop)}
3if(options.paddingRight){options.padding[1]=parseInt(options.paddingRight)}
4if(options.paddingBotom){options.padding[2]=parseInt(options.paddingBotom)}
5if(options.paddingLeft){options.padding[3]=parseInt(options.paddingLeft)}}
6if(options.fullHeight){var $map=$(el);$(window).on('resize',throttle(function(){$map.css('height','');var bodyHeight=$('body').outerHeight(),mapHeight=$map.outerHeight(),windowHeight=$(window).outerHeight(),fullHeight=windowHeight-(bodyHeight-mapHeight);if(fullHeight>mapHeight){$map.css('height',windowHeight-(bodyHeight-mapHeight))}},150)).resize()}
7var markers=[],marker,$map=!1,$el=$(el);$el.find('.marker').each(function(o,item){marker=$.extend({},mapMarkerOptions,item.dataset);marker.html=item.innerHTML.trim();markers.push(marker);item.remove()});options.markers=markers;if($el.parents('.modal').length){$el.parents('.modal').on('shown.bs.modal',function(){if(!$map){$map=$el.osm(options)}else{$map.refresh()}})}else if($el.parents('.tab-pane').length){var trigger_id=$el.parents('.tab-pane').attr('id');if($('#'+trigger_id).hasClass('active')){$map=$el.osm(options)}else{$('[href="#'+trigger_id+'"], [data-bs-target="#'+trigger_id+'"]').on('shown.bs.tab',function(){if(!$map){$map=$el.osm(options)}else{$map.refresh()}})}}else if($el.parents('.collapse').length){if($el.parents('.collapse').hasClass('in')){$map=$el.osm(options)}else{$el.parents('.collapse').on('shown.bs.collapse',function(){if(!$map){$map=$el.osm(options)}else{$map.refresh()}})}}else{$map=$el.osm(options)}})})(jQuery)

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.