Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ENG_EAU_CHAUDE = Cookies.get('ENG_EAU_CHAUDE');
- if (ENG_EAU_CHAUDE) {
- if (ENG_EAU_CHAUDE == 'Electricité') {
- $("#consommationsituationenergieseauelec").click();
- } else if (ENG_EAU_CHAUDE == 'Gaz') {
- $("#consommationsituationenergieseaugaz").click();
- } else if (ENG_EAU_CHAUDE == "Collectif" || "Géothermie" || "Poêle à bois ou granulé" || "Cheminée" || "Pompe à chaleur" || "Fioul" || "Autres") {
- $("#consommationsituationenergieseauautres").click();
- $("#consommationsituationenergieseauautrestxt").val(ENG_EAU_CHAUDE);
- }
- }
- var ENG_CHAUFFAGE = Cookies.get('ENG_CHAUFFAGE');
- if (ENG_CHAUFFAGE) {
- if (ENG_CHAUFFAGE == 'Electricité') {
- $("#consommationsituationenergieschauffageelec").click();
- } else if (ENG_CHAUFFAGE == 'Gaz') {
- $("#consommationsituationenergieschauffagegaz").click();
- } else if (ENG_CHAUFFAGE == "Collectif" || "Géothermie" || "Poêle à bois ou granulé" || "Cheminée" || "Pompe à chaleur" || "Fioul" || "Autres") {
- $("#consommationsituationenergieschauffageautres").click();
- $("#consommationsituationenergieschauffageautrestxt").val(ENG_CHAUFFAGE);
- }
- }
- var ENG_CUISSON = Cookies.get('ENG_CUISSON');
- var ENG_CUISSON_TXT = Cookies.get('ENG_CUISSON_TXT');
- if (ENG_CUISSON) {
- console.log(ENG_CUISSON)
- if (ENG_CUISSON == 'Electricité') {
- $("#consommationsituationenergiescuissonelec").click();
- } else if (ENG_CUISSON == 'Gaz') {
- $("#consommationsituationenergiescuissongaz").click();
- } else if (ENG_CUISSON == "Autres" || ENG_CUISSON == "Collectif" || ENG_CUISSON == "Géothermie" || ENG_CUISSON == "Poêle à bois ou granulé" || ENG_CUISSON == "Cheminée" || ENG_CUISSON == "Pompe à chaleur" || ENG_CUISSON == "Fioul" || ENG_CUISSON == "Autres") {
- $("#consommationsituationenergiescuissonautres").click();
- $("#consommationsituationenergiescuissonautrestxt").val(ENG_CUISSON_TXT);
- } else if (ENG_CUISSON.indexOf('Gaz') != -1 && ENG_CUISSON.indexOf('Electricité') != -1 &&
- (ENG_CUISSON.indexOf("Collectif") != -1 || ENG_CUISSON.indexOf("Géothermie") != -1 || ENG_CUISSON.indexOf("Poêle à bois ou granulé") != -1 || ENG_CUISSON.indexOf("Cheminée") != -1 || ENG_CUISSON.indexOf("Pompe à chaleur") != -1 || ENG_CUISSON.indexOf("Fioul") != -1 || ENG_CUISSON.indexOf("Autres") != -1)
- ) {
- $("#consommationsituationenergiescuissonelec").click();
- $("#consommationsituationenergiescuissongaz").click();
- $("#consommationsituationenergiescuissonautres").click();
- $("#consommationsituationenergiescuissonautrestxt").val(ENG_CUISSON_TXT);
- } else if (ENG_CUISSON == 'Gaz, Electricité') {
- $("#consommationsituationenergiescuissonelec").click();
- $("#consommationsituationenergiescuissongaz").click();
- } else if (ENG_CUISSON.indexOf('Gaz') != -1 &&
- (ENG_CUISSON.indexOf("Collectif") != -1 || ENG_CUISSON.indexOf("Géothermie") != -1 || ENG_CUISSON.indexOf("Poêle à bois ou granulé") != -1 || ENG_CUISSON.indexOf("Cheminée") != -1 || ENG_CUISSON.indexOf("Pompe à chaleur") != -1 || ENG_CUISSON.indexOf("Fioul") != -1 || ENG_CUISSON.indexOf("Autres") != -1)
- ) {
- $("#consommationsituationenergiescuissongaz").click();
- $("#consommationsituationenergiescuissonautres").click();
- $("#consommationsituationenergiescuissonautrestxt").val(ENG_CUISSON_TXT);
- } else if (ENG_CUISSON.indexOf('Electricité') != -1 &&
- (ENG_CUISSON.indexOf("Collectif") != -1 || ENG_CUISSON.indexOf("Géothermie") != -1 || ENG_CUISSON.indexOf("Poêle à bois ou granulé") != -1 || ENG_CUISSON.indexOf("Cheminée") != -1 || ENG_CUISSON.indexOf("Pompe à chaleur") != -1 || ENG_CUISSON.indexOf("Fioul") != -1 || ENG_CUISSON.indexOf("Autres") != -1)
- ) {
- $("#consommationsituationenergiescuissonelec").click();
- $("#consommationsituationenergiescuissonautres").click();
- $("#consommationsituationenergiescuissonautrestxt").val(ENG_CUISSON_TXT);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement