File size: 1,558 Bytes
28b9eb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<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>