Skip to content

Commit

Permalink
a little js issue solved
Browse files Browse the repository at this point in the history
  • Loading branch information
subh05sus committed Dec 20, 2023
1 parent b2c77bd commit 209c71e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ async function generateContent() {
return;
}
if (query.includes("thala") || query.includes("dhoni")) {
responseContainer.textContent = ""
result_preset = `Truly Thala For A Reason`;
for (let i = 0; i < result_preset.length; i++) {
responseContainer.textContent = result_preset[0]
for (let i = 1; i < result_preset.length; i++) {
await sleep(30); // Adjust the typing speed (milliseconds)
responseContainer.textContent += result_preset[i];
}
Expand All @@ -39,9 +39,9 @@ async function generateContent() {
return;
}
if (query.length === 7) {
responseContainer.textContent = ""
let result_preset = `${query} has exactly 7 letters! Thala Confirmed`;
for (let i = 0; i < result_preset.length; i++) {
responseContainer.textContent = result_preset[0]
for (let i = 1; i < result_preset.length; i++) {
await sleep(30); // Adjust the typing speed (milliseconds)
responseContainer.textContent += result_preset[i];
}
Expand Down

0 comments on commit 209c71e

Please sign in to comment.