garrotxarural.com Ads.txt file

<!doctype html>
<html lang="ca">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SBR21PQG7G"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-SBR21PQG7G');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Turisme Rural La Garrotxa</title>
<meta name="description" content="Turisme Rural La Garrotxa">
<link rel="canonical" href="https://garrotxarural.com/error-404">
<link rel="apple-touch-icon" href="https://garrotxarural.com/imatges/favicon-180.png" sizes="180x180">
<link rel="icon" type="image/png" href="https://garrotxarural.com/imatges/favicon-192.png" sizes="192x192">
<link rel="shortcut icon" href="https://garrotxarural.com/imatges/favicon.ico">
<link rel="alternate" hreflang="ca" href="https://garrotxarural.com/error-404">
<link rel="alternate" hreflang="es" href="https://garrotxarural.com/error-404">
<link rel="alternate" hreflang="en" href="https://garrotxarural.com/error-404">
<link rel="alternate" hreflang="fr" href="https://garrotxarural.com/error-404">
<link rel="alternate" hreflang="x-default" href="https://garrotxarural.com/error-404">
<meta property="og:locale" content="es_ES" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Turisme Rural La Garrotxa" />
<meta property="og:url" content="https://garrotxarural.com/error-404" />
<meta property="og:description" content="Turisme Rural La Garrotxa" />
<meta property="og:image" content="https://garrotxarural.com/imatges/logo-garrotxa.png" />

