Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Function to handle system messages
- function handleSystemMessage(systemNode) {
- // Move system messages to the bottom right in their own DIV
- var systemDiv = document.createElement("div");
- systemDiv.className = "system-message";
- systemDiv.style.position = "fixed";
- systemDiv.style.bottom = "10px";
- systemDiv.style.right = "10px";
- systemDiv.style.backgroundColor = "#f0f0f0";
- systemDiv.style.padding = "10px";
- systemDiv.appendChild(systemNode.cloneNode(true));
- document.body.appendChild(systemDiv);
- // Call the function to observe the chatbox
- observeChatbox();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement