Spaces:
No application file
No application file
Create index.html
Browse files- index.html +59 -0
index.html
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Chatbot Widget</title>
|
| 7 |
+
<style>
|
| 8 |
+
#chatbot-container {
|
| 9 |
+
width: 400px;
|
| 10 |
+
height: 600px;
|
| 11 |
+
border: 1px solid #ccc;
|
| 12 |
+
overflow: hidden;
|
| 13 |
+
position: fixed;
|
| 14 |
+
bottom: 20px;
|
| 15 |
+
right: 20px;
|
| 16 |
+
background-color: white;
|
| 17 |
+
z-index: 9999;
|
| 18 |
+
border-radius: 10px;
|
| 19 |
+
}
|
| 20 |
+
#chatbot-frame {
|
| 21 |
+
width: 100%;
|
| 22 |
+
height: 100%;
|
| 23 |
+
border: none;
|
| 24 |
+
}
|
| 25 |
+
#chatbot-toggle {
|
| 26 |
+
position: fixed;
|
| 27 |
+
bottom: 20px;
|
| 28 |
+
right: 20px;
|
| 29 |
+
background-color: #007bff;
|
| 30 |
+
color: white;
|
| 31 |
+
padding: 10px;
|
| 32 |
+
border: none;
|
| 33 |
+
border-radius: 5px;
|
| 34 |
+
cursor: pointer;
|
| 35 |
+
z-index: 10000;
|
| 36 |
+
}
|
| 37 |
+
</style>
|
| 38 |
+
</head>
|
| 39 |
+
<body>
|
| 40 |
+
|
| 41 |
+
<div id="chatbot-container" style="display:none;">
|
| 42 |
+
<iframe id="chatbot-frame" src="https://huggingface.co/spaces/SuriRaja/Mock"></iframe>
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
+
<button id="chatbot-toggle">Chat with us!</button>
|
| 46 |
+
|
| 47 |
+
<script>
|
| 48 |
+
document.getElementById('chatbot-toggle').addEventListener('click', function() {
|
| 49 |
+
var container = document.getElementById('chatbot-container');
|
| 50 |
+
if (container.style.display === 'none') {
|
| 51 |
+
container.style.display = 'block';
|
| 52 |
+
} else {
|
| 53 |
+
container.style.display = 'none';
|
| 54 |
+
}
|
| 55 |
+
});
|
| 56 |
+
</script>
|
| 57 |
+
|
| 58 |
+
</body>
|
| 59 |
+
</html>
|