Hopefully?
This commit is contained in:
@@ -150,6 +150,6 @@
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<script src="/ui/script.js"></script>
|
||||
<script src="/ui/script.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -66,7 +66,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
isFetching = true;
|
||||
status.textContent = "Thinking...";
|
||||
statusIndicator.classList.add("fetching");
|
||||
if (statusIndicator) statusIndicator.classList.add("fetching");
|
||||
|
||||
const n = parseInt(nGramSelect.value);
|
||||
const temperature = parseFloat(tempInput.value);
|
||||
@@ -95,7 +95,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
} finally {
|
||||
isFetching = false;
|
||||
status.textContent = "Idle";
|
||||
statusIndicator.classList.remove("fetching");
|
||||
if (statusIndicator) statusIndicator.classList.remove("fetching");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -167,10 +167,12 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
}
|
||||
});
|
||||
|
||||
if (generateBtn) {
|
||||
generateBtn.addEventListener("click", () => {
|
||||
fetchPrediction(editor.value, 50);
|
||||
closeSidebarOnMobile();
|
||||
});
|
||||
}
|
||||
|
||||
// Sync scroll
|
||||
editor.addEventListener("scroll", () => {
|
||||
|
||||
Reference in New Issue
Block a user