diff --git a/HTML/couloir_ami.html b/HTML/couloir_ami.html index 7441aae..3268996 100644 --- a/HTML/couloir_ami.html +++ b/HTML/couloir_ami.html @@ -18,17 +18,17 @@
-

Texte 1

-

texte 2

-

texte 3

-

texte 4

+

Votre fidèle acolyte et vous-mêmes revenez sur les lieux

+

Vous apercevez de nouveau cette personne, il a l'air de se rendre au sous-sol quotidiennement

+

Cette fois-ci, il ne vous court pas après

+

Que faites-vous ?

Press enter

Texte suivant
- +
diff --git a/JAVASCRIPT/couloir_ami.js b/JAVASCRIPT/couloir_ami.js index 40229d7..0d58953 100644 --- a/JAVASCRIPT/couloir_ami.js +++ b/JAVASCRIPT/couloir_ami.js @@ -4,18 +4,18 @@ let texts = document.getElementsByClassName("textWillAppear"); let buttonBox = document.getElementById("buttons"); let arrow = document.getElementById("arrow"); let space = document.getElementById("space"); -let nomAmi = document.getElementById("nomAmi"); +let nomAmi = document.getElementsByClassName("nomAmi"); -console.log(texts) +console.log(nomAmi[0]) let NB_TEXTS = texts.length; let NB_BUTTONS = 1; let NB_ELEMENTS_TO_APPEAR = NB_TEXTS + NB_BUTTONS; //------------------ Fonctions ------------------// - -nomAmi.innerHTML = localStorage.getItem('friendPseudo'); - +for (let i = 0 ; i