File "code003.html"

Full Path: /home/analogde/www/Diabete/Provisoire/code003.html
File size: 833 bytes
MIME-type: text/html
Charset: utf-8

<!DOCTYPE html>
<html lang="fr">
<head>
  <meta charset="UTF-8">
  <title>Page 2 - JSON brut</title>
  <style>
    pre {
      background-color: #f5f5f5;
      padding: 20px;
      border: 1px solid #ccc;
      width: 80%;
      margin: 20px auto;
      overflow-x: auto;
      font-family: monospace;
    }
  </style>
</head>
<body>
  <h2 style="text-align: center;">Données JSON reçues</h2>
  <pre id="json-container">Chargement...</pre>

  <script>
    const jsonData = localStorage.getItem("donneesUtilisateurs");
    const container = document.getElementById("json-container");

    if (jsonData) {
      const obj = JSON.parse(jsonData);
      container.textContent = JSON.stringify(obj, null, 2); // affichage formaté
    } else {
      container.textContent = "Aucune donnée trouvée.";
    }
  </script>
</body>
</html>