// ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️ const BASE_URL = 'http://localhost:3000/api'; const keyword = document.querySelector('#keyword'); const loading = document.querySelector('#loading'); const resultsContainer = document.querySelector('#resultsContainer'); const btnSearch = document.querySelector('#btnSearch'); /** * FUNZIONE: Crea la card HTML per un autore e i suoi post trovati * * Funzione già fatta - non modificare */ function createAuthorCard(author, posts) { const postsHTML = posts.map(post => `