REBUS







Rebus Interattivo

body { text-align: center; margin: 0; padding: 0; background: #f9f9f9; } .rebus-wrapper { background: #fff; padding: 20px; border: 1px solid #ddd; border-radius: 10px; max-width: 500px; margin: 20px auto; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); } .rebus-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; } .rebus-container img { width: 100px; height: 100px; border-radius: 5px; } input[type="text"] { width: 90%; max-width: 300px; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px; } button { padding: 10px 15px; font-size: 16px; border: none; border-radius: 5px; background: #007bff; color: white; cursor: pointer; margin-top: 10px; } button:hover { background: #0056b3; } #message { margin-top: 10px; font-weight: bold; } #solution { margin-top: 10px; font-weight: bold; color: red; display: none; } @media (max-width: 600px) { .rebus-container img { width: 80px; height: 80px; } button { width: 100%; } }


Indovina il rebus!

Immagine 1
Immagine 2
Immagine 3
Immagine 4


La risposta corretta รจ: “cruscotto”

(function() { let attempts = 0; const correctAnswer = "cruscotto";

window.checkAnswer = function() { const userAnswer = document.getElementById("answer").value.trim().toLowerCase(); const message = document.getElementById("message");

if (userAnswer === correctAnswer) { message.textContent = "Bravo! Hai indovinato!"; message.style.color = "green"; } else { attempts++; message.textContent = `Sbagliato! Tentativi rimanenti: ${3 - attempts}`; message.style.color = "red"; }

if (attempts >= 3) { document.getElementById("solution").style.display = "block"; setTimeout(() => { location.reload(); }, 2000); // Ricarica la pagina dopo 2 secondi } }; })();