<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Turisme Rural La Garrotxa"/>
<meta name="twitter:image" content="https://garrotxarural.com/imatges/logo-garrotxa.png"/>

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox.min.css">
<link href="https://garrotxarural.com/css/estils_www.css" rel="stylesheet">
<script src="https://kit.fontawesome.com/ff15ee569a.js" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script type="text/javascript" src="daterangepicker/moment.min.js"></script>
<script type="text/javascript" src="daterangepicker/daterangepicker.js"></script>
<link rel="stylesheet" type="text/css" href="daterangepicker/daterangepicker.css" />
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyATUKlhCs0KHg2kH3pst5wlME_n3xzqTpY"></script>
<script src="fancybox/jquery.fancybox.min.js"></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"url": "https://garrotxarural.com",
"logo": "https://garrotxarural.com/imatges/logo-garrotxa.png"
}
</script>
</head>
<body>
<!-- espera -->
<div id="loader"></div>
<div id="cookies"></div>
<div id="cookies-form">
<h4>Aquest lloc web utilitza cookies</h4>
Utilitzem cookies pròpies per millorar l'experiencia de navegació de l'usuari i cookies de tercers per a l'anàlisi del tràfic del lloc web i l'intercanvi de continguts a xarxes socials.<br>
Pot obtenir més informació a la nostra pàgina de&nbsp;<a href="politica-de-privacitat" class="cookies-form-a">política de privacitat & cookies.</a><br><br>
Seleccioni les cookies que vol permetre:<br>
<input type="checkbox" name="cookies-necessaries" checked disabled class="cookies-check">&nbsp;&nbsp;les estrictament necessàries<br>
<input type="checkbox" name="cookies-analisi" id="cookies-analisi" class="cookies-check">&nbsp;&nbsp;cookies d'anàlisi<br>
<input type="checkbox" name="cookies-socials" id="cookies-socials" class="cookies-check">&nbsp;&nbsp;cookies socials<br>
<p id="cookies-boto-totes" class="cookies-boto">permetre-les totes</p>&nbsp;&nbsp;<strong>ó</strong>&nbsp;
<p id="cookies-boto" class="cookies-boto">les seleccionades</p>
</div>
<div id="app-form">
<h4>Hem detectat que navegues amb un dispositiu mòbil</h4>
Instal·la l'App i podràs gaudir del programa de fidelització de RuralApp.<br>
Quan fas una reserva amb RuralApp adquireixes “rurals”, que podràs canviar per descomptes a les properes reserves.<br>
<a href="https://play.google.com/store/apps/details?id=app.ruralapp" data-toggle="tooltip" title="Instal.la la App" target="_blank"><img class="app" src="https://garrotxarural.com/imatges/icono-disponible-google-play.png" alt="App per a Android"></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://itunes.apple.com/app/apple-store/id1501531433" data-toggle="tooltip" title="Instal.la la App" target="_blank"><img class="app" src="https://garrotxarural.com/imatges/icono-disponible-app-store.png" alt="App per a IOS"></a><br>
<p id="app-boto" class="cookies-boto">NO vull instal.lar RuralApp</p>
</div>
<div class="container-fluid">
<div class='row'><div id='div_menu' class='col-sm-12'><a href="https://garrotxarural.com/">
<img id="logo" src="imatges/logo-garrotxa.png" alt="logo turisme rural Garrotxa" title="Cases rurals a La Garrotxa"/>
</a>
<div id="icona-menu">
<i class='fas fa-bars'></i>
<div id="icona-menu-menu">
<a href="https://garrotxarural.com/cases-rurals-en-oferta" class="menu-opcio">Cases rurals en oferta</a>
<a href="https://garrotxarural.com/blog-turisme-rural" class="menu-opcio">Blog de Turisme Rural</a>
<!--<a href="" class="menu-opcio"></a>-->
</div>
</div>
<div id="icona-idioma">
<i class='fas fa-globe'></i>
<div id="icona-idioma-menu">
<a href="https://garrotxarural.com/error-404" class="menu-opcio">Català</a>
<a href="https://garrotxarural.com/error-404" class="menu-opcio">Castellano</a>
<a href="https://garrotxarural.com/error-404" class="menu-opcio">Francais</a>
<a href="https://garrotxarural.com/error-404" class="menu-opcio">English</a>
</div>
</div>
</div></div><div class='row'><div id='div_cercador_esq' class='col-sm-3'><div id="cercador-marc">
<p><img src="imatges/icona-mapa.jpg" alt="Veure les cases rurals al mapa" title="" class="mapa" onclick="mapa()"/></p>
<div id="cercador-esq-l1">
<input type="text" id="i_cercar" placeholder="on vols anar ?" name="i_cercar" class="em98" onkeyup="cercar_esq(this.value)" value=""/>
<input type="hidden" name="i_clau" id="i_clau" value=""/>
<br /><input type="text" id="i_dates" placeholder="entrada - sortida" name="i_dates" class="em98" value=""/>
<div id="livesearch-esq"></div>
</div>
<div id="cercador-l2">
<input type="number" name="i_adults" id="i_adults" placeholder="adults" value="" class="em48" max="30" min="0"/>
<input type="number" id="i_nens" placeholder="nens" name="i_nens" class="em48" max="30" min="0" value=""/><br />
<select id="i_lloguer" name="i_lloguer" class="em48" />
<option value="indiferent" >íntegre/habitacions</option>
<option value="integre" >íntegre</option>
<option value="habitacions" >habitacions</option>
</select>
<span class="boto-buscar-esq" onclick="buscar_allotjaments_esq()"><i class='fas fa-search'></i></span>
</div>
<div class="mesfiltres">
més filtres <i id="anglefiltres" class='fas fa-angle-down' onclick="obrir_filtres()"></i>
</div>
<div id="divfiltres">
<table class="filtres">
<tr>
<td class="i_filtre"><input id="f_mascotes" name="f_mascotes" type="checkbox" value="1" ></td>
<td id="l_f_mascotes" class="i_filtre" onClick="filtre_text('f_mascotes')">Accepta mascotes</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_wifi" name="f_wifi" type="checkbox" value="1" ></td>
<td id="l_f_wifi" class="i_filtre" onClick="filtre_text('f_wifi')">Wifi</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_adaptada" name="f_adaptada" type="checkbox" value="1" ></td>
<td id="l_f_adaptada" class="i_filtre" onClick="filtre_text('f_adaptada')">Habitació adaptada</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_sola" name="f_sola" type="checkbox" value="1" ></td>
<td id="l_f_sola" class="i_filtre" onClick="filtre_text('f_sola')">Casa aillada sense veïns</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_carrega" name="f_carrega" type="checkbox" value="1" ></td>
<td id="l_f_carrega" class="i_filtre" onClick="filtre_text('f_carrega')">Punt de càrrega vehícles elèctrics</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_serveis" name="f_serveis" type="checkbox" value="1" ></td>
<td id="l_f_serveis" class="i_filtre" onClick="filtre_text('f_serveis')">Esmorzars/dinars/sopars</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_bbq" name="f_bbq" type="checkbox" value="1" ></td>
<td id="l_f_bbq" class="i_filtre" onClick="filtre_text('f_bbq')">Barbacoa</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_piscina" name="f_piscina" type="checkbox" value="1" ></td>
<td id="l_f_piscina" class="i_filtre" onClick="filtre_text('f_piscina')">Piscina</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_piscina_clima" name="f_piscina_clima" type="checkbox" value="1" ></td>
<td id="l_f_piscina_clima" class="i_filtre" onClick="filtre_text('f_piscina_clima')">Piscina climatitzada</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_parc_infantil" name="f_parc_infantil" type="checkbox" value="1" ></td>
<td id="l_f_parc_infantil" class="i_filtre" onClick="filtre_text('f_parc_infantil')">Parc infantil</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_animals_granja" name="f_animals_granja" type="checkbox" value="1" ></td>
<td id="l_f_animals_granja" class="i_filtre" onClick="filtre_text('f_animals_granja')">Animals de granja</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_spa" name="f_spa" type="checkbox" value="1" ></td>
<td id="l_f_spa" class="i_filtre" onClick="filtre_text('f_spa')">Spa</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_sauna" name="f_sauna" type="checkbox" value="1" ></td>
<td id="l_f_sauna" class="i_filtre" onClick="filtre_text('f_sauna')">Sauna</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_sala_polivalent" name="f_sala_polivalent" type="checkbox" value="1" ></td>
<td id="l_f_sala_polivalent" class="i_filtre" onClick="filtre_text('f_sala_polivalent')">Sala polivalent</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_bany_habitacio" name="f_bany_habitacio" type="checkbox" value="1" ></td>
<td id="l_f_bany_habitacio" class="i_filtre" onClick="filtre_text('f_bany_habitacio')">Bany a l'habitació</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_aire_acondicionat" name="f_aire_acondicionat" type="checkbox" value="1" ></td>
<td id="l_f_aire_acondicionat" class="i_filtre" onClick="filtre_text('f_aire_acondicionat')">Aire acondicionat</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_calefaccio" name="f_calefaccio" type="checkbox" value="1" ></td>
<td id="l_f_calefaccio" class="i_filtre" onClick="filtre_text('f_calefaccio')">Calefacció</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_llar_de_foc" name="f_llar_de_foc" type="checkbox" value="1" ></td>
<td id="l_f_llar_de_foc" class="i_filtre" onClick="filtre_text('f_llar_de_foc')">Llar de foc</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_tv" name="f_tv" type="checkbox" value="1" ></td>
<td id="l_f_tv" class="i_filtre" onClick="filtre_text('f_tv')">TV</td>
</tr>
<tr>
<td class="i_filtre"><input id="f_tv_habitacio" name="f_tv_habitacio" type="checkbox" value="1" ></td>
<td id="l_f_tv_habitacio" class="i_filtre" onClick="filtre_text('f_tv_habitacio')">TV a l'habitació</td>
</tr>
</table>
<span class="boto-buscar-filtres" onclick="buscar_allotjaments_esq()"><i class='fas fa-search'></i></span>
</div>
</div>
<!-- The Modal -->
<div id="mapaModal" class="modal-mapa">
<!-- Modal content -->
<p class="modal-close" onclick="mapamodal.style.display = 'none'">tancar el mapa</p>
<div id="mapaGoogle" class="modal-content">
</div>

