Skip to content

Commit bf0f374

Browse files
Update index.html
1 parent cfd07cd commit bf0f374

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
4242
});
4343
</script>
44+
<script>
45+
function toggleChatbox() {
46+
const box = document.getElementById("chatbox");
47+
box.style.display = box.style.display === "none" ? "flex" : "none";
48+
}
49+
</script>
50+
4451
<style>
4552
link[rel="icon"] {
4653
border-radius: 50%;
@@ -96,6 +103,47 @@
96103
.badge-wrapper .badge-base {
97104
display: inline-block;
98105
}
106+
chat-launcher {
107+
position: fixed;
108+
bottom: 20px;
109+
right: 20px;
110+
background: #2c3e50;
111+
color: white;
112+
padding: 12px 16px;
113+
border-radius: 30px;
114+
cursor: pointer;
115+
z-index: 1000;
116+
font-family: sans-serif;
117+
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
118+
}
119+
120+
chatbox {
121+
position: fixed;
122+
bottom: 80px;
123+
right: 20px;
124+
width: 360px;
125+
height: 500px;
126+
border: 1px solid #ccc;
127+
background: white;
128+
display: none;
129+
flex-direction: column;
130+
z-index: 1001;
131+
box-shadow: 0 8px 16px rgba(0,0,0,0.3);
132+
border-radius: 10px;
133+
overflow: hidden;
134+
}
135+
136+
chatbox-header {
137+
background: #2c3e50;
138+
color: white;
139+
padding: 10px;
140+
font-weight: bold;
141+
display: flex;
142+
justify-content: space-between;
143+
align-items: center;
144+
font-family: sans-serif;
145+
}
146+
99147
</style>
100148
</head>
101149
<body>

0 commit comments

Comments
 (0)