Rezervacije

Molimo odaberite smještajnu jedinicu


Molimo unesite Vaše podatke

Molimo unesite datume odsjedanja

.popup_black{ background-color:rgba(0,0,0,0.5); position:fixed; top:0; left:0; width:100vw; height:100vh; justify-content:center; align-items:center; z-index:100000; } .popup_block{ width:60%; height:20%; display:flex; position:relative; justify-content:center; align-items:center; background-color:rgba(255,255,255,1.0); z-index:100001; } @keyframes popup-fadeout{ from{ opacity:1.0; } to{ opacity:0.0; } } .popup_text{ color:black; } var black=document.createElement("div"); black.setAttribute("class","popup_black"); var block=document.createElement("div"); block.setAttribute("class","popup_block"); var p =document.createElement("p"); p.setAttribute("class","popup_text"); p.setAttribute("id","porukaa"); block.appendChild(p); black.appendChild(block); document.body.appendChild(black); document.querySelector(".popup_black").style.display="none"; function onSubmit(event) { event.preventDefault(); var xmlhttpObj=new XMLHttpRequest(); xmlhttpObj.on-readystatechange = function() { if (this.readyState == 4) { if(this.status == 200) { document.getElementById("porukaa").innerHTML="Poruka uspješno poslana"; document.querySelector(".popup_black").style.display="flex"; document.querySelector(".popup_black").style.animation="popup-fadeout 2s linear forwards"; setTimeout(function() { document.querySelector(".popup_black").style.display="none"; },2000); }else{ document.getElementById("porukaa").innerHTML="Poruka neuspješno poslana"; document.querySelector(".popup_black").style.display="flex"; document.querySelector(".popup_black").style.animation="popup-fadeout 2s linear forwards"; setTimeout(function() { document.querySelector(".popup_black").style.display="none"; },2000); } } }; xmlhttpObj.open("POST","./Contact.php"); var fd = new FormData(); fd.append("location",(document.getElementById("alan").value ? "alan":"lubenovac")); fd.append("name",document.getElementById("ime").value); fd.append("surname",document.getElementById("prezime").value); fd.append("arrival",document.getElementById("dolazak").value); fd.append("leaving",document.getElementById("odlazak").value); fd.append("adults",document.getElementById("odrasli").value); fd.append("children",document.getElementById("djeca").value); fd.append("text",document.getElementById("poruka").value); xmlhttpObj.send(fd); }
© 2017 Pastirski Stanovi. Sva prava pridržana. Designed By Meridies