From ac79c74b9d2918a4b842b73335aede66512e1002 Mon Sep 17 00:00:00 2001 From: Vital Date: Thu, 5 Oct 2023 21:11:19 +0200 Subject: [PATCH] Correction de bug --- My-Website.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/My-Website.js b/My-Website.js index 7cc719b..ab238be 100644 --- a/My-Website.js +++ b/My-Website.js @@ -1,8 +1,8 @@ //------Pour que le site soit securise------\\ -/*if (window.location.protocol != "https:") { +if (window.location.protocol != "https:") { window.location.protocol="https:"; -}*/ +} //------Element html------\\ @@ -27,7 +27,7 @@ const txtRecherche = document.querySelector('.txtRecherche'); //-----Afficher la section 1 par defaut----\\ window.addEventListener('load', function() { - showSection(section3); + showSection(section1); }); //-----Changement de page-----\\