From 9250d1de6b1aa2520b6cdb077a2ecd51430a38f2 Mon Sep 17 00:00:00 2001 From: Flo E Date: Fri, 15 Jan 2021 17:03:56 +0100 Subject: [PATCH] reste a lier couloir_ami avec la fin ou un retour au menu --- HTML/couloir_ami.html | 10 +++++----- JAVASCRIPT/couloir_ami.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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