Files
esercizi-web/javascript/JS_Esercizi 11 - API/03_utente_e_post/index.html
2026-02-11 22:06:30 +01:00

40 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Esercizio 3 - Utente + Post</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="../index.html" style="position: absolute; top: 20px; left: 20px; text-decoration: none; color: #555; font-weight: bold;">← Dashboard</a>
<div class="app-container">
<h1>📝 Utente + Post</h1>
<p class="subtitle">Fetch multipli e relazioni dati</p>
<!-- SEZIONE CONFIGURAZIONE -->
<div class="config-box">
<label for="userId">ID Utente (1-40):</label>
<div class="input-group">
<input type="number" id="userId" min="1" max="40" value="1">
<button id="btnFetch">Carica</button>
</div>
</div>
<!-- LOADING -->
<div id="loading" class="loading nascosto">
⏳ Caricamento...
</div>
<!-- PROFILO UTENTE -->
<div id="userProfile" class="user-profile"></div>
<!-- POST -->
<div id="postsContainer" class="posts-container"></div>
</div>
<script src="script.js"></script>
</body>
</html>