WEBLEB
Home
Editor
Accedi
Pro
Italiano
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Invito super speciale <3
1017
jhonatanbc1212
Apri nell'Editor
Pubblica il Tuo Codice
HTML
Copy
(Leave empty if not needed) -->
¿love?
¿Quisieras ser mi San Valentín <3?
Sípi
Nopi
CSS
Copy
/* Replace with your CSS Code (Leave empty if not needed) */ body { display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; background-color: #purple; } .container { text-align: center; } #gifContainerImg { width: 60%; height: 60%; } button { padding: 10px 20px; font-size: 16px; margin: 10px; cursor: pointer; } #siBtn { padding: 10px 20px; font-size: 16px; margin: 10px; cursor: pointer; background-color: #009705; /* verde */ color: white; border: 2px solid #ffc0cb; /* Bordes rosa */ border-radius: 10px; /* Esquinas redondeadas */ } #noBtn { padding: 10px 20px; font-size: 16px; margin: 10px; cursor: pointer; background-color: #ff5733; /* Rojo */ color: white; border: 2px solid #ffc0cb; /* Bordes rosa */ border-radius: 10px; /* Esquinas redondeadas */ } #noBtn span { font-size: 18px; color: #fcf4f4; /* Cambia el color del texto según tus preferencias */ /* Otras propiedades de estilo aquí */ } #siBtn:hover { background-color:; /* Cambia a otro color en hover, puedes ajustar el valor según tus preferencias */ } #noBtn:hover { background-color: #641e0d; /* Cambia a otro color en hover, puedes ajustar el valor según tus preferencias */ } .bg-green { background-color: #ffffff; /* Nuevo color de fondo verde */ } #messageContainer { font-size: 30px; color: #ff0000; /* Color rojo */ font-family: "YourDesiredFont", sans-serif; /* Reemplaza 'YourDesiredFont' con la fuente que desees */ text-shadow: 2px 2px 4px #000; /* Borde simulado */ animation: pulse 0.5s infinite alternate; /* Animación de palpitación más rápida */ } @keyframes pulse { from { transform: scale(1); } to { transform: scale(1.3); /* Zoom más grande */ } }
JS
Copy
let noButtonState = 0; // Estado actual del botón "No" // Mostrar el gif inicial document.getElementById('gifContainer').style.display = 'block'; document.getElementById('siBtn').addEventListener('click', function() { // Ocultar el gif triste y mostrar el gif feliz document.getElementById('sadGifContainer').style.display = 'none'; document.getElementById('sadGifContainer1').style.display = 'none'; document.getElementById('sadGifContainer2').style.display = 'none'; document.getElementById('gifContainer').style.display = 'none'; document.getElementById('happyGifContainer').style.display = 'block'; // Ocultar los botones "Pregunta Sí" y "No " document.getElementById('question').style.display = 'none'; document.getElementById('siBtn').style.display = 'none'; document.body.classList.add('bg-green'); document.getElementById('noBtn').style.display = 'none'; // Mostrar el mensaje específico document.getElementById('messageContainer').style.display = 'block'; document.getElementById('messageContainer').innerHTML = '¡SIIIIIII, CON LA NIÑA MAS LINDA DEL MUNDOOOOO, T AMOOOO, SOY MUY FELIII!, GRACIAAS'; // Mostrar otro gif después de 3 segundos setTimeout(function() { document.getElementById('happyGifContainer').style.display = 'none'; document.getElementById('happyGifContainer2').style.display = 'block'; }, 1000); setTimeout(function() { document.getElementById('happyGifContainer2').style.display = 'none'; document.getElementById('happyGifContainer3').style.display = 'block'; }, 2000); setTimeout(function() { document.getElementById('happyGifContainer3').style.display = 'none'; document.getElementById('happyGifContainer4').style.display = 'block'; }, 3000); }); document.getElementById('noBtn').addEventListener('click', function() { switch (noButtonState) { case 0: // Primera vez haciendo clic en "No" document.getElementById('happyGifContainer').style.display = 'none'; document.getElementById('gifContainer').style.display = 'none'; document.getElementById('sadGifContainer').style.display = 'block'; // Modificar el botón "No" document.getElementById('noBtn').innerHTML = 'No? pqq?? yo se q quieres'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; document.getElementById('siBtn').style.fontSize = '40px'; document.getElementById('siBtn').style.padding = '20px 40px'; noButtonClickCount++; noButtonState++; break; case 1: // Segunda vez haciendo clic en "No" document.getElementById('noBtn').innerHTML = '¡¿Enserio noo?!'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; document.getElementById('sadGifContainer').style.display = 'none'; document.getElementById('sadGifContainer2').style.display = 'block'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '50px'; document.getElementById('siBtn').style.padding = '30px 50px'; noButtonState++; break; case 2: document.getElementById('noBtn').innerHTML = 'Estás segurita que no? :c'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; document.getElementById('sadGifContainer').style.display = 'none'; document.getElementById('sadGifContainer2').style.display = 'none'; document.getElementById('sadGifContainer1').style.display = 'block'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '60px'; document.getElementById('siBtn').style.padding = '40px 60px'; noButtonState++; break; case 3: document.getElementById('noBtn').innerHTML = 'porfiiis'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '70px'; document.getElementById('siBtn').style.padding = '50px 70px'; noButtonState++; break; case 4: document.getElementById('noBtn').innerHTML = 'deberitas?' document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '80px'; document.getElementById('siBtn').style.padding = '60px 80px'; noButtonState++; break; case 5: document.getElementById('noBtn').innerHTML = 'deberitas,deberitas?'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '90px'; document.getElementById('siBtn').style.padding = '70px 90px'; noButtonState++; break; case 6: document.getElementById('noBtn').innerHTML = 'deberitas,deberitas,deberitas?'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '100px'; document.getElementById('siBtn').style.padding = '80px 100px'; noButtonState++; break; case 7: document.getElementById('noBtn').innerHTML = 'Hazlo por Taay :c'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '120px'; document.getElementById('siBtn').style.padding = '90px 120px'; noButtonState++; break; case 8: document.getElementById('noBtn').innerHTML = 'de verdad no?? t compro hamburguesaas :c'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; document.getElementById('siBtn').style.fontSize = '140px'; document.getElementById('siBtn').style.padding = '100px 140px'; noButtonState++; break; case 9: document.getElementById('noBtn').innerHTML = 'PORFAA :C, ya no me quelees'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '160px'; document.getElementById('siBtn').style.padding = '110px 160px'; noButtonState++; break; case 10: document.getElementById('noBtn').innerHTML = 'PORFIIIS, SISISI??'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; document.getElementById('siBtn').style.fontSize = '180px'; document.getElementById('siBtn').style.padding = '120px 180px'; noButtonState++; break; case 11: document.getElementById('noBtn').innerHTML = 'Estoy seguro de q si quiereees, yaap?? dale, pofabo'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; document.getElementById('siBtn').style.fontSize = '200px'; document.getElementById('siBtn').style.padding = '130px 200px'; noButtonState++; break; case 12: document.getElementById('noBtn').innerHTML = 'SJAJSKJS, yaaa mayuuu, pofaboo, no jueguees asiii :ccc'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '220px'; document.getElementById('siBtn').style.padding = '140px 220px'; noButtonState++; break; case 13: document.getElementById('noBtn').innerHTML = 'ACEPTA YAA :C'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; document.getElementById('siBtn').style.fontSize = '240px'; document.getElementById('siBtn').style.padding = '150px 240px'; noButtonState++; break; case 14: document.getElementById('noBtn').innerHTML = 'T VOY A HACER LA MAS FELIZ, LO VERAAAS, SI?'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '260px'; document.getElementById('siBtn').style.padding = '160px 260px'; noButtonState++; break; case 15: document.getElementById('noBtn').innerHTML = 'Ya mucho amoooor :c, hay q hacerloo, MUAK'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; // Hacer que el botón "Sí" crezca document.getElementById('siBtn').style.fontSize = '280px'; document.getElementById('siBtn').style.padding = '170px 280px'; noButtonState++; break; case 16: document.getElementById('noBtn').innerHTML = 'JSAKJKSJAK, YA AMOR, IGUAL LA PASARAS CONMIGOOO, D CASTIGO T DARE MILLONES D BESITOOOS, FUISTE JSKAJSKA, T AMOO MUAAAK'; document.getElementById('noBtn').style.backgroundColor = '#F1330A'; document.getElementById('sadGifContainer').style.display = 'none'; document.getElementById('sadGifContainer1').style.display = 'none'; document.getElementById('sadGifContainer2').style.display = 'none'; document.getElementById('gifContainer').style.display = 'block'; document.getElementById('happyGifContainer').style.display = 'none'; // Vuelve al estado 0 noButtonState = 0; break; default: // Por si acaso, maneja cualquier otro caso aquí break; } });