Home » Prueba burbuja de chat
<h1>Hola esta es una prueba de HTML </h1>
<style>
.chat-bubble {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
background-color: #007bff;
border-radius: 50%;
cursor: pointer;
z-index: 9999;
transition: all 0.3s ease-in-out;
}
.chat-bubble:hover {
transform: scale(1.1);
background-color: #0056b3;
}
.iframe-container {
position: fixed;
bottom: 100px;
right: 100px;
width: 300px;
height: 600px;
background-color: #ffffff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
display: none;
z-index: 9998;
}
.iframe-container iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
<div class="chat-bubble" onclick="toggleChat()">
<!-- Icono de la burbuja flotante -->
</div>
<div class="iframe-container" id="iframeContainer">
<iframe src="https://land.talentpitch.co/chat-tp/" width="300" height="600"></iframe>
</div>
<script>
function toggleChat() {
var iframeContainer = document.getElementById('iframeContainer');
iframeContainer.style.display = iframeContainer.style.display === 'none' ? 'block' : 'none';
}
</script>