diff --git a/index.html b/index.html index 4476f6bc4c001b728ca4b389c1805f6c10091bfc..8d00338b7846bdbd96301279b47ea3b5eee1b791 100644 --- a/index.html +++ b/index.html @@ -261,13 +261,13 @@ <img src="assets/cloud-mgl.svg" alt="logo cloud grand Lyon" /> <h2>J'ai déjà un compte</h2> <p class="text-18-white-padding"> - Vous avez déjà un compte mais ne savez plus comment y accéder ? + Vous avez déjà un compte ? <br />Pas de panique, pour retrouver l'accès à votre cloud personnel Grand Lyon au sein duquel vous retrouverez Ecolyo, cliquez sur le bouton ci-dessous </p> <a - href="https://manager.cozygrandlyon.cloud/grdlyon/reminder" + href="https://manager.cozygrandlyon.cloud/v2/grdlyon/login" target="_blank" class="button robots-nocontent" > @@ -311,16 +311,16 @@ </footer> </body> <script> - const navBar = document.querySelector("nav"); + const navBar = document.querySelector('nav'); //smooth scroll document.querySelectorAll('a[href^="#"]').forEach((anchor) => { - anchor.addEventListener("click", function (e) { + anchor.addEventListener('click', function (e) { e.preventDefault(); - let item = document.querySelector(this.getAttribute("href")); + let item = document.querySelector(this.getAttribute('href')); window.scrollTo({ top: item.offsetTop - 50, - behavior: "smooth", + behavior: 'smooth', }); }); }); @@ -329,7 +329,7 @@ let scrollUp = true; let hideDistance = 200; - let headerHeight = "6.25rem"; + let headerHeight = '6.25rem'; let vw; let vh; let scrollHeightSent = false; @@ -352,23 +352,23 @@ }; onload = setDeviceWidth(); - window.addEventListener("resize", () => { + window.addEventListener('resize', () => { setDeviceWidth(); }); - window.addEventListener("load", () => { + window.addEventListener('load', () => { setDeviceHeight(); }); - window.addEventListener("scroll", (event) => { + window.addEventListener('scroll', (event) => { if (vw < 1200) { if (scrollY > hideDistance) { scrollUp = this.oldScroll > this.scrollY; if (scrollUp === false) { - navBar.style.marginTop = "-" + headerHeight; + navBar.style.marginTop = '-' + headerHeight; } if (scrollUp === true) { - navBar.style.marginTop = "0"; + navBar.style.marginTop = '0'; } this.oldScroll = this.scrollY; } @@ -377,7 +377,7 @@ // Send scroll event to matomo if user has scrolled 50% of page, then disable event if (scrollY > vh / 2 && !scrollHeightSent) { scrollHeightSent = true; - _paq.push(["trackEvent", "Scroll_depth", "50%"]); + _paq.push(['trackEvent', 'Scroll_depth', '50%']); } }); </script>