mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
Merge pull request #44 from senju1337/fix/OPS-86
fix/OPS-86: fix Java Script
This commit is contained in:
commit
88f391cdd0
1 changed files with 1 additions and 3 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue