// ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️ const BASE_URL = 'http://localhost:5000/api'; const keyword = document.querySelector('#keyword'); const loading = document.querySelector('#loading'); const results = document.querySelector('#results'); const btnSearch = document.querySelector('#btnSearch'); /** * FUNZIONE: Crea la card HTML per un singolo post con autore a fianco * * Funzione già fatta - non modificare */ function creaElementoPost(post, autore) { results.innerHTML += `