1import * as SL from "./includes/_storeLocator"; 2import * as front from "./includes/_frontEndBehavior"; 3import * as access from "./includes/_accessibility"; 4import * as geoLoc from "./includes/_geolocalisation"; 5import * as tool from "./includes/_tools"; 6import * as cook from "./includes/_manageCookieService"; 7 8import {jobSlider} from "./includes/_job-slider"; 9import {avisSlider} from "./includes/_avis-slider"; 10import {remonteePagesSlider} from "./includes/_remontee-pages-slider"; 11import {agence} from "./includes/_agence"; 12import {storeUtmParameters} from "./includes/_utm-cookie"; 13import * as FSM from "./includes/_formStepManager"; 14import {cookieAgencyDetails} from "./includes/_setCookieAgencyDetails"; 15 16const ajaxUrl = variables.ajax_url; 17document.addEventListener("DOMContentLoaded", (formField, submit) => { 18 //fonctions générales 19 jobSlider(); 20 avisSlider(); 21 remonteePagesSlider(); 22 agence(); 23 storeUtmParameters(); 24 25 access.accessibility(); 26 access.toggleAccessibilityBtn(); 27 access.accessibilityBehavior(); 28 access.highContrast(); 29 access.fixAccessibilityGrayScale(); 30 31 // front.hideBannerOffreMenage(); 32 front.showBannerOffreMenage(); 33 front.hideInputCityClickOutside(); 34 front.btnScrolltop(); 35 front.scrollIfAccordionNotVisible(); 36 front.initCommentCaMarcheSlider(); 37 front.initCarouselServiceSlider(); 38 if (window.matchMedia("(min-width: 768px)").matches) { 39 front.addOpacityOnClickMegamenu(); 40 } 41 if (window.matchMedia("(min-width: 1025px)").matches) { 42 front.handleFixedHeader(); 43 } 44 45 //a ranger 46 front.allowControlCarouselVideo(); 47 front.fixInputAgencyFirefox(); 48 front.fixInfoBulleScroll(); 49 front.hideBtnThanksPage(); 50 front.megamenuBehavior(); 51 front.fixMobileDevisCtaMad(); 52 53 // ddd cookie pages services 54 cook.manageCookieService(); 55 56 cookieAgencyDetails(); 57 58 //fonctions spécifiques à certaines pages 59 let url = window.location; 60 switch (true) { 61 case url.pathname === "/": //Home 62 case url.pathname === "/webdomaliance/": 63 front.swiperRole(); 64 tool.waitForElem("#form-field-communeHome").then((e) => { 65 e.addEventListener("input", function () { 66 if (e.value.length > 3) { 67 new SL.StoreLocatorBehavior("#form-field-communeHome", "#submit-button"); 68 } 69 }); 70 }); 71 geoLoc.inputGeoLocalisation(); 72 break; 73 case url.pathname.includes("/nos-services/"): //Menage 74 front.mediaCarousel(); 75 tool.waitForElem("#form-field-communeHome").then((e) => { 76 e.addEventListener("input", function () { 77 if (e.value.length > 3) { 78 new SL.StoreLocatorBehavior("#form-field-communeHome", "#submit-button"); 79 } 80 }); 81 }); 82 break; 83 case url.pathname.includes("/demande-devis/"): 84 case url.pathname.includes("/devis-offre-speciale/"): 85 front.closeTelMenuMobile(); 86 front.handleRightContentWidthDemandeDeDevis(); 87 break; 88 case url.pathname.includes("/engagement-qualite/"): //Engament qualité 89 tool.waitForElem("#form-field-communeHome").then((e) => { 90 e.addEventListener("input", function () { 91 if (e.value.length > 3) { 92 new SL.StoreLocatorBehavior("#form-field-communeHome", "#submit-button"); 93 } 94 }); 95 }); 96 geoLoc.inputGeoLocalisation(); 97 break; 98 case url.pathname.includes("/credit-impot-femme-de-menage/"): //Crédit d'impôt femme de ménage 99 tool.waitForElem("#form-field-communeHome").then((e) => { 100 e.addEventListener("input", function () { 101 if (e.value.length > 3) { 102 new SL.StoreLocatorBehavior("#form-field-communeHome", "#submit-button"); 103 } 104 }); 105 }); 106 geoLoc.inputGeoLocalisation(); 107 break; 108 case url.pathname.includes("/blog/"): //Blog 109 front.simulateClickSummaryBlog(); 110 front.overrideScrollTableOfContents(); 111 break; 112 case url.pathname.includes("/plan-de-site/"): //Plan de site 113 front.removeCategoyLinkSitemap(); 114 break; 115 case url.pathname.includes("/formulaire-contact/"): //Formulaire de contact 116 case url.pathname.includes("/webdomaliance/formulaire-contact/"): 117 tool.waitForElem('#zipcode').then(() => { 118 let formField = '#zipcode'; 119 new SL.StoreLocatorBehavior(formField, null); 120 }); 121 break; 122 case url.pathname.includes("/temoignages/"): //témoinages 123 tool.waitForElem("#addressInput_avis").then(() => { 124 new SL.StoreLocatorBehavior("#addressInput_avis", null); 125 }); 126 break; 127 case url.pathname.includes("/simulateur-eligibilite-aici/"): 128 FSM.initializeForm(); 129 break; 130 default: 131 break; 132 } 133});
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.