Skip to content

Commit

Permalink
Merge pull request #83 from IUT-Blagnac/ajouter-donnees-local-storage
Browse files Browse the repository at this point in the history
ajout des données dans localStorage
  • Loading branch information
thomasduppi authored Jan 23, 2024
2 parents b25075d + 165518d commit bf4d7ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Code source/assets/js/locura4iot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -289,3 +290,4 @@ var joueursCaches = true;
document.getElementById('nbJoueurs').innerText = getNbJoueurs();
document.getElementById('listJoueurs').innerText = getListJoueurs();
}

0 comments on commit bf4d7ca

Please sign in to comment.