mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
feat: Fix java script and remove redundant input length enforcement in js
Refs: OPS-86
This commit is contained in:
parent
2c7394edfa
commit
569b83a647
1 changed files with 1 additions and 3 deletions
|
|
@ -40,9 +40,6 @@ document.getElementById("submit-btn").addEventListener("click", function() {
|
||||||
if (userInput.trim() === "") {
|
if (userInput.trim() === "") {
|
||||||
responseText.textContent = "Please enter a prompt!";
|
responseText.textContent = "Please enter a prompt!";
|
||||||
}
|
}
|
||||||
else if (userInput.length > 100) {
|
|
||||||
responseText.textContent = "Input must under 100 characters long!";
|
|
||||||
}
|
|
||||||
else if (userInput.trim() === "amogus") {
|
else if (userInput.trim() === "amogus") {
|
||||||
responseText.textContent = "🤖 AI is thinking...";
|
responseText.textContent = "🤖 AI is thinking...";
|
||||||
responseBox.classList.remove("opacity-0");
|
responseBox.classList.remove("opacity-0");
|
||||||
|
|
@ -73,4 +70,5 @@ document.getElementById("submit-btn").addEventListener("click", function() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue