Warning:Undefined global variable $adminBorder in /var/www/public/modules/index/js.php on line 94
!important');} else {formTarget[i].setAttribute('style', 'border-color:
Warning:Undefined global variable $adminBorder in /var/www/public/modules/index/js.php on line 96
!important');}if ((formValue === '' && !formName.match(/img_/g) || formValue === '' && formName === 'img_1') && formValue === '' && !formName.match(/pdf_/g) && !formName.match(/mail_default/g) && !formName.match(/file/g)) {formError.push(formName);}formData += (formName + '=' + formValue + '&');}if (formError.length === 0) {xhr('POST','' + target + '','' + formData + '','' + callBack + '');popUpSet(1, 'auto', 'load', '');} else {for (var i = 0; i < formError.length; i++) {if (formError[i].match(/img_/g)) {document.getElementById('div_' + formError[i]).setAttribute('style', 'border-color:red !important');} else {document.getElementsByName(formError[i])[0].setAttribute('style', 'border-color:red !important');}}}}function pageReload() {window.location.reload();}window.addEventListener("load", function() {headerScroll();document.getElementsByClassName('headerLocalisationClick')[0].addEventListener("click", function(){setScrollTo('maps', 'headerBottom');});});window.addEventListener("resize", function() {headerScroll();});window.addEventListener("scroll", function() {var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;headerScroll(scrollTop);});function headerScroll(scrollTop) {if (windowWidth < 800) {var topIcon = '56.5px';} else {var topIcon = '62px';}var headerTop = document.getElementsByClassName('headerTop')[0].offsetHeight;if (scrollTop > headerTop && windowWidth <= 1150) {document.getElementsByClassName('headerMenuMobile')[0].style.top = (topIcon);document.getElementsByClassName('headerPhoneScroll')[0].style.top = (topIcon);} else {document.getElementsByClassName('headerMenuMobile')[0].style.top = ('0');document.getElementsByClassName('headerPhoneScroll')[0].style.top = ('0');}}var initMenu = 0;document.getElementsByClassName('headerMenuMobile')[0].addEventListener("click", function() {if (initMenu) {document.getElementsByClassName('headerMenu')[0].style.opacity = ('0');document.getElementsByClassName('headerMenuMobile')[0].getElementsByTagName('span')[0].setAttribute('class', 'icons24 iconMenu');setTimeout(function() {document.getElementsByClassName('headerMenu')[0].style.display = ('none');}, 300);initMenu = 0;} else {document.getElementsByClassName('headerMenu')[0].style.display = ('block');document.getElementsByClassName('headerMenuMobile')[0].getElementsByTagName('span')[0].setAttribute('class', 'icons24 iconClose');setTimeout(function() {document.getElementsByClassName('headerMenu')[0].style.opacity = ('1')}, 0);initMenu = 1;}});function popUpSet(etat, size, target, params) {var popUp = document.getElementById('popUp');if (etat === 1) {if (!popUp) {var popUp = document.createElement('div');popUp.setAttribute('id', 'popUp');popUp.setAttribute('class', 'popUp' + size.charAt(0).toUpperCase() + size.slice(1));popUpBlackout(1);document.body.insertBefore(popUp, document.body.firstChild);document.body.style.overflow = ('hidden');}xhr('POST','https://www.glm-reparations.fr/modules/pop_up/php.php','target=' + target + '¶ms=' + JSON.stringify(params),'popUpContent');} else if (etat === 0) {document.body.removeChild(popUp);document.body.style.overflow = ('auto');popUpBlackout(0);}}function popUpBlackout(etat) {var blackout = document.getElementById('blackout');if (etat === 1) {if (!blackout) {var blackout = document.createElement('div');blackout.setAttribute('id', 'blackout');blackout.addEventListener('click', popUpClose);document.body.insertBefore(blackout, document.body.firstChild);}} else if (etat === 0) {document.body.removeChild(blackout);}}function popUpClose(){popUpSet(0);}function popUpContent(data) {var popUp = document.getElementById('popUp');popUp.innerHTML = (data);var script = popUp.getElementsByTagName('script')[0];if (script) {var js = document.createElement('script');var jsData = document.createTextNode(script.innerText);js.setAttribute('nonce', 'oKBGrAU9A5lSckyQEJcKzQ==');js.appendChild(jsData);popUp.removeChild(script);popUp.appendChild(js);}}window.addEventListener("load", function(){document.getElementsByClassName('cookiesButton')[0].addEventListener("click", function(){xhr('POST','https://www.glm-reparations.fr/modules/cookies/accept.php','','cookiesAccept');});});function cookiesAccept(){document.body.removeChild(document.getElementsByClassName('cookies')[0]);}window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'UA-178035540-1');