PageSourceSearch

https://www.gardasee.at/media/template/comdev-01e91498.js

js gardasee.at collected 2026-10-03 00:13:42 UTC 37,946 bytes, 51 lines download raw bytes

1if(typeof(Comdev)==='undefined'){var Comdev={};}
2Comdev.setRoot=function(root){this.root=root;};Comdev.ID=function(layer){return document.getElementById(layer);};Comdev.CLASS=function(layer){return $$('.'+layer);};Comdev.ajax={init:function(){this.classAjax=$$('.jd-ajax-json');this.classAjax.addEvent('click',function(event){var href=this.getProperty('href');var rel=eval('('+this.getProperty('rel')+')');var myRequest=new Request({method:'get',url:href,onSuccess:function(responseText){var data=eval('('+responseText+')');var cnt=$$('#'+rel.cnt);if(rel.type=='vote'){var info=Joomla.JText._('COM_JOMCOMDEV_REVIEWS_THANKS','Thanks! (No Language in JS)');}
3if(rel.type=='favorite'){var infof='<i class="fa fa-check btn btn-sm px-2 mx-1 my-0 btn-primary disabled"></i>';cnt.set('html',' '+infof+' ');count=jQuery('#jc-favorite-count');how=count.html();count.html(parseInt(how)+1);}
4if(rel.type=='compare'){var infof='<i class="fa fa-copy btn btn-sm  px-2 mx-1 my-0 btn-secondary disabled"></i>';cnt.set('html',' '+infof+' ');count=jQuery('#jc-compare-count');how=count.html();count.html(parseInt(how)+1);}}});myRequest.send();return false;});}};Comdev.yt={init:function(options){this.containerV=options.container;this.v=options.v;this.show();},show:function(){var params={allowScriptAccess:"always"};var atts={id:"ytPlayer"};swfobject.embedSWF("https://www.youtube.com/v/"+this.v+"?version=3&amp;enablejsapi=1&amp;playerapiid=player1",this.containerV,"500","300","9",null,null,params,atts);}};Comdev.address={set:function(options){this.id=options.id;this.data=[];this.data[this.id]={};this.data[this.id].link=options.link;this.data[this.id].addressInput=options.input;if(typeof(options)=='undefined'||typeof(options.container)=='undefined'){this.data[this.id].myElement=$$('#jomdirectoryAddressContainer');}else{this.data[this.id].myElement=$$('#'+options.container);}},get:function(address){var myElement=Comdev.address.data[Comdev.address.id].myElement;var myRequest=new Request({method:'get',url:address,onRequest:function(){myElement.set('html','<div style="float:left; color: #146295; padding-top:5px;" >...</div>');},onSuccess:function(responseText){myElement.set('html',responseText);Comdev.address.init();},onFailure:function(xhr){console.log(xhr);myElement.set('html','<div class="badge-cd badge-danger" >Sorry, your request failed :(</div>');}});myRequest.send();},init:function(){var myElement=Comdev.address.data[Comdev.address.id].myElement;var selected=myElement.getChildren();selected.each(function(item){item.addEvent('change',function(event){value=this.value;Comdev.address.get(Comdev.address.data[Comdev.address.id].link+value);Comdev.address.data[Comdev.address.id].addressInput.set('value',value);});})}};Comdev.field={};Comdev.field.setSelector=function(selector){this.selector=selector;this.textButtonAdd=Joomla.JText._('COM_JOMDIRECTORY_JS_BUTTON_ADD','Add new');this.textButtonDel=Joomla.JText._('COM_JOMDIRECTORY_JS_BUTTON_DELETE','Delete');this.textOptionNr=Joomla.JText._('COM_JOMCOMDEV_JS_BUTTON_OPTION','Option nr:');};Comdev.field.count=function(){var children=Comdev.field.selector.getChildren();return children.length-1;};Comdev.field.addToolbar=function(){var buttonAdd=new Element('div',{html:this.textButtonAdd,'class':'btn btn-success',style:'float: left; margin-right: 10px;',events:{click:this.add}});var buttonDelete=new Element('div',{html:this.textButtonDel,'class':'btn btn-danger',events:{click:this.del}});var containerInner=new Element('div',{'class':'control-group form-inline'});var button=new Element('div',{'class':'button2-left'});button.grab(buttonAdd);containerInner.grab(button);var buttonTwo=new Element('div',{'class':'button2-left off'});buttonTwo.grab(buttonDelete);containerInner.grab(buttonTwo);this.selector.grab(containerInner,'top');};Comdev.field.add=function(){var containerInner=new Element('div',{'class':'control-group'});var input=new Element('input',{type:'text',name:'jomdirectorySelect[value][]'});var inputOrder=new Element('input',{type:'text',value:(Comdev.field.count()+1),style:'width: 30px;',name:'jomdirectorySelect[order][]'});var label=new Element('label',{html:Comdev.field.textOptionNr+' '+(Comdev.field.count()+1),style:''});containerInner.grab(label);containerInner.grab(input);containerInner.grab(inputOrder);Comdev.field.selector.grab(containerInner);};Comdev.field.del=function(){var count=Comdev.field.count();if(count==0)return;var elementDelete=Comdev.field.selector.getLast();elementDelete.dispose();};Comdev.maps={set:function(options){this.type=options.type;this.typeMapView=options.typeMapView;this.container=options.container;this.mapsLimit=options.mapsLimit;if(typeof options.scrollwheel=='undefined'){this.scrollwheel=false;}else{this.scrollwheel=options.scrollwheel;}
5if(typeof(options)=='undefined'||typeof(options.zoom)=='undefined'){zoom=6;}else{zoom=options.zoom;}
6var noPoi=[{featureType:"poi",stylers:[{visibility:"off"}]}];
6if(this.typeMapView==1)this.typeMapView=google.maps.MapTypeId.SATELLITE;else if(this.typeMapView==2)this.typeMapView=google.maps.MapTypeId.HYBRID;else if(this.typeMapView==3)this.typeMapView=google.maps.MapTypeId.TERRAIN;else this.typeMapView=google.maps.MapTypeId.ROADMAP;this.markersArray=[];if(options.lat&&options.lng){this.center=new google.maps.LatLng(options.lat,options.lng);this.op={zoom:zoom,center:this.center,mapTypeId:this.typeMapView,scrollwheel:this.scrollwheel,styles:noPoi};}},streetViewTab:function(container){panorama=Comdev.maps.map.getStreetView();panorama.setPosition(Comdev.maps.center);panorama.linksControl=false;panorama.zoomControl=true;panorama.setPov({heading:265,pitch:0});panorama.setVisible(true);},places:function(options){$$('#jc-item-maps-places').addEvent('submit',function(e){keyword=$$('#jc-item-maps-places').getElement("input[name=search]").get("value");types=$$('#jc-item-maps-places').getElement("select[name=types]").get("value");radius=$$('#jc-item-maps-places').getElement("select[name=radius]").get("value");var request={keyword:keyword[0],radius:radius[0],type:types[0]};Comdev.maps.placesShow(request);return false;});},placesShow:function(request){request.location=this.center;var infowindow=null;this.placeInfo='aaa';Comdev.maps.clearOverlays();service=new google.maps.places.PlacesService(this.map);service.nearbySearch(request,function(results,status){$$('.jd-item-box-maps-info').set('html',status);console.log(results);console.log(status);if(status=='OK'){how=results.length;var bounds=new google.maps.LatLngBounds();for(i=0;i<how;i++){var marker='';object=results[i];icon=new google.maps.MarkerImage(object.icon,null,null,null,new google.maps.Size(30,30));bounds.extend(object.geometry.location);marker=Comdev.maps.addMarker(object.geometry.location,icon);info='<div id="content">'+'<div id="siteNotice">'+'</div>'+'<h2 id="firstHeading" class="firstHeading">'+object.name+'</h2>'+'<div id="bodyContent">'+'<p>'+object.vicinity+'</p>'+'</div>'+'</div>';infowindow=new google.maps.InfoWindow({content:info});Comdev.maps.placesGetDetails(marker,infowindow);}
7Comdev.maps.map.fitBounds(bounds);}});},placesGetDetails:function(marker,infowindow){google.maps.event.addListener(marker,'click',function(){infowindow.open(Comdev.maps.map,marker);});},init:function(options){if(typeof(options)=='undefined'||typeof(options.container)=='undefined'){containerMaps=this.container;}else{containerMaps=options.container;}
8this.map=new google.maps.Map(document.getElementById(containerMaps),this.op);this.jdMarker=new google.maps.Marker({position:this.center,map:this.map,draggable:false});},clearOverlays:function(){for(var i=0;i<this.markersArray.length;i++){this.markersArray[i].setMap(null);}},initList:function(comdevDataMaps){data=eval(comdevDataMaps);how=data.length;var bounds=new google.maps.LatLngBounds();var mcOptions={gridSize:40,maxZoom:15};if(how<=0)return;var noPoi=[{featureType:"poi",stylers:[{visibility:"off"}]}];this.op={zoom:6,center:this.center,mapTypeId:this.typeMapView,scrollwheel:false,styles:noPoi};this.map=new google.maps.Map(document.getElementById(this.container),this.op);var base=jQuery('script[src$="comdev.js"]').attr('src').replace(window.location.origin,'').replace('components/com_jomcomdev/javascript/comdev.js','');icon=new google.maps.MarkerImage(base+'components/com_jomcomdev/assets/images/iconMap.png',new google.maps.Size(42,57),new google.maps.Point(0,0),new google.maps.Point(21,59),new google.maps.Size(42,59));var markerCluster;var bounds=new google.maps.LatLngBounds();var mcOptions={gridSize:40,maxZoom:15,styles:[{height:42,url:base+'components/com_jomcomdev/assets/images/markers/cluster.png',width:42}]};for(var i=0;i<how;i++){var dataInfo=data[i];if(icon.url.indexOf('itemJc')==-1){icon.url=icon.url+'?itemJc='+dataInfo.number;}else{var temp_arr=icon.url.split('?');icon.url=temp_arr[0]+'?itemJc='+dataInfo.number;}
9if(dataInfo.maps_lat!=null&&dataInfo.maps_lng!=null){var latLng=new google.maps.LatLng(dataInfo.maps_lat,dataInfo.maps_lng);bounds.extend(latLng);this.addMarkerWithLabel(latLng,icon,dataInfo.number,dataInfo.link);}}
10this.map.fitBounds(bounds);
10markerCluster=new MarkerClusterer(this.map,this.markersArray,mcOptions);},addMarkerWithLabel:function(latLng,icon,number,link){var redirect=link;var markerOption={position:latLng,icon:icon,labelContent:'<div style="text-align: center; font-size: 14px; color: #555; font-weight: bold; width: 30px; line-height: 30px; ">'+number+'</div>',labelAnchor:new google.maps.Point(15,53),labelClass:"labels itemJc"+number,labelInBackground:false};var marker=new MarkerWithLabel(markerOption);google.maps.event.addListener(marker,'click',function(){window.location=redirect;});this.markersArray.push(marker);return marker;},addMarker:function(latLng,icon){marker=new google.maps.Marker({position:latLng,map:this.map,icon:icon,draggable:false});this.markersArray.push(marker);return marker;},adminMap:function(){this.jdMarker.draggable=true;$$('#jform_maps_search').addEvent('change',function(event){Comdev.maps.codeAddress(this.value,12);});$$('#jform_fulladdress').addEvent('change',function(event){Comdev.maps.codeAddress(this.value,12);});google.maps.event.addListener(this.jdMarker,'dragend',function(){Comdev.maps.setAddress(this.getPosition(),false);});},codeAddress:function(address,zoom){var geocoder=new google.maps.Geocoder();geocoder.geocode({'address':address},function(results,status){if(status==google.maps.GeocoderStatus.OK){locationIn=results[0].geometry.location;Comdev.maps.setAddress(locationIn,zoom);}else{alert('Location does not exist or Google API key is not set.');}});},setAddress:function(locationIn,zoom){if(zoom){this.map.setZoom(zoom);}
11this.map.setCenter(locationIn);this.jdMarker.setPosition(locationIn);Comdev.ID('jform_maps_lat').set('value',locationIn.lat());Comdev.ID('jform_maps_lng').set('value',locationIn.lng());},moduleMaps:function(comdevDataMaps){$$('#jomcomdevMapsModuleInfo').dispose();
11Comdev.maps.formSend=new Form.Request(Comdev.maps.container+'Form','result',{onSend:function(){},requestOptions:{spinnerOptions:{containerPosition:{relativeTo:Comdev.maps.formSend}}},resetForm:false,onSuccess:function(da,da2,da3,comdevDataMaps){Comdev.maps.markersArray=[];Comdev.maps.moduleMaps(comdevDataMaps);}});data=eval(comdevDataMaps);if(typeof(data)=='undefined'){var containerInner=new Element('div',{id:'jomcomdevMapsModuleInfo',style:'','class':'position-absolute d-flex justify-content-center align-items-center w-100 h-100 cd-map-overaly'});containerInner.set({html:Joomla.JText._('MOD_'+Comdev.maps.type.toUpperCase()+'_JS_RESULTS_NOT_FOUND')});console.log('MOD_'+Comdev.maps.type.toUpperCase()+'_JS_RESULTS_NOT_FOUND');Comdev.ID(this.container).adopt(containerInner);return false;}
12how=data.length;if(how==Comdev.maps.mapsLimit){console.log('limit ON'+how);}
13var markerCluster;var bounds=new google.maps.LatLngBounds();var base=jQuery('script[src$="comdev.js"]').attr('src').replace(window.location.origin,'').replace('components/com_jomcomdev/javascript/comdev.js','');var mcOptions={gridSize:40,maxZoom:15,styles:[{height:42,url:base+'modules/mod_'+Comdev.maps.type+'_maps/images/cluster.png',width:42}]};if(how<=0)return;var noPoi=[{featureType:"poi",stylers:[{visibility:"off"}]}];this.op={zoom:6,center:this.center,mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:this.scrollwheel,styles:noPoi};this.map=new google.maps.Map(document.getElementById(this.container),this.op);var data2={};var showedIDs=[];for(var i=0;i<how;i++){var dataInfo=data[i];if(typeof data2[dataInfo.maps_lat]=='undefined'){data2[dataInfo.maps_lat]={};}
14if(typeof data2[dataInfo.maps_lat][dataInfo.maps_lng]=='undefined'){data2[dataInfo.maps_lat][dataInfo.maps_lng]=[];}
15data2[dataInfo.maps_lat][dataInfo.maps_lng].push(i);}
16for(var i=0;i<how;i++){var dataInfo=data[i];if(dataInfo.maps_lat!=null&&dataInfo.maps_lng!=null){if(showedIDs.indexOf(dataInfo.id)==-1){icon=new google.maps.MarkerImage(dataInfo.markerImage,new google.maps.Size(42,57),new google.maps.Point(0,0),new google.maps.Point(21,57),new google.maps.Size(42,57));var latLng=new google.maps.LatLng(dataInfo.maps_lat,dataInfo.maps_lng);bounds.extend(latLng);var actualMarker=this.addMarker(latLng,icon);content='<div id="jc-mod-maps-cloud-container" class="'+Comdev.maps.type+'">';if(data2[dataInfo.maps_lat][dataInfo.maps_lng].length>1){data2[dataInfo.maps_lat][dataInfo.maps_lng].forEach(function(index,key){var dataInfo2=data[index];if(key==0){content+='<div class="jc-mod-maps-cloud-body active">';}else{content+='<div class="jc-mod-maps-cloud-body">';}
17content+='<div class="jc-mod-cloud-header"><a title="'+dataInfo2.title+'" href="'+dataInfo2.link+'">'+dataInfo2.title+'</a></div>';content+='<div class="d-flex justify-content-between w-100 my-3">';if(dataInfo2.address){content+='<div class="mr-3"><span class="jc-mod-cloud-address"><i class="fa fa-map-marker"></i> '+dataInfo2.address+'</span></div>';}
18if(dataInfo2.price){content+='<div class="justify-content-end"><div class="text-primary text-right jc-mod-cloud-price">'+dataInfo2.price+'</div></div>';}
19content+='</div>';content+='<div class="d-flex w-100 jc-mod-cloud-description">';content+='<div class="d-block position-relative mr-3">'+dataInfo2.introtext+'</div>';content+='<div class="d-block position-relative justify-content-end">';if(dataInfo2.image){content+='<a  href="'+dataInfo2.link+'"><img alt="image" src="'+dataInfo2.image+'" class="img-thumbnail"></a>';}
20content+='</div>';content+='</div>';content+='<div class="jc-mod-cloud-footer clearfix pt-3 mt-3">';content+='<div class="jc-mod-cloud-category float-left text-uppercase">';content+='<i class="fa fa-folder-o"></i> ';if(typeof(dataInfo2.type_title)!=='undefined')content+=dataInfo2.type_title+' / ';content+=dataInfo2.category_title;content+='</div>';content+='<div class="float-right">';content+='<a  href="'+dataInfo2.link+'" class="btn btn-sm btn-primary float-right">'+Joomla.JText._('MOD_'+Comdev.maps.type.toUpperCase()+'_JS_VIEW_MORE')+' <i class="fa fa-chevron-right"></i></a>';content+='</div>';
20content+='</div>';content+='</div>';showedIDs.push(dataInfo2.id);});content+='<div class="control-btn">'+'<button class="btn btn-min btn-elegant prev"><i class="mdi mdi-chevron-left"></i></button>'+'<button class="btn btn-min btn-elegant next"><i class="mdi mdi-chevron-right"></i></button></div>';}else{content+='<div class="jc-mod-maps-cloud-body active">';content+='<div class="jc-mod-cloud-header"><a title="'+dataInfo.title+'" href="'+dataInfo.link+'">'+dataInfo.title+'</a></div>';content+='<div class="d-flex justify-content-between w-100 my-3">';if(dataInfo.address){content+='<div class="mr-3"><span class="jc-mod-cloud-address"><i class="fa fa-map-marker"></i> '+dataInfo.address+'</span></div>';}
21if(dataInfo.price){content+='<div class="justify-content-end"><div class="text-primary text-right jc-mod-cloud-price">'+dataInfo.price+'</div></div>';}
22content+='</div>';content+='<div class="d-flex w-100 jc-mod-cloud-description">';content+='<div class="d-block position-relative mr-3">'+dataInfo.introtext+'</div>';content+='<div class="d-block position-relative justify-content-end">';if(dataInfo.image){content+='<a  href="'+dataInfo.link+'"><img alt="image" src="'+dataInfo.image+'" class="img-thumbnail"></a>';}
23content+='</div>';content+='</div>';content+='<div class="jc-mod-cloud-footer clearfix pt-3 mt-3">';content+='<div class="jc-mod-cloud-category float-left text-uppercase">';content+='<i class="fa fa-folder-o"></i> ';if(typeof(dataInfo.type_title)!=='undefined')content+=dataInfo.type_title+' / ';content+=dataInfo.category_title;content+='</div>';content+='<div class="float-right">';content+='<a  href="'+dataInfo.link+'" class="btn btn-sm btn-primary float-right">'+Joomla.JText._('MOD_'+Comdev.maps.type.toUpperCase()+'_JS_VIEW_MORE')+' <i class="fa fa-chevron-right"></i></a>';content+='</div>';content+='</div>';content+='</div>';showedIDs.push(dataInfo.id);}
24content+='</div>';var base=jQuery('script[src$="comdev.js"]').attr('src').replace(window.location.origin,'').replace('components/com_jomcomdev/javascript/comdev.js','');var myOptions={content:content,disableAutoPan:false,boxStyle:{width:"350px"},maxWidth:0,pixelOffset:new google.maps.Size(-151,-357),zIndex:null,closeBoxMargin:"10px 60px 2px 2px",closeBoxURL:base+"components/com_jomcomdev/assets/images/close.png",infoBoxClearance:new google.maps.Size(1,1),position:latLng,isHidden:false,pane:"floatPane",enableEventPropagation:false};actualMarker.infobox=new InfoBox(myOptions);actualMarker.infobox.isOpen=false;}else{continue;}}}
25Array.each(this.markersArray,function(actualMarker,index){google.maps.event.addListener(actualMarker,'click',function(e){if(actualMarker.infobox.isOpen){actualMarker.infobox.close(this.map,actualMarker);actualMarker.infobox.isOpen=false;}else{actualMarker.infobox.open(this.map,actualMarker);actualMarker.infobox.isOpen=true;}});});if(how>1){this.map.fitBounds(bounds);}
26else if(how==1){this.map.setCenter(bounds.getCenter());this.map.setZoom(16);}
27markerCluster=new MarkerClusterer(this.map,this.markersArray,mcOptions);},mapsSmoke:function(){}};Comdev.places={init:function(country){var options={types:['geocode']};searchMore=false;var inputSearch=document.getElementById('btnSearch');google.maps.event.addDomListener(window,'load',function(){(function(input,opts,nodes){var ac=new google.maps.places.Autocomplete(input,opts);if(typeof(eval(country))!=='undefined'){ac.setComponentRestrictions({'country':eval(country)});}
28google.maps.event.addListener(ac,'place_changed',function(){console.log(place);var place=ac.getPlace();if(!place.geometry){searchMore=true;return;}
29jQuery('#longitude').val(place.geometry.location.lng());jQuery('#latitude').val(place.geometry.location.lat());});},(document.getElementById('address_lat_lng'),options,[{n:inputSearch,e:'click'}]));});if(!searchMore)return;addressInput=jQuery('#address_lat_lng');addressInput.focusout(function(){addressValue=addressInput.val();addressLongValue=jQuery('#longitude').val();addressLatValue=jQuery('#latitude').val();if(addressValue!=''){Comdev.places.codeAddress(addressValue);}
30return false;});},codeAddress:function(address){var geocoder=new google.maps.Geocoder();geocoder.geocode({'address':address},function(results,status){console.log(google.maps.GeocoderStatus);if(status==google.maps.GeocoderStatus.OK){jQuery('#longitude').val(results[0].geometry.location.lng());jQuery('#latitude').val(results[0].geometry.location.lat());}else{console.log('Location does not exist or Google API key is not set.');}});}};Comdev.price={init:function(options){this.selector=options.selector;this.textButtonAdd=Joomla.JText._('COM_JOMCOMDEV_JS_BUTTON_ADD','Add new');this.textButtonDel=Joomla.JText._('COM_JOMCOMDEV_JS_BUTTON_DELETE','Delete');this.textOptionNr=Joomla.JText._('COM_JOMCOMDEV_JS_BUTTON_OPTION','Option nr:');this.htmlPrice=options.htmlPrice;var buttonAdd=new Element('div',{html:this.textButtonAdd,'class':'btn btn-success',style:'margin-right: 10px',events:{click:Comdev.price.add}});var containerInner=new Element('div',{'class':'control-group'});var button=new Element('div',{'class':'button2-left'});button.grab(buttonAdd);containerInner.grab(button);this.selector.grab(containerInner,'top');},add:function(){var buttonDelete=new Element('div',{html:Comdev.price.textButtonDel,'class':'btn btn-danger',events:{click:Comdev.price.delthis}});var containerInner=new Element('div',{'class':'control-group'});containerInner.set({html:Comdev.price.htmlPrice});containerInner.grab(buttonDelete);Comdev.price.selector.grab(containerInner,'bottom');},delthis:function(i){this.getParent('.control-group').dispose();},del:function(i){i.getParent('.jomcomdevPriceRow').dispose();}};Comdev.file={init:function(options){this.selector=options.selector;this.textButtonAdd=Joomla.JText._('COM_JOMCOMDEV_JS_BUTTON_ADD','Add new');this.textButtonDel=Joomla.JText._('COM_JOMCOMDEV_JS_BUTTON_DELETE','Delete');this.textOptionNr=Joomla.JText._('COM_JOMCOMDEV_JS_BUTTON_OPTION','Option nr:');this.htmlPrice=options.htmlPrice;console.log(options.selector);var buttonAdd=new Element('div',{html:this.textButtonAdd,'class':'btn btn-success',style:'margin-right: 10px',events:{click:Comdev.file.add}});var containerInner=new Element('div',{'class':'control-group'});var button=new Element('div',{'class':'button2-left'});button.grab(buttonAdd);containerInner.grab(button);this.selector.grab(containerInner,'top');},add:function(){var buttonDelete=new Element('div',{html:Comdev.file.textButtonDel,'class':'btn btn-danger',events:{click:Comdev.file.delthis}});var containerInner=new Element('div',{'class':'control-group'});containerInner.set({html:Comdev.file.htmlPrice});containerInner.grab(buttonDelete);Comdev.file.selector.grab(containerInner,'bottom');},delthis:function(i){this.getParent('.control-group').dispose();},del:function(i){i.getParent('.jomcomdevPriceRow').dispose();}};Comdev.fullcalendar={init:function(options){this.monthNames=Joomla.JText._('COM_JOMCOMDEV_MONTH_NAMES',"January,February,March,April,May,June,July,August,September,October,November,December").split(",");this.dayNamesShort=Joomla.JText._('COM_JOMCOMDEV_DAY_NAMES_SHORT',"Sun,Mon,Tue,Wed,Thu,Fri,Sat").split(",");this.buttonText={today:Joomla.JText._('COM_JOMCOMDEV_TODAY',"today"),month:Joomla.JText._('COM_JOMCOMDEV_MONTH',"month"),week:Joomla.JText._('COM_JOMCOMDEV_WEEK',"week"),day:Joomla.JText._('COM_JOMCOMDEV_DAY',"day")}
31this.currency=options.currency;this.minimumStay=options.minimumStay;this.container=Comdev.ID(options.container);this.containerEnd=Comdev.ID(options.container+'End');this.containerRoom=Comdev.ID(options.container+'Room');
31this.containerRoomParams=Comdev.ID(options.container+'Params');this.layer=options.container;this.object=options.object_id;this.items=options.items_id;this.date=new Date();this.d=this.date.getDate();this.m=this.date.getMonth();this.y=this.date.getFullYear();this.events=null;if(options.site){this.site();}else{this.data();}},data:function(){address='/index.php?option=com_jomholiday&task=ajax.getData&format=raw&object_id='+this.object+'&items_id='+this.items;var myRequest=new Request({method:'get',noCache:true,url:address,onSuccess:function(responseText){Comdev.fullcalendar.events=eval(responseText);Comdev.fullcalendar.admin();}});myRequest.send();},admin:function(){this.calendar=jQuery(this.container).fullCalendar({selectable:true,events:this.events,selectHelper:true,select:function(start,end,allDay,jsEvent,view){html='<input type="hidden" id="comdev_start" value="'+start.format("YYYY-MM-DD")+'">\n\
32                          <input type="hidden" id="comdev_end" value="'+end.format("YYYY-MM-DD")+'">';jQuery('#ComdevCalendarForm').show();jQuery(Comdev.fullcalendar.container).html(html);},eventClick:function(event){var result=confirm("Want to delete?");if(result==true){address='/index.php?option=com_jomholiday&task=ajax.deleteData&format=raw';myRequest=new Request.HTML({url:address}).post('id='+event.home_id);Comdev.fullcalendar.calendar.fullCalendar('removeEvents',[event._id]);}}});},site:function(){this.boxBooking=jQuery('.jh-bookBox');this.buttonBooking=jQuery('#jhBooking');this.firstStepAccordion=jQuery('#jh-accordionToggleFirstStep');this.secondStepAccordion=jQuery('#jh-accordionToggleSecondStep');Comdev.fullcalendar.containerRoomParams.hide();this.firstStepAccordion.click(function(){Comdev.fullcalendar.toFirstStep()});Comdev.fullcalendar.boxes=jQuery('.jh-resourceBox');Comdev.fullcalendar.boxes.hide();address='/index.php?option=com_jomholiday&task=ajax.getRoomData&format=raw&min=1';myRequest=new Request.HTML({url:address}).get('items_id='+Comdev.fullcalendar.items);myRequest.onSuccess=function(r,r2,text){Comdev.fullcalendar.data=eval('('+text+')');if(typeof(data)==='undefined'){}
33Comdev.fullcalendar.siteFullcalendarStartDate(Comdev.fullcalendar.data);}},siteFullcalendarStartDate:function(data){jQuery(Comdev.fullcalendar.container).fullCalendar('destroy');jQuery(Comdev.fullcalendar.containerEnd).fullCalendar('destroy');Comdev.fullcalendar.container.show();Comdev.fullcalendar.containerEnd.hide();var today=new Date();Comdev.fullcalendar.calendar=jQuery(Comdev.fullcalendar.container).fullCalendar({monthNames:Comdev.fullcalendar.monthNames,dayNamesShort:Comdev.fullcalendar.dayNamesShort,buttonText:Comdev.fullcalendar.buttonText,dayRender:function(date,cell){if(date.format("YYYY-MM-DD")<today.format("%Y-%m-%d")){cell.addClass('jh-calendar-old-date');return;}
34var datapoa=data[date.format("YYYY-MM-DD")];if(typeof(datapoa)!=='undefined'){cell.addClass(datapoa.class);if(datapoa.left_rooms<=0){cell.addClass('jh-calendar-no-rooms');}
35if(datapoa.left_rooms>0){cell.addClass('jh-calendar-available');textNew=Math.floor(datapoa.price)+' '+Comdev.fullcalendar.currency;if(datapoa.promotion>0){textNew=textNew+"<br/><span class=\"promotion\">-"+datapoa.promotion+"%</span>";cell.addClass('jh-promotion');}
36jQuery(cell).html('<div class="fc-day-content">'+textNew+'</div>');cell.click(function(event){Comdev.fullcalendar.site.date_start=date.format("YYYY-MM-DD");jQuery(this).css({"background-color":"#eee"});Comdev.fullcalendar.siteFullcalendarEndDate(data,date);});}}}});},siteFullcalendarEndDate:function(data,date){jQuery(Comdev.fullcalendar.container).fullCalendar('destroy');Comdev.fullcalendar.container.hide();Comdev.fullcalendar.containerEnd.show();var lastDate=Comdev.fullcalendar.data[Object.keys(Comdev.fullcalendar.data)[Object.keys(Comdev.fullcalendar.data).length-1]];renderGo=true;minimumStay=Comdev.fullcalendar.minimumStay;roomFirstOpen=true;Comdev.fullcalendar.calendarEndTab=jQuery(Comdev.fullcalendar.containerEnd).fullCalendar({monthNames:Comdev.fullcalendar.monthNames,dayNamesShort:Comdev.fullcalendar.dayNamesShort,buttonText:Comdev.fullcalendar.buttonText,year:date.format("YYYY"),month:date.format("MM")-1,day:date.format("DD"),dayRender:function(date2,cell2){if(renderGo){if(date2.format("YYYY-MM-DD")>=date.format("YYYY-MM-DD")&date2.format("YYYY-MM-DD")<=lastDate.date){var datapoa=data[date2.format("YYYY-MM-DD")];if(typeof(datapoa)==='undefined'){renderGo=false;return false;}
37if(typeof(datapoa)!=='undefined'){if(datapoa.left_rooms<=0&&!roomFirstOpen){cell2.addClass('jh-calendar-no-rooms');}
38if(datapoa.left_rooms>0||roomFirstOpen){textNew=Math.floor(datapoa.price)+' '+Comdev.fullcalendar.currency;
38if(datapoa.promotion>0){textNew=textNew+"<br/><span class=\"promotion\">-"+datapoa.promotion+"%</span>";cell2.addClass('jh-promotion');}
39jQuery(cell2).html('<div class="fc-day-content">'+textNew+'</div>');if(minimumStay>0){cell2.addClass('jh-calendar-checked');}else{if(date2.format("YYYY-MM-DD")==date.format("YYYY-MM-DD")){cell2.addClass('jh-calendar-checked');cell2.addClass('jh-calendar-left-block');}else{cell2.addClass('jh-calendar-available');cell2.addClass(datapoa.class);cell2.click(function(event){var date_end=new Date(date2);date_end.setDate(date2.format("D")-1);jQuery(Comdev.fullcalendar.container).fullCalendar('destroy');Comdev.fullcalendar.site.date_end=date_end.format("%Y-%m-%d");Comdev.fullcalendar.site.date_end_show=date2.format("YYYY-MM-DD");jQuery(Comdev.fullcalendar.calendarEndTab).fullCalendar('destroy');Comdev.fullcalendar.containerEnd.hide();Comdev.fullcalendar.getRooms();});}}
40minimumStay--;}
41if(datapoa.left_rooms<=0){roomFirstOpen=false;}
42if(datapoa.left_rooms>0){roomFirstOpen=true;}}}}}});jQuery(Comdev.fullcalendar.containerEnd).fullCalendar('gotoDate',Comdev.fullcalendar.site.date_start);},getRooms:function(){address='/index.php?option=com_jomholiday&task=ajax.getRoomData&format=raw&min=0';myRequest=new Request.HTML({url:address}).get('items_id='+Comdev.fullcalendar.items+'&date_start='+Comdev.fullcalendar.site.date_start+'&date_end='+Comdev.fullcalendar.site.date_end);myRequest.onSuccess=function(r,r2,text){var data=eval('('+text+')');priceSummary=jQuery('.jh-resourceSummmarySave');priceC=jQuery('.jh-resourceSummaryPrice');priceD=jQuery('.jh-resourceSummaryDiscount');if(text.length>2){for(var key in data){jQuery('#jhBookNO').hide();var room;room=jQuery('#jhBook'+key);room.show();var dataRoom=data[key];var price=0;var indexEach=0;var priceNoPromotion=0;var pricePromotionNumber=0;Comdev.fullcalendar.site.days_book=data[key].length;Array.each(data[key],function(rr,index){newPrice=parseFloat(rr.price);price=price+newPrice;priceNoPromotion=priceNoPromotion+(newPrice*parseFloat(rr.promotion)/100);pricePromotionNumber=pricePromotionNumber+parseFloat(rr.promotion);indexEach=index;how_people=rr.how_people;kids_age=rr.kids_age;});jQuery("#roompriceid"+key).html(Math.floor(price));pricePromotionNumber=Math.floor(pricePromotionNumber/(indexEach+1));if(pricePromotionNumber){jQuery("#roompromoid"+key).show();jQuery("#roompromonumid"+key).html(Math.floor(priceNoPromotion));jQuery("#roompromoprocid"+key).html(pricePromotionNumber);}
43Comdev.fullcalendar.roomClick(room,Math.floor(price),pricePromotionNumber,Math.floor(priceNoPromotion),key,how_people,kids_age);}}else{jQuery('#jhBookNO').show();}};Comdev.fullcalendar.buttonBooking.click(function(){formBooking=jQuery('#jcRoom');formBooking.append("<input name='date_start' value='"+Comdev.fullcalendar.site.date_start+"' type='hidden'>");formBooking.append("<input name='date_end' value='"+Comdev.fullcalendar.site.date_end+"' type='hidden'>");formBooking.append("<input name='date_end_show' value='"+Comdev.fullcalendar.site.date_end_show+"' type='hidden'>");formBooking.append("<input name='days_book' value='"+Comdev.fullcalendar.site.days_book+"' type='hidden'>");formBooking.append("<input name='price' value='"+Comdev.fullcalendar.site.price+"' type='hidden'>");formBooking.append("<input name='pricePromotionNumber' value='"+Comdev.fullcalendar.site.pricePromotionNumber+"' type='hidden'>");formBooking.append("<input name='priceNoPromotion' value='"+Comdev.fullcalendar.site.priceNoPromotion+"' type='hidden'>");formBooking.append("<input name='items_id' value='"+Comdev.fullcalendar.items+"' type='hidden'>");formBooking.append("<input name='object_id' value='"+Comdev.fullcalendar.site.object_id+"' type='hidden'>");if(typeof(Comdev.fullcalendar.site.object_id)==='undefined'){errorDiv=jQuery('#jh-errorBook');errorDiv.show();}else{formBooking.submit();}})},roomClick:function(room,price,pricePromotionNumber,priceNoPromotion,object_id,how_people,kids_age){priceSummary=jQuery('.jh-resourceSummmarySave');priceC=jQuery('.jh-resourceSummaryPrice');priceD=jQuery('.jh-resourceSummaryDiscount');priceDP=jQuery('.jh-resourceSummaryDiscountPrice');room.find('.select-btn').click(function(){diy=jQuery('.jh-resourceBox',Comdev.fullcalendar.containerRoom);diy.removeClass('jh-selected');jQuery(this).parents('.jh-resourceBox').addClass('jh-selected');Comdev.fullcalendar.containerRoomParams.show();priceC.html(price);if(priceNoPromotion>0){priceSummary.show();priceD.html('-'+pricePromotionNumber+'%');priceDP.html(priceNoPromotion);}else{priceSummary.hide();}
44formBooking=jQuery('#jcRoom');
44formBooking.fadeTo(50,0.1).fadeTo(300,1.0);formSelectGuest=jQuery('#jhGuest');formSelectGuest.empty();for(i=1;i<=how_people;i++){formSelectGuest.append(new Option(i,i));}
45if(kids_age){jQuery('#kids_age').html(kids_age);jQuery('#kids_age_wrapper').show();}else{jQuery('#kids_age_wrapper').hide();}
46Comdev.fullcalendar.site.pricePromotionNumber='-'+pricePromotionNumber+'%';Comdev.fullcalendar.site.priceNoPromotion=priceNoPromotion;Comdev.fullcalendar.site.price=price;Comdev.fullcalendar.site.object_id=object_id;});},updatePrice:function(price){},toFirstStep:function(){jQuery('.jh-resourceSummmarySave').hide();jQuery('.jh-resourceSummaryPrice').html("0");Comdev.fullcalendar.boxes.hide();Comdev.fullcalendar.siteFullcalendarStartDate(Comdev.fullcalendar.data);}};Comdev.slideshow={init:function(options){this.container=Comdev.ID(options.container);this.delay=options.delay;this.elementsMain=this.container.getElements('li');this.countElements=this.elementsMain.length;this.widthImgBig=300;this.width=this.countElements*this.widthImgBig;this.container.hide();this.currentPositionBigBox=0;this.layerHome=new Element('div',{'class':'slideshowJomcomdev',style:'clear: both; ',});this.layerHomeBigBox=new Element('div',{style:'position: relative; width: '+this.widthImgBig+'px; height: 150px; overflow: hidden;',});this.layerBigBox=new Element('div',{style:'position: absolute; width: '+this.width+'px; lef: '+this.currentPositionBigBox+'px;',});this.layerHomeSmallBox=new Element('div',{style:'margin-top: 5px; position: relative; width: '+this.widthImgBig+'px; height: 100px; overflow: hidden;',});this.layerSmallBox=new Element('div',{style:'position: absolute; width: '+100*(this.countElements+5)+'px; lef: '+this.currentPositionBigBox+'px;',});this.layerHome.inject(this.container,'after');this.layerHome.grab(this.layerHomeBigBox);this.layerHomeBigBox.grab(this.layerBigBox);this.layerHome.grab(this.layerHomeSmallBox);this.layerHomeSmallBox.grab(this.layerSmallBox);Comdev.slideshow.createBigBox();Comdev.slideshow.createSmallBox();this.loop.periodical(this.delay);},loop:function(){Comdev.slideshow.layerBigBox.setStyle('left',Comdev.slideshow.currentPositionBigBox-Comdev.slideshow.widthImgBig);Comdev.slideshow.currentPositionBigBox=Comdev.slideshow.currentPositionBigBox-Comdev.slideshow.widthImgBig;if(Comdev.slideshow.currentPositionBigBox==(Comdev.slideshow.width-(Comdev.slideshow.width*2)+Comdev.slideshow.widthImgBig)){Comdev.slideshow.currentPositionBigBox=Comdev.slideshow.widthImgBig;}},createBigBox:function(){for(i=0;i<this.countElements;i++){img=this.elementsMain[i].getElement('span').getProperty("html");this.layerBigBox.grab(this.createImg(img));}},createSmallBox:function(){var b=0;for(i=0;i<this.countElements;i++){img=this.elementsMain[i].getElement('img');img.setStyles({'margin-right':5});img.addEvent('click',function(){Comdev.slideshow.layerBigBox.setStyle('left','-'+Comdev.slideshow.widthImgBig*i+'px');b++;});this.layerSmallBox.grab(img);}},createImg:function(link){var layerImg=new Element('img',{src:link,style:'float: left;'});return layerImg;},delay:function(){}};if(typeof(jQuery)!=='undefined'){jQuery(document).ready(function(){if(jQuery('body.admin').length!=0){var message=jQuery('body.admin #system-message-container').html();if(message.length>5&&jQuery('body.admin #system-message-container:visible').length){jQuery('body.admin #system-message-container').css('display','none');jQuery('body.admin #j-main-container').prepend(message);}}
47var str=window.location.search;if(str.indexOf('view=mails')!=-1){jQuery('.prev-content').click(function(){var content=jQuery(this).html();jQuery('.modal-prev .content').html(content);jQuery('.modal-prev').modal('show');});}
48if(jQuery('#isisJsData').is(':visible')){jQuery('#sidebar').css('top',jQuery('#isisJsData').height()+jQuery('body > nav.navbar').height()+'px');}});};if(window.v==undefined)window.v=0;var flag=0;if(typeof(jQuery)!=='undefined'){var $=jQuery;jQuery(document).ready(function(){if(jQuery('[data-toggle="lightbox"]').length>0&&jQuery.fn.modal.Constructor.VERSION==null){jQuery.fn.modal.Constructor.VERSION="4.1.0";jQuery(document).on('click','.ekko-lightbox.modal',function(e){if(jQuery(e.target).hasClass('ekko-lightbox')){jQuery(e.target).modal('hide');}});}
49jQuery('.tellAFriendBox').click(function(){setTimeout(function(){jQuery('html, body').animate({scrollTop:jQuery('#modalTafForm').offset().top-50},800);},300);});if(window.v==0){window.v=1;jQuery('.jc-service-slot').click(function(){if(jQuery('#ComdevCalendarBoxService').html().length>0){jQuery('#ComdevCalendarBoxService').toggle();}});}});}
50if(typeof jQuery!="undefined"){jQuery(function(){if(jQuery('body.admin #menu .dropdown .dropdown-toggle').length){jQuery(document).off('click.bs.dropdown.data-api','[data-toggle="dropdown"]');}
51jQuery('.select-dropdown').on('show.bs.dropdown',function(){var active=jQuery(this).siblings('select').val();console.log(jQuery(this));console.log(active);jQuery(this).find('.dropdown-item.select-item[data-value='+active+']').addClass('active');});jQuery('.dropdown-item.select-item').on('click',function(e){e.preventDefault();var value=jQuery(this).data('value');var select=jQuery(this).parent().parent().siblings('select');select.val(value);select.trigger('change');});jQuery(document).on('click','.control-btn .next',function(e){e.preventDefault();e.stopPropagation();var items=jQuery(this).parent().siblings('.jc-mod-maps-cloud-body');var len=items.length;var active=jQuery(this).parent().siblings('.jc-mod-maps-cloud-body.active').index();items.removeClass('active');if(active<len-1){items.eq(active+1).addClass('active');}else{items.eq(0).addClass('active');}});jQuery(document).on('click','.control-btn .prev',function(e){e.preventDefault();e.stopPropagation();var items=jQuery(this).parent().siblings('.jc-mod-maps-cloud-body');var len=items.length;var active=jQuery(this).parent().siblings('.jc-mod-maps-cloud-body.active').index();items.removeClass('active');if(active!=0){items.eq(active-1).addClass('active');}else{items.eq(len-1).addClass('active');}});});}

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.