</div>

<script>
var filtresoberts=1;
obrir_filtres();
avui = new Date();
var dies_setmana = ["dg","dl","dm","dx","dj","dv","ds"];
var nom_mesos = ["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"];
$('input[name="i_dates"]').daterangepicker({
"locale": {
"format": "DD/MM/YYYY",
"separator": " - ",
"applyLabel": "Apply",
"cancelLabel": "Cancel",
"fromLabel": "From",
"toLabel": "To",
"customRangeLabel": "Custom",
"weekLabel": "W",
"daysOfWeek": dies_setmana,
"monthNames": nom_mesos,
"firstDay": 1
},
"autoApply": true,
"minDate": avui
});

check_in=document.getElementById("i_dates").value.substring(0,10);
check_out=document.getElementById("i_dates").value.substring(13);
if(check_in==check_out) document.getElementById("i_dates").value="";

$('input[name="i_dates"]').on('hide.daterangepicker', function(ev, picker) {
check_in=document.getElementById("i_dates").value.substring(0,10);
check_out=document.getElementById("i_dates").value.substring(13);
if(check_in==check_out) document.getElementById("i_dates").value="";
});

//document.getElementById("i_dates").value="";


function cercar_esq(str) {
document.getElementById("i_clau").value="0";
if(str.length<3) {
document.getElementById("livesearch-esq").innerHTML="";
return;
}
ol=document.getElementById("i_cercar").offsetLeft;
document.getElementById("livesearch-esq").style.left=ol+"px";
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if(this.readyState == 4 && this.status == 200) {
document.getElementById("livesearch-esq").innerHTML = this.responseText;
}
};
xhttp.open("GET", "ajax/cercar.php?str="+str+"&idioma=ca", true);
xhttp.send();
}

function carregar(str, clau){
document.getElementById("i_cercar").value=decodeURIComponent(str);
document.getElementById("i_clau").value=clau;
document.getElementById("livesearch-esq").innerHTML="";
document.getElementById("i_cercar").focus();
}

function obrir_filtres(){
if(filtresoberts==0){
$("#divfiltres").fadeIn("slow");
filtresoberts=1;
document.getElementById("anglefiltres").className = "fas fa-angle-up";
} else {
$("#divfiltres").fadeOut("slow");
filtresoberts=0;
document.getElementById("anglefiltres").className = "fas fa-angle-down";
};
}

</script>
</div><div id='div_error' class='col-sm-9'><h1 class="h1-error">Error: Aquesta pàgina no està disponible.</h1>
<h2 class="h2-error">Associació de Turisme Rural La Garrotxa</h2>
<p>&nbsp;</p>
<p class="text-bloc shadow">L'Associació de Turisme Rural La Garrotxa ofereix més de 80 cases rurals a Girona, a la comarca de La Garrotxa.<br />
Cases rurals del lloguer íntegre o cases rurals de lloguer per habitacions, entre la que trobareu de ben segur la casa rural que esteu buscant.</p>
<p>&nbsp;</p>
</div></div><div class='row'><div id='div_peu' class='col-sm-12'><div class="row">
<div class="col-md-4 footer-col">
<h3>Menú</h3>
<a href="https://garrotxarural.com/cases-rurals-en-oferta">Cases rurals en oferta</a><br />
<!--<a href=""></a><br />-->
<!--<a href=""></a><br />-->
<a href="https://garrotxarural.com/avis-legal">Avís legal</a><br />
<a href="https://garrotxarural.com/politica-de-privacitat">Política de privacitat & cookies</a><br />
<h3>Col.laboradors</h3>
<a href="https://ruralapp.cat" target="_blank"><img class="logo-peu" src="https://garrotxarural.com/imatges/logo-ruralapp.png" alt="RuralApp" title="L'App del Turisme Rural a Catalunya"/></a><br />
<a href="https://ticrural.com" target="_blank"><img class="logo-peu" src="https://garrotxarural.com/imatges/logo-ticrural.png" alt="TIC Rural" title="TIC Rural"/></a><br />
</div>
<div class="col-md-4 footer-col">
<h3>Contacta amb nosaltres</h3>
<a href="mailto:holaATgarrotxaruralDOTcom" onclick = "this.href=this.href.replace(/AT/,'&#64;').replace(/DOT/,'&#46;')">
<i class='far fa-envelope'></i><span class="reverse-email">moc.laruraxtorrag@aloh</span>
</a><br />
<a href="tel:+34625990102"><i class='fas fa-mobile-alt'></i>+34 625 990 102</a><br>
<h3>Comparteix La Garrotxa</h3>
<div class="addthis_inline_share_toolbox"></div>
</div>
<div class="col-md-4 footer-col">
<h3>&nbsp;</h3>
<!--<h3></h3>
<a href="https://play.google.com/store/apps/details?id=app.ruralapp" data-toggle="tooltip" title="Instal.la la App" target="_blank"><img class="app" src="imatges/icono-disponible-google-play.png" alt="App per a Android"></a><br>
<a href="https://itunes.apple.com/app/apple-store/id1501531433" data-toggle="tooltip" title="Instal.la la App" target="_blank"><img class="app" src="imatges/icono-disponible-app-store.png" alt="App per a IOS"></a>
<p>&nbsp;</p>-->
<i class='far fa-user'></i><a href="https://ruralapp.cat/extranet/login.php?_p=login" target="_blank">area de propietaris</a>
</div>
<div class="col-md-12" id="segueix-nos">
Segueix-nos&nbsp;
<a href="https://www.facebook.com/GarrotxaRural" target="_blank"><img id="logo-f" src="https://garrotxarural.com/imatges/logo-facebook.png" alt="facebook" title="facebook" /></a>&nbsp;
<a href="https://twitter.com/garrotxarural" target="_blank"><img id="logo-t" src="https://garrotxarural.com/imatges/logo-twitter.png" alt="twitter" title="twitter"/></a>&nbsp;
<a href="https://www.instagram.com/garrotxarural/" target="_blank"><img src="https://garrotxarural.com/imatges/logo-instagram.png" alt="instagram" title="instagram"/></a>&nbsp;
</div>
<div class="col-md-12">
<div class="copyright">&copy;&nbsp;Garrotxa Rural, 2025</div>
</div>
</div>

