PageSourceSearch

https://www.ville-st-girons.fr/wp-content/litespeed/js/99db7353fe6d2aa0e84045b7b1b3563a.js?ver=2fcbb

js ville-st-girons.fr collected 2026-10-02 13:17:28 UTC 6,532 bytes, 20 lines download raw bytes

1function getGET(_attribut){if(!HTTP_GET_VARS[_attribut]){return'undefined'}
2return HTTP_GET_VARS[_attribut]}
3if(!String.prototype.includes){String.prototype.includes=function(search,start){if(typeof start!=='number'){start=0}
4if(start+search.length>this.length){return!1}else{return this.indexOf(search,start)!==-1}}}
5function activateLayers(_map,_layers,_startUp){layers=[];comma=',';if(typeof _layers.includes==="function"&&!_startUp){if(_layers.includes(comma)){layers=_layers.split(',')}}else{layers[0]=_layers}
6if(_layers==0){layers[0]=_layers}
7jQuery(layers).each(function(i,e){jQuery('#layerBox'+e+_map).children('i').removeClass('fa-eye-slash');jQuery('#layerBox'+e+_map).children('i').addClass('fa-eye');jQuery('#layerBox'+e+_map).children('span.layerColor').removeClass('layerColorHidden');jQuery('#layerBox'+e+_map).css({'background-color':'rgb(250,255,255)'});jQuery('#layerBox'+e+_map).data('active',!0);if(window[_map].getLayers().getArray().indexOf(window.vectorM[_map][e])===-1){window[_map].addLayer(window.vectorM[_map][e])}
8if(typeof _paq!=="undefined"){if(!_startUp){_paq.push(['trackEvent',translations.openlayer,jQuery('#layerBox'+e+_map).data('layer_title')])}else{_paq.push(['trackEvent',translations.openlayerAtStartup,jQuery('#layerBox'+e+_map).data('layer_title')])}}})}
9function checkChoosedLayers(_map){layers=[];jQuery('.layerOf'+_map).each(function(){if(jQuery(this).data('active')==!0){layers.push(jQuery(this).data('layer'))}});layers.join();if(layers!=""){return layers}else{return'none'}}
10function switchLayerOff(_e){_e.data('active',!1);_e.children('i').removeClass('fa-eye');_e.children('i').addClass('fa-eye-slash');_e.children('span.layerColor').addClass('layerColorHidden');window[_e.data('map')].removeLayer(window.vectorM[_e.data('map')][_e.data('layer')]);if(typeof _paq!=="undefined"){_paq.push(['trackEvent',translations.closeLayer,_e.text()])}}
11function switchLayerOn(_e){_e.data('active',!0);_e.children('i').removeClass('fa-eye-slash');_e.children('i').addClass('fa-eye');_e.children('span.layerColor').removeClass('layerColorHidden');var _mapName=_e.data('map');var _layer=window.vectorM[_mapName][_e.data('layer')];if(window[_mapName].getLayers().getArray().indexOf(_layer)===-1){window[_mapName].addLayer(_layer)}
12if(typeof _paq!=="undefined"){_paq.push(['trackEvent',translations.openlayer,_e.text()])}}
13jQuery(document).ready(function(){jQuery('.generatedLink').click(function(){if(jQuery(this).data('map_name')==''){jQuery(this).data('map_name',jQuery(this).data('map'))}
14window.prompt(translations.generateLink,location.protocol+'//'+location.host+location.pathname+'?map='+jQuery(this).data('map_name')+'&mapCenter['+jQuery(this).data('map_name')+']='+window[jQuery(this).data('map')].getView().getCenter()+'&mapZoom['+jQuery(this).data('map_name')+']='+window[jQuery(this).data('map')].getView().getZoom()+'&mapLayers['+jQuery(this).data('map_name')+']='+checkChoosedLayers(jQuery(this).data('map')))});jQuery('a.generatedShortCode').click(function(){mapName=jQuery(this).data('map_name');mapCenter=window[jQuery(this).data('map')].getView().getCenter();mapZoom=window[jQuery(this).data('map')].getView().getZoom();mapLayer=checkChoosedLayers(jQuery(this).data('map'));string2show='[osm_map_v3 setup_map_name="'+mapName+'" setup_center="'+mapCenter+'" setup_zoom="'+mapZoom+'" setup_layer="'+mapLayer+'" setup_trigger="'+translations.shortDescription+'"]';window.prompt(translations.generatedShortCode,string2show)});jQuery('a.cantGenerateShortCode').click(function(){var randomize='map_'+Math.random().toString(36).replace(/[^a-z]+/g,'').substr(0,5);window.prompt(translations.cantGenerateLink,'setup_map_name="'+randomize+'"')});jQuery('.setupChange').click(function(){var controlledMap=jQuery('*[data-map_name="'+jQuery(this).data('map_name')+'"]').data('map');window[controlledMap].getView().setZoom(jQuery(this).data('zoom'));mapCenter=jQuery(this).data('center').split(',');mapCenter[0]=parseFloat(mapCenter[0]);mapCenter[1]=parseFloat(mapCenter[1]);window[controlledMap].getView().setCenter(mapCenter);jQuery('.layerBoxes').each(function(i){if(jQuery('#layerBox'+i+controlledMap).length>0){switchLayerOff(jQuery('#layerBox'+i+controlledMap))}});if(jQuery(this).data('layer')!='none'){LayerStr=jQuery(this).data('layer');activateLayers(controlledMap,LayerStr,0)}});jQuery(document).on('click','.layerBoxesAll',function(){var _map=jQuery(this).attr('data-map');var layerIndices=jQuery(this).attr('data-layer-indices').toString().split(',');var allActive=!0;jQuery.each(layerIndices,function(i,idx){var e=parseInt(idx,10);if(jQuery('#layerBox'+e+_map).data('active')!==!0){allActive=!1;return!1}});jQuery.each(layerIndices,function(i,idx){var e=parseInt(idx,10);var layerBox=jQuery('#layerBox'+e+_map);if(layerBox.length>0){if(allActive){switchLayerOff(layerBox)}else if(layerBox.data('active')!==!0){switchLayerOn(layerBox)}}});if(allActive){jQuery(this).children('i').removeClass('fa-eye').addClass('fa-eye-slash')}else{jQuery(this).children('i').removeClass('fa-eye-slash').addClass('fa-eye')}});jQuery('.layerBoxes').click(function(){if(jQuery(this).data('active')==!0){switchLayerOff(jQuery(this))}else{switchLayerOn(jQuery(this))}});var strGET=decodeURIComponent(document.location.search.substr(1,document.location.search.length));if(strGET!=''){var pairings=strGET.split('&');for(var i=0;i<pairings.length;++i){var value='';pairing=pairings[i].split('=');if(pairing.length>1){value=pairing[1]}
15HTTP_GET_VARS[unescape(pairing[0])]=unescape(value)}}
16if(getGET('mapCenter['+getGET('map')+']')!='undefined'){mapCenter=getGET('mapCenter['+getGET('map')+']').split(',');mapCenter[0]=parseFloat(mapCenter[0]);mapCenter[1]=parseFloat(mapCenter[1]);controlledMap=jQuery('*[data-map_name="'+getGET('map')+'"]').data('map');if(typeof controlledMap=="undefined"){controlledMap=getGET('map')}
17window[controlledMap].getView().setCenter(mapCenter)}
18if(getGET('mapZoom['+getGET('map')+']')!='undefined'){window[controlledMap].getView().setZoom(getGET('mapZoom['+getGET('map')+']'))}
19if(getGET('mapLayers['+getGET('map')+']')!='undefined'){if(getGET('mapLayers['+getGET('map')+']')!='none'){LayerStr=getGET('mapLayers['+getGET('map')+']');activateLayers(controlledMap,LayerStr,0)}}else{jQuery('.osm-map-container').each(function(){if(jQuery('.layerOf'+jQuery(this).data('map')).length>0){mapStr=jQuery(this).data('map');if(jQuery(this).attr('data-autoshow')==='all'){jQuery('.layerOf'+mapStr).each(function(){switchLayerOn(jQuery(this))})}else{activateLayers(mapStr,'0',1)}}})}})
20;

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.