Chaitu2112 commited on
Commit
df35636
·
verified ·
1 Parent(s): d49f150

Update static/chat_digital.js

Browse files
Files changed (1) hide show
  1. static/chat_digital.js +0 -17
static/chat_digital.js CHANGED
@@ -110,20 +110,3 @@ if (chatInputEl) {
110
  });
111
 
112
  }
113
- // === Insert welcome message inside chat on load ===
114
- document.addEventListener("DOMContentLoaded", () => {
115
- const chatBox = document.getElementById("chat-box");
116
-
117
- // prevent duplicate welcome message
118
- if (!chatBox.querySelector(".bot-welcome")) {
119
-
120
- const welcomeBubble = document.createElement("div");
121
- welcomeBubble.className = "bot-message bot-welcome";
122
- welcomeBubble.textContent = "👋 Welcome! How can I help you today?";
123
-
124
- chatBox.appendChild(welcomeBubble);
125
-
126
- // Auto-scroll to bottom if container height is dynamic
127
- chatBox.scrollTop = chatBox.scrollHeight;
128
- }
129
- });
 
110
  });
111
 
112
  }