Spaces:
No application file
No application file
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Chatbot Widget</title> | |
| <style> | |
| #chatbot-container { | |
| width: 400px; | |
| height: 600px; | |
| border: 1px solid #ccc; | |
| overflow: hidden; | |
| position: fixed; | |
| bottom: 20px; | |
| right: 20px; | |
| background-color: white; | |
| z-index: 9999; | |
| border-radius: 10px; | |
| } | |
| #chatbot-frame { | |
| width: 100%; | |
| height: 100%; | |
| border: none; | |
| } | |
| #chatbot-toggle { | |
| position: fixed; | |
| bottom: 20px; | |
| right: 20px; | |
| background-color: #007bff; | |
| color: white; | |
| padding: 10px; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| z-index: 10000; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="chatbot-container" style="display:none;"> | |
| <iframe id="chatbot-frame" src="https://huggingface.co/spaces/SuriRaja/Mock"></iframe> | |
| </div> | |
| <button id="chatbot-toggle">Chat with us!</button> | |
| <script> | |
| document.getElementById('chatbot-toggle').addEventListener('click', function() { | |
| var container = document.getElementById('chatbot-container'); | |
| if (container.style.display === 'none') { | |
| container.style.display = 'block'; | |
| } else { | |
| container.style.display = 'none'; | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> | |