Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
0xthecableguy committed Nov 13, 2024
1 parent 75e1248 commit 5c8a344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Чат с ботом</title>
<title>The coolest chat-interface ever!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
Expand All @@ -13,7 +13,7 @@ <h1>Чат с ботом</h1>
</div>

<div id="inputContainer">
<input type="text" id="userMessage" placeholder="Введите сообщение:">
<input type="text" id="userMessage" placeholder="Попизди мне тут:">
<button id="sendButton">Send</button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ document.getElementById("sendButton").addEventListener("click", function() {

// Имитируем ответ бота
setTimeout(() => {
const botResponse = "Это ответ бота на ваш запрос: " + userMessage;
const botResponse = "Ответ: " + userMessage;
addMessageToChat("bot", botResponse);
}, 1000);
}
Expand Down

0 comments on commit 5c8a344

Please sign in to comment.