| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/minedecapgaronne/plugins/system/ova/assets/js/ |
Upload File : |
(function($){$.a=function(name,prototype){var namespace=name.split('.')[0];name=name.split('.')[1];$[namespace]=$[namespace]||{};$[namespace][name]=function(options,element){if(arguments.length){this._setup(options,element)}};$[namespace][name].prototype=$.extend({'namespace':namespace,'pluginName':name},prototype);$.fn[name]=function(options){var isMethodCall=typeof options==="string",args=Array.prototype.slice.call(arguments,1),returnValue=this;if(isMethodCall&&options.substring(0,1)==='_'){return returnValue}this.each(function(){var instance=$.data(this,name);if(!instance){instance=$.data(this,name,new $[namespace][name](options,this))}if(isMethodCall){returnValue=instance[options].apply(instance,args)}});return returnValue}};$.a('ui.gmap',{options:{mapTypeId:'roadmap',zoom:5},option:function(key,options){if(options){this.options[key]=options;this.get('map').set(key,options);return this}return this.options[key]},_setup:function(options,element){this.el=element;options=options||{};jQuery.extend(this.options,options,{'center':this._latLng(options.center)});this._create();if(this._init){this._init()}},_create:function(){var self=this;this.instance={'map':new google.maps.Map(self.el,self.options),'markers':[],'overlays':[],'services':[]};google.maps.event.addListenerOnce(self.instance.map,'bounds_changed',function(){$(self.el).trigger('init',self.instance.map)});self._call(self.options.callback,self.instance.map)},addBounds:function(position){var bounds=this.get('bounds',new google.maps.LatLngBounds());bounds.extend(this._latLng(position));this.get('map').fitBounds(bounds);return this},inViewport:function(marker){var bounds=this.get('map').getBounds();return(bounds)?bounds.contains(marker.getPosition()):false},addControl:function(panel,position){this.get('map').controls[position].push(this._unwrap(panel));return this},addMarker:function(markerOptions,callback){markerOptions.map=this.get('map');markerOptions.position=this._latLng(markerOptions.position);var marker=new(markerOptions.marker||google.maps.Marker)(markerOptions);var markers=this.get('markers');if(marker.id){markers[marker.id]=marker}else{markers.push(marker)}if(marker.bounds){this.addBounds(marker.getPosition())}this._call(callback,markerOptions.map,marker);return $(marker)},clear:function(ctx){this._c(this.get(ctx));this.set(ctx,[]);return this},_c:function(obj){for(var property in obj){if(obj.hasOwnProperty(property)){if(obj[property]instanceof google.maps.MVCObject){google.maps.event.clearInstanceListeners(obj[property]);if(obj[property].setMap){obj[property].setMap(null)}}else if(obj[property]instanceof Array){this._c(obj[property])}obj[property]=null}}},find:function(ctx,options,callback){var obj=this.get(ctx);options.value=$.isArray(options.value)?options.value:[options.value];for(var property in obj){if(obj.hasOwnProperty(property)){var isFound=false;for(var value in options.value){if($.inArray(options.value[value],obj[property][options.property])>-1){isFound=true}else{if(options.operator&&options.operator==='AND'){isFound=false;break}}}callback(obj[property],isFound)}}return this},get:function(key,value){var instance=this.instance;if(!instance[key]){if(key.indexOf('>')>-1){var e=key.replace(/ /g,'').split('>');for(var i=0;i<e.length;i++){if(!instance[e[i]]){if(value){instance[e[i]]=((i+1)<e.length)?[]:value}else{return null}}instance=instance[e[i]]}return instance}else if(value&&!instance[key]){this.set(key,value)}}return instance[key]},openInfoWindow:function(infoWindowOptions,marker,callback){var iw=this.get('iw',infoWindowOptions.infoWindow||new google.maps.InfoWindow);iw.setOptions(infoWindowOptions);iw.open(this.get('map'),this._unwrap(marker));this._call(callback,iw);return this},closeInfoWindow:function(){if(this.get('iw')!=null){this.get('iw').close()}return this},set:function(key,value){this.instance[key]=value;return this},refresh:function(){var map=this.get('map');var latLng=map.getCenter();$(map).triggerEvent('resize');map.setCenter(latLng);return this},destroy:function(){this.clear('markers').clear('services').clear('overlays')._c(this.instance);jQuery.removeData(this.el,this.name)},_call:function(callback){if(callback&&$.isFunction(callback)){callback.apply(this,Array.prototype.slice.call(arguments,1))}},_latLng:function(latLng){if(!latLng){return new google.maps.LatLng(0.0,0.0)}if(latLng instanceof google.maps.LatLng){return latLng}else{latLng=latLng.replace(/ /g,'').split(',');return new google.maps.LatLng(latLng[0],latLng[1])}},_unwrap:function(obj){return(!obj)?null:((obj instanceof jQuery)?obj[0]:((obj instanceof Object)?obj:$('#'+obj)[0]))}});jQuery.fn.extend({triggerEvent:function(eventType){google.maps.event.trigger(this[0],eventType);return this},addEventListener:function(eventType,eventDataOrCallback,eventCallback){if(google.maps&&this[0]instanceof google.maps.MVCObject){google.maps.event.addListener(this[0],eventType,eventDataOrCallback)}else{if(eventCallback){this.bind(eventType,eventDataOrCallback,eventCallback)}else{this.bind(eventType,eventDataOrCallback)}}return this}});jQuery.each(('click rightclick dblclick mouseover mouseout drag dragend').split(' '),function(i,name){jQuery.fn[name]=function(a,b){return this.addEventListener(name,a,b)}})}(jQuery));
(function($){$.extend($.ui.gmap.prototype,{getCurrentPosition:function(callback,geoPositionOptions){if(navigator.geolocation){navigator.geolocation.getCurrentPosition(function(result){callback(result,'OK')},function(error){callback(null,error)},geoPositionOptions)}else{callback(null,'NOT_SUPPORTED')}},watchPosition:function(callback,geoPositionOptions){if(navigator.geolocation){this.set('watch',navigator.geolocation.watchPosition(function(result){callback(result,"OK")},function(error){callback(null,error)},geoPositionOptions))}else{callback(null,"NOT_SUPPORTED")}},clearWatch:function(){if(navigator.geolocation){navigator.geolocation.clearWatch(this.get('watch'))}},autocomplete:function(panel,callback){var self=this;$(this._unwrap(panel)).autocomplete({source:function(request,response){self.search({'address':request.term},function(results,status){if(status==='OK'){response($.map(results,function(item){return{label:item.formatted_address,value:item.formatted_address,position:item.geometry.location}}))}else if(status==='OVER_QUERY_LIMIT'){alert('Google said it\'s too much!')}})},minLength:3,select:function(event,ui){self._call(callback,ui)},open:function(){$(this).removeClass("ui-corner-all").addClass("ui-corner-top")},close:function(){$(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})},placesSearch:function(placeSearchRequest,callback){this.get('services > PlacesService',new google.maps.places.PlacesService(this.get('map'))).search(placeSearchRequest,callback)},clearDirections:function(){var directionsRenderer=this.get('services > DirectionsRenderer');if(directionsRenderer){directionsRenderer.setMap(null);directionsRenderer.setPanel(null)}},pagination:function(prop){var $el=$("<div id='pagination' class='pagination shadow gradient rounded clearfix'><div class='lt btn back-btn'></div><div class='lt display'></div><div class='rt btn fwd-btn'></div></div>");var self=this,i=0,prop=prop||'title';self.set('p_nav',function(a,b){if(a){i=i+b;$el.find('.display').text(self.get('markers')[i][prop]);self.get('map').panTo(self.get('markers')[i].getPosition())}});self.get('p_nav')(true,0);$el.find('.back-btn').click(function(){self.get('p_nav')((i>0),-1,this)});$el.find('.fwd-btn').click(function(){self.get('p_nav')((i<self.get('markers').length-1),1,this)});self.addControl($el,google.maps.ControlPosition.TOP_LEFT)}})}(jQuery));