</div></div></div>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<!--<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5f8da54011f692f2"></script>-->
</body>
<script type="text/javascript">

var token="06dedbebb07bde15401ad24562ba820de18d2b41";
var idioma="ca";
var url_map="error";
var url_url="error-404";
var sessio_hoste_oberta = "";
var atencio_telefon_obert = 0;
var atencio_email_obert = 0;
var cookies_open = 0;

cookies();
//mobile();

$(document).ready(function() {
$("#icona-idioma").hover(function(){$("#icona-idioma-menu").fadeIn(500)},function(){$("#icona-idioma-menu").fadeOut(500);});
//$("#icona-extranet").hover(function(){$("#icona-extranet-menu").fadeIn(500)},function(){$("#icona-extranet-menu").fadeOut(500);});
$("#icona-menu").hover(function(){$("#icona-menu-menu").fadeIn(500)},function(){$("#icona-menu-menu").fadeOut(500);});
/*sessio_hoste_oberta=localStorage.getItem("ruralapp_sessio_hoste_oberta");
if(sessio_hoste_oberta=="SI"){
document.getElementById("a_hostes").style.display="none";
document.getElementById("a_propietaris").style.display="none";
document.getElementById("a_favorits").style.display="block";
document.getElementById("a_reserves").style.display="block";
document.getElementById("a_perfil").style.display="block";
document.getElementById("a_tancar").style.display="block";
document.getElementById("icona_perfil").style.color="#a7cd7a";
email_hoste=localStorage.getItem("ruralapp_email_hoste");
$.ajax({
url: "ajax/obrir_sessio_hoste.php",
data: {
i_token: token,
i_email: email_hoste
},
success: function(response){
}
});
};*/
});

function cookies(){
document.getElementById("cookies-boto").addEventListener("click", function() {
localStorage.setItem("garrotxarural_cookies_time",time);
var analisi="no";
if(document.getElementById("cookies-analisi").checked) analisi="si";
localStorage.setItem("garrotxarural_cookies_analisi",analisi);
var socials="no";
if(document.getElementById("cookies-socials").checked) socials="si";
localStorage.setItem("garrotxarural_cookies_socials",socials);
$("#cookies-form").fadeOut(500);
});
document.getElementById("cookies-boto-totes").addEventListener("click", function() {
localStorage.setItem("garrotxarural_cookies_time",time);
var analisi="si";
document.getElementById("cookies-analisi").checked=true;
localStorage.setItem("garrotxarural_cookies_analisi",analisi);
var socials="si";
document.getElementById("cookies-socials").checked=true;
localStorage.setItem("garrotxarural_cookies_socials",socials);
$("#cookies-form").fadeOut(500);
});
var data=Number(localStorage.getItem("garrotxarural_cookies_time"));
if(data==null) data=0;
var avui=new Date();
var time=avui.getTime();
var periode=time-data;
if(periode>2592000000){
//if(periode>0){
$("#cookies-form").fadeIn(1000);
cookies_open=1;
};
}
function canviar_cookies(){
localStorage.setItem("garrotxarural_cookies_time",0);
cookies();
}

function mobile(){
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && cookies_open==0){
document.getElementById("app-boto").addEventListener("click", function() {
localStorage.setItem("ticrural_app_time",time);
$("#app-form").fadeOut(500);
});
var data=Number(localStorage.getItem("ticrural_app_time"));
if(data==null) data=0;
var avui=new Date();
var time=avui.getTime();
var periode=time-data;
if(periode>2592000000){
$("#app-form").fadeIn(1000);
};
};
}

