From 165518dd1b28068f034efacb068e05b7abda7c7b Mon Sep 17 00:00:00 2001 From: thomasduppi <126145508+thomasduppi@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:23:29 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20des=20donn=C3=A9es=20dans=20localStorag?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code source/assets/js/locura4iot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Code source/assets/js/locura4iot.js b/Code source/assets/js/locura4iot.js index 02b1980..a5c4228 100644 --- a/Code source/assets/js/locura4iot.js +++ b/Code source/assets/js/locura4iot.js @@ -44,6 +44,7 @@ async function lirePortSerie() { jsonData.couleur = '#' + (Math.random() * 0xFFFFFF << 0).toString(16); //admin : createTableau(jsonData); listNodeWithColor.push(jsonData); + localStorage.setItem('listNodeWithColor', JSON.stringify(listNodeWithColor)); } console.log(listNodeWithColor); } catch (jsonError) { @@ -289,3 +290,4 @@ var joueursCaches = true; document.getElementById('nbJoueurs').innerText = getNbJoueurs(); document.getElementById('listJoueurs').innerText = getListJoueurs(); } + \ No newline at end of file