feat: Fix java script and remove redundant input length enforcement in js

Refs: OPS-86
This commit is contained in:
0xjrx 2025-03-23 17:17:40 +01:00
parent 2c7394edfa
commit 569b83a647
No known key found for this signature in database
GPG key ID: 61C53033867D0271

View file

@ -40,9 +40,6 @@ document.getElementById("submit-btn").addEventListener("click", function() {
if (userInput.trim() === "") {
responseText.textContent = "Please enter a prompt!";
}
else if (userInput.length > 100) {
responseText.textContent = "Input must under 100 characters long!";
}
else if (userInput.trim() === "amogus") {
responseText.textContent = "🤖 AI is thinking...";
responseBox.classList.remove("opacity-0");
@ -73,4 +70,5 @@ document.getElementById("submit-btn").addEventListener("click", function() {
});
}
});
</script>
{% endblock %}