/*
function opcio_hostes(){
document.getElementById("i_email_hoste").value="";
document.getElementById("i_codi_hoste").value="";
document.getElementById("i_email_hoste_error").style.display="none";
document.getElementById("instalar_app").style.display="none";
document.getElementById("input_codi").style.display="none";
document.getElementById("i_codi_reenviat").style.display="none";
document.getElementById("b_obrir_sessio_hoste").style.display="block";
$('#Modal-hostes').modal();
document.getElementById('i_email_hoste').focus();
}
function tancar_sessio_hoste(){
localStorage.removeItem("ruralapp_sessio_hoste_oberta");
localStorage.removeItem("ruralapp_email_hoste");
document.getElementById("a_hostes").style.display="block";
document.getElementById("a_propietaris").style.display="block";
document.getElementById("a_favorits").style.display="none";
document.getElementById("a_reserves").style.display="none";
document.getElementById("a_perfil").style.display="none";
document.getElementById("a_tancar").style.display="none";
document.getElementById("icona_perfil").style.color="#27958b";
sessio_hoste_oberta="NO";
$.ajax({
url: "ajax/tancar_sessio_hoste.php",
data: {
i_token: token
},
success: function(response){
}
});

}
function obrir_sessio_hoste(){
document.getElementById("i_email_hoste_error").style.display="none";
document.getElementById("instalar_app").style.display="none";
document.getElementById("input_codi").style.display="none";
document.getElementById("b_obrir_sessio_hoste").style.display="block";
hoste=document.getElementById("i_email_hoste").value;
if(hoste.length==0){
$("#i_email_hoste_error").fadeIn(500);
document.getElementById("i_email_hoste").focus();
return false;
};
if (/^[0-9A-Za-z][A-Za-z0-9_\.]*@[A-Za-z0-9_]+\.[A-Za-z0-9_\.]+[A-za-z]$/.test(hoste)==false){
$("#i_email_hoste_error").fadeIn(500);
document.getElementById("i_email_hoste").focus();
return false;
};
//document.getElementById("loader").style.display="block";
$.ajax({
url: "ajax/check_email_hoste.php",
data: {
i_email: hoste
},
success: function(response){
//document.getElementById("loader").style.display="none";
if(response=="KO"){
$("#instalar_app").fadeIn(500);
} else {
document.getElementById("n_telefon").innerHTML=response;
document.getElementById("b_obrir_sessio_hoste").style.display="none";
$("#input_codi").fadeIn(500);
document.getElementById("i_codi_hoste").focus();
}
}
});
}
function reenviar_codi_hoste(){
document.getElementById("i_email_hoste_error").style.display="none";
document.getElementById("instalar_app").style.display="none";
document.getElementById("input_codi").style.display="none";
document.getElementById("b_obrir_sessio_hoste").style.display="block";
hoste=document.getElementById("i_email_hoste").value;
if(hoste.length==0){
$("#i_email_hoste_error").fadeIn(500);
document.getElementById("i_email_hoste").focus();
return false;
};
if (/^[0-9A-Za-z][A-Za-z0-9_\.]*@[A-Za-z0-9_]+\.[A-Za-z0-9_\.]+[A-za-z]$/.test(hoste)==false){
$("#i_email_hoste_error").fadeIn(500);
document.getElementById("i_email_hoste").focus();
return false;
};
$.ajax({
url: "ajax/check_email_hoste.php",
data: {
i_email: hoste
},
success: function(response){
if(response=="KO"){
$("#instalar_app").fadeIn(500);
} else {
document.getElementById("n_telefon").innerHTML=response;
document.getElementById("b_obrir_sessio_hoste").style.display="none";
$("#input_codi").fadeIn(500);
document.getElementById("i_codi_hoste").focus();
$("#i_codi_reenviat").fadeIn(500);
}
}
});
}
function comprovar_codi_hoste(){
document.getElementById("i_codi_reenviat").style.display="none";
document.getElementById("i_codi_hoste_error").style.display="none";
hoste=document.getElementById("i_email_hoste").value;
codi=document.getElementById("i_codi_hoste").value;
$.ajax({
url: "ajax/check_codi_hoste.php",
data: {
i_token: token,
i_email: hoste,
i_codi: codi
},
success: function(response){
if(response=="KO"){
$("#i_codi_hoste_error").fadeIn(500);
document.getElementById("i_codi_hoste").focus();
} else {
$('#Modal-hostes').modal("hide");
document.getElementById("icona_perfil").style.color="#a7cd7a";
localStorage.setItem("ruralapp_sessio_hoste_oberta","SI");
localStorage.setItem("ruralapp_email_hoste",hoste);
document.getElementById("a_hostes").style.display="none";
document.getElementById("a_propietaris").style.display="none";
document.getElementById("a_favorits").style.display="block";
document.getElementById("a_reserves").style.display="block";
document.getElementById("a_perfil").style.display="block";
document.getElementById("a_tancar").style.display="block";
}
}
});
}
*/
function buscar_allotjaments(){
document.getElementById("loader").style.display="block"
clau=document.getElementById("i_clau").value;
dates=document.getElementById("i_dates").value;
adults=document.getElementById("i_adults").value;
nens=document.getElementById("i_nens").value;
lloguer=document.getElementById("i_lloguer").value;
//email=localStorage.getItem("ruralapp_email_hoste");
$.ajax({
url: "ajax/buscar_allotjaments.php",
data: {
i_token: token,
i_idioma: idioma,
i_clau: clau,
i_dates: dates,
i_adults: adults,
i_nens: nens,
i_lloguer: lloguer
//i_email: email
},
success: function(response){
document.getElementById("loader").style.display="none";
window.open(response,"_self");
}
});
}
function buscar_allotjaments_esq(){
document.getElementById("loader").style.display="block"
clau=document.getElementById("i_clau").value;
dates=document.getElementById("i_dates").value;
adults=document.getElementById("i_adults").value;
nens=document.getElementById("i_nens").value;
lloguer=document.getElementById("i_lloguer").value;
//email=localStorage.getItem("ruralapp_email_hoste");
f_mascotes=0;f_wifi=0;f_adaptada=0;f_sola=0;f_carrega=0;f_serveis=0;f_bbq=0;f_piscina=0;f_piscina_clima=0;
f_parc_infantil=0;f_animals_granja=0;f_spa=0;f_sauna=0;f_sala_polivalent=0;f_bany_habitacio=0;f_aire_acondicionat=0;f_calefaccio=0;f_llar_de_foc=0;f_tv=0;f_tv_habitacio=0;
if(document.getElementById("f_mascotes").checked) f_mascotes=1;
if(document.getElementById("f_wifi").checked) f_wifi=1;
if(document.getElementById("f_adaptada").checked) f_adaptada=1;
if(document.getElementById("f_sola").checked) f_sola=1;
if(document.getElementById("f_carrega").checked) f_carrega=1;
if(document.getElementById("f_serveis").checked) f_serveis=1;
if(document.getElementById("f_bbq").checked) f_bbq=1;
if(document.getElementById("f_piscina").checked) f_piscina=1;
if(document.getElementById("f_piscina_clima").checked) f_piscina_clima=1;
if(document.getElementById("f_parc_infantil").checked) f_parc_infantil=1;
if(document.getElementById("f_animals_granja").checked) f_animals_granja=1;
if(document.getElementById("f_spa").checked) f_spa=1;
if(document.getElementById("f_sauna").checked) f_sauna=1;
if(document.getElementById("f_sala_polivalent").checked) f_sala_polivalent=1;
if(document.getElementById("f_bany_habitacio").checked) f_bany_habitacio=1;
if(document.getElementById("f_aire_acondicionat").checked) f_aire_acondicionat=1;
if(document.getElementById("f_calefaccio").checked) f_calefaccio=1;
if(document.getElementById("f_llar_de_foc").checked) f_llar_de_foc=1;
if(document.getElementById("f_tv").checked) f_tv=1;
if(document.getElementById("f_tv_habitacio").checked) f_tv_habitacio=1;

$.ajax({
url: "ajax/buscar_allotjaments.php",
data: {
i_token: token,
i_idioma: idioma,
i_clau: clau,
i_dates: dates,
i_adults: adults,
i_nens: nens,
i_lloguer: lloguer,
//i_email: email,
mascotes: f_mascotes,
wifi: f_wifi,
adaptada: f_adaptada,
sola: f_sola,
carrega: f_carrega,
serveis: f_serveis,
bbq: f_bbq,
piscina: f_piscina,
piscina_clima: f_piscina_clima,
parc_infantil: f_parc_infantil,
animals_granja: f_animals_granja,
spa: f_spa,
sauna: f_sauna,
sala_polivalent: f_sala_polivalent,
bany_habitacio: f_bany_habitacio,
aire_acondicionat: f_aire_acondicionat,
calefaccio: f_calefaccio,
llar_de_foc: f_llar_de_foc,
tv: f_tv,
tv_habitacio: f_tv_habitacio
},
success: function(response){
document.getElementById("loader").style.display="none";
window.open(response,"_self");
}
});
}

/*
function favorit(id,email,d){
if(sessio_hoste_oberta=="SI"){
i="cor_"+id;
document.getElementById("loader").style.display="block";
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("loader").style.display="none";
document.getElementById(d).src=this.responseText;
};
};
xhttp.open("POST", "ajax/favorit.php", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
dades="email="+email+"&allotjament="+id;
xhttp.send(dades);
} else {
opcio_hostes();
};
}
*/

function allotjament_show(a){
window.open(a,"_self");
}

function swipe(accio,id){
f="foto_"+id;
a_id="allotjament_id_"+id;
allotjament_id=Number(document.getElementById(a_id).innerHTML);
o="ordre_"+id;
ordre=Number(document.getElementById(o).innerHTML);
if(accio=="prev" && ordre<=1) return(false);
nf="fotos_"+id;
fotos=Number(document.getElementById(nf).innerHTML);
dades="id="+allotjament_id+"&ordre="+ordre+"&accio="+accio;
//alert(dades);
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
ordre=this.responseText.substr(0,this.responseText.indexOf("-"));
img=this.responseText.substr(this.responseText.indexOf("-")+1);
document.getElementById(o).innerHTML=ordre;
c="contador_"+id;
document.getElementById(c).innerHTML=ordre+" de "+fotos;
if(img!="last" && img!="first") document.getElementById(f).style.backgroundImage='url("'+img+'")';
};
};
xhttp.open("POST", "ajax/foto_swipe.php", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send(dades);
}

function canvi_pagina(tipus,canvi,np,entrada,sortida){
p=np+canvi;
adults=Number(document.getElementById("i_adults").value);
nens=Number(document.getElementById("i_nens").value);
email=localStorage.getItem("ruralapp_email_hoste");
d="idioma="+idioma+"&token="+token+"&tipus="+tipus+"&pagina="+p+"&email="+email+"&entrada="+entrada+"&sortida="+sortida+"&adults="+adults+"&nens="+nens+"&url="+url_url;
document.getElementById("loader").style.display="block";
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("div_llista").innerHTML = this.responseText;
document.getElementById("loader").style.display="none";
};
};
xhttp.open("POST", "ajax/canvi_pagina.php", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send(d);
window.scrollTo(0, 0);
}

// Get the modal
var mapamodal = document.getElementById("mapaModal");
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == mapamodal) {
mapamodal.style.display = "none";
}
}

var map;
var Markers = {};
var infowindow;
var contingut = new Array();

function mapa(){
mapamodal.style.display = "block";
l1=41.38705410197161;
l2=2.1700713072805202;
var styles = [
{
featureType: 'poi.business',
stylers: [
{ visibility: 'off' }
]
}
];

if(url_map=="casa"){
l1=Number(document.getElementById("latcasa").innerHTML);
l2=Number(document.getElementById("lngcasa").innerHTML);
nomcasa=document.getElementById("nomcasa").innerHTML;
mapacasa(l1,l2,nomcasa);
return(false);
};

map = new google.maps.Map(document.getElementById('mapaGoogle'),{
zoom: 16,
disableDefaultUI: false,
zoomControl: true,
mapTypeControl: true,
scaleControl: true,
streetViewControl: true,
rotateControl: true,
center: {lat: l1, lng: l2}
});
map.setOptions({styles: styles});

//map = new google.maps.Map(document.getElementById('mapaGoogle'), mapOptions);

var latlngbounds = new google.maps.LatLngBounds();
quants=Number(document.getElementById("mapa_markers").innerHTML);

infowindow = new google.maps.InfoWindow();

for(i=1; i<=quants; i++) {
j=i-1;
dlat="marker_"+i+"_lat";
vlat=Number(document.getElementById(dlat).innerHTML)/100000;
dlng="marker_"+i+"_lng";
vlng=Number(document.getElementById(dlng).innerHTML)/100000;
latlng=new google.maps.LatLng(vlat,vlng),
latlngbounds.extend(latlng);
dtit="marker_"+i+"_tit";
vtit=document.getElementById(dtit).innerHTML;
iw="l_"+document.getElementById(dlat).innerHTML+"_"+document.getElementById(dlng).innerHTML
contingut[j]=document.getElementById(iw).innerHTML;
var position = new google.maps.LatLng(vlat,vlng);
var marker = new google.maps.Marker({
position: position,
map: map,
title: vtit,
icon: 'https://garrotxarural.com/imatges/icon-maps.png'
});

google.maps.event.addListener(marker, 'click', (function(marker, j) {
return function() {
infowindow.setContent(contingut[j]);
infowindow.setOptions({maxWidth: 200});
infowindow.open(map, marker);
}
}) (marker, j));

Markers[j] = marker;
}

map.fitBounds(latlngbounds);
}

function swipecasa(accio){
f="foto_c";
a_id="allotjament_id_c";
allotjament_id=Number(document.getElementById(a_id).innerHTML);
o="ordre_c";
ordre=Number(document.getElementById(o).innerHTML);
if(accio=="prev" && ordre<=1) return(false);
nf="fotos_c";
fotos=Number(document.getElementById(nf).innerHTML);
dades="id="+allotjament_id+"&ordre="+ordre+"&accio="+accio;
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
ordre=this.responseText.substr(0,this.responseText.indexOf("-"));
img=this.responseText.substr(this.responseText.indexOf("-")+1);
document.getElementById(o).innerHTML=ordre;
c="contador_c";
document.getElementById(c).innerHTML=ordre+" de "+fotos;
if(img!="last" && img!="first") document.getElementById(f).style.backgroundImage='url("'+img+'")';
};
};
xhttp.open("POST", "ajax/foto_swipe.php", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send(dades);
}

function mapacasa(la,ln,tit){
mapamodal.style.display = "block";
var styles = [
{
featureType: 'poi.business',
stylers: [
{ visibility: 'off' }
]
}
];
map = new google.maps.Map(document.getElementById('mapaGoogle'),{
zoom: 16,
disableDefaultUI: false,
zoomControl: true,
mapTypeControl: true,
scaleControl: true,
streetViewControl: true,
rotateControl: true,
center: {lat: la, lng: ln}
});
map.setOptions({styles: styles});
var position = new google.maps.LatLng(la,ln);
var marker = new google.maps.Marker({
position: position,
map: map,
title: tit,
icon: 'https://garrotxarural.com/imatges/icon-maps.png'
});

//map = new google.maps.Map(document.getElementById('mapaGoogle'), mapOptions);

var latlngbounds = new google.maps.LatLngBounds();
quants=Number(document.getElementById("mapa_markers").innerHTML);

infowindow = new google.maps.InfoWindow();

for(i=1; i<=quants; i++) {
j=i-1;
dlat="marker_"+i+"_lat";
vlat=Number(document.getElementById(dlat).innerHTML)/100000;
dlng="marker_"+i+"_lng";
vlng=Number(document.getElementById(dlng).innerHTML)/100000;
latlng=new google.maps.LatLng(vlat,vlng),
latlngbounds.extend(latlng);
dtit="marker_"+i+"_tit";
vtit=document.getElementById(dtit).innerHTML;
iw="l_"+document.getElementById(dlat).innerHTML+"_"+document.getElementById(dlng).innerHTML
contingut[j]=document.getElementById(iw).innerHTML;
var position = new google.maps.LatLng(vlat,vlng);
var marker = new google.maps.Marker({
position: position,
map: map,
title: vtit,
icon: 'https://garrotxarural.com/imatges/icon-maps.png'
});

google.maps.event.addListener(marker, 'click', (function(marker, j) {
return function() {
infowindow.setContent(contingut[j]);
infowindow.setOptions({maxWidth: 200});
infowindow.open(map, marker);
}
}) (marker, j));

Markers[j] = marker;
}

map.fitBounds(latlngbounds);

}

function openfancybox(nf){
var fotos = new Array();
var ordre = document.getElementById("contador_c").innerHTML;
var blanc = ordre.indexOf(" ");
var nordre = Number(ordre.substr(0,blanc))-1;
for(f=1;f<=nf;f++){
id="fotocasa_"+f;
img=document.getElementById(id).innerHTML;
foto={src : img};
fotos.push(foto);
};
$.fancybox.open(
fotos , {
loop : true,
protect: true
});
$.fancybox.getInstance('jumpTo', nordre);
}

function atencio_telf(){
if(atencio_telefon_obert==0){
$("#atencio_client_telefon").fadeIn("slow");
atencio_telefon_obert=1;
} else {
$("#atencio_client_telefon").fadeOut("slow");
atencio_telefon_obert=0;
};
}
function atencio_email(){
document.getElementById("atencio_enviat").style.display="none";
document.getElementById("atencio_error").style.display="none";
if(atencio_email_obert==0){
$("#atencio_client_email").fadeIn("slow");
atencio_email_obert=1;
} else {
$("#atencio_client_email").fadeOut("slow");
atencio_email_obert=0;
};
}

$('#f_atencio').submit(function(event) {
event.preventDefault();
document.getElementById("f_nom_error").style.display="none";
document.getElementById("f_telefon_error").style.display="none";
document.getElementById("f_email_error").style.display="none";
document.getElementById("f_missatge_error").style.display="none";
fnom=document.getElementById("f_nom").value;
if(fnom.length==0){
$("#f_nom_error").fadeIn("fast");
document.getElementById("f_nom").focus();
return false;
};
ftelefon=document.getElementById("f_telefon").value;
if(ftelefon.length==0){
$("#f_telefon_error").fadeIn("fast");
document.getElementById("f_telefon").focus();
return false;
};
femail=document.getElementById("f_email").value;
if(femail.length==0){
$("#f_email_error").fadeIn("fast");
document.getElementById("f_email").focus();
return false;
};
if (/^[0-9A-Za-z][A-Za-z0-9_\.]*@[A-Za-z0-9_]+\.[A-Za-z0-9_\.]+[A-za-z]$/.test(femail)==false){
$("#f_email_error").fadeIn("fast");
document.getElementById("f_email").focus();
return false;
};
fmissatge=document.getElementById("f_missatge").value;
if(fmissatge.length==0){
$("#f_missatge_error").fadeIn("fast");
document.getElementById("f_missatge").focus();
return false;
};
if(document.getElementById("f_accepta").checked==false){
$("#f_accepta_error").fadeIn("fast");
document.getElementById("f_accepta").focus();
return false;
};
fdates=document.getElementById("f_dates").value;
fadults=document.getElementById("f_adults").value;
fnens=document.getElementById("f_nens").value;
fnadons=document.getElementById("f_nadons").value;
fmascotes=document.getElementById("f2_mascotes").value;
fallotjament=document.getElementById("f_allotjament").value;
fnews="SI";if(document.getElementById("f_news").checked) fnews="NO";

document.getElementById("loader").style.display="block"

grecaptcha.ready(function() {
grecaptcha.execute('6LcCJgIgAAAAABDVrGzVb3WCKFxDnxlRdsMafVsg', {action: 'submit'}).then(function(token) {
// Add your logic to submit to your backend server here.
document.getElementById("f_token").value=token;
document.getElementById("f_action").value="submit";
$.ajax({
type: "POST",
url: "ajax/enviar_email.php",
data: {
f_token: token,
f_action: 'submit',
f_allotjament: fallotjament,
f_nom: fnom,
f_telefon: ftelefon,
f_email: femail,
f_dates: fdates,
f_adults: fadults,
f_nens: fnens,
f_nadons: fnadons,
f_mascotes: fmascotes,
f_missatge: fmissatge,
f_news: fnews
},
success: function(response){
document.getElementById("loader").style.display="none"
$("#atencio_client_email").fadeOut("slow");
if(response=="OK") $("#atencio_enviat").fadeIn("slow");
if(response=="KO") $("#atencio_error").fadeIn("slow");
atencio_email_obert=0;
}
});
});
});
})

/*

$('#f_propietaris').submit(function(event) {
event.preventDefault();
document.getElementById("f_nom_error").style.display="none";
document.getElementById("f_telefon_error").style.display="none";
document.getElementById("f_email_error").style.display="none";
document.getElementById("f_missatge_error").style.display="none";
fnom=document.getElementById("f_nom").value;
if(fnom.length==0){
$("#f_nom_error").fadeIn("fast");
document.getElementById("f_nom").focus();
return false;
};
ftelefon=document.getElementById("f_telefon").value;
if(ftelefon.length==0){
$("#f_telefon_error").fadeIn("fast");
document.getElementById("f_telefon").focus();
return false;
};
femail=document.getElementById("f_email").value;
if(femail.length==0){
$("#f_email_error").fadeIn("fast");
document.getElementById("f_email").focus();
return false;
};
if (/^[0-9A-Za-z][A-Za-z0-9_\.]*@[A-Za-z0-9_]+\.[A-Za-z0-9_\.]+[A-za-z]$/.test(femail)==false){
$("#f_email_error").fadeIn("fast");
document.getElementById("f_email").focus();
return false;
};
fmissatge=document.getElementById("f_missatge").value;
if(fmissatge.length==0){
$("#f_missatge_error").fadeIn("fast");
document.getElementById("f_missatge").focus();
return false;
};

document.getElementById("loader").style.display="block"

grecaptcha.ready(function() {
grecaptcha.execute('6LfdtCYcAAAAAJdCoAK-gwZ-Na4kkyHd-uT_6oR5', {action: 'submit'}).then(function(token) {
// Add your logic to submit to your backend server here.
document.getElementById("f_token").value=token;
document.getElementById("f_action").value="submit";
$.ajax({
type: "POST",
url: "ajax/enviar_email_propietaris.php",
data: {
f_token: token,
f_action: 'submit',
f_nom: fnom,
f_telefon: ftelefon,
f_email: femail,
f_missatge: fmissatge
},
success: function(response){
document.getElementById("loader").style.display="none"
if(response=="OK") $("#atencio_enviat").fadeIn("slow");
if(response=="KO") $("#atencio_error").fadeIn("slow");
atencio_email_obert=0;
}
});
});
});
})
*/

</script>
</html>

Ads.Txt Alerts - A trading name of Red Volcano Limited

Waterloo Buildings, Second Floor Rear, 53 London Road, Southampton, Hampshire, United Kingdom, SO15 2AD

© Red Volcano 2020. All Rights Reserved.