Ma maison de famille - Grand-Mercredi

présentent

Et si vous transformiez votre maison
en véritable maison de famille, adaptée à tous les âges ?

  • Infiltrations, technique, plomberie…
  • Coordination des professionnels
  • Salle de bain inutilisable
  • Pratique et économique
  • 100 % sur-mesure, à l’image de votre famille
  • Installation en 8h
  • Pas de travaux à prévoir
  • Une équipe qui s’occupe de tout
var currentTab = 0; // Current tab is set to be the first tab (0) showTab(currentTab); // Display the current tab function showTab(n) { // This function will display the specified tab of the form ... var x = document.getElementsByClassName("tab"); x[n].style.display = "flex"; // ... and fix the Previous/Next buttons: if (n == 0) { document.getElementById("prevBtn").style.display = "none"; //document.getElementById("text-introduce").style.display = "flex"; } else { document.getElementById("prevBtn").style.display = "inline"; document.getElementById("nextBtn").style.display = "inline"; //document.getElementById("text-introduce").style.display = "none"; } if (n == (x.length - 1)) { // document.getElementById("nextBtn").innerHTML = "Recevoir mon guide"; document.getElementById("nextBtn").style.display = "none"; console.log(n); } else { document.getElementById("nextBtn").style.display = "initiale"; // document.getElementById("nextBtn").innerHTML = "Étape suivante"; console.log(n); } // background formulaire if (n == 0) { document.getElementById("box-formulaire").style.background = "transparent"; } if (n == 1) { document.getElementById("box-formulaire").style.background = "transparent"; } if (n == 2) { document.getElementById("box-formulaire").style.background = "transparent"; } // ... and run a function that displays the correct step indicator: fixStepIndicator(n) } function nextPrev(n) { // This function will figure out which tab to display var x = document.getElementsByClassName("tab"); // Exit the function if any field in the current tab is invalid: if (n == 1 && !validateForm()) return false; // Hide the current tab:red x[currentTab].style.display = "none"; // Increase or decrease the current tab by 1: currentTab = currentTab + n; // if you have reached the end of the form... : if (currentTab >= x.length) { //...the form gets submitted: //document.getElementById("regForm").submit(); return false; } // Otherwise, display the correct tab: showTab(currentTab); return n; } function validateForm() { // This function deals with validation of the form fields var x, y, i, valid = true; x = document.getElementsByClassName("tab"); y = x[currentTab].getElementsByTagName("input"); // A loop that checks every input field in the current tab: for (i = 0; i < y.length; i++) { // If a field is empty... if (y[i].value == "") { // add an "invalid" class to the field: y[i].className += " invalid"; // and set the current valid status to false: valid = false; } } // If the valid status is true, mark the step as finished and valid: if (valid) { document.getElementsByClassName("step")[currentTab].className += " finish"; } return valid; // return the valid status } function fixStepIndicator(n) { // This function removes the "active" class of all stepsformControl... var i, x = document.getElementsByClassName("step"); for (i = 0; i < x.length; i++) { x[i].className = x[i].className.replace(" active", ""); } //... and adds the "active" class to the current step: x[n].className += " active"; }