Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
34dc9be
1
Parent(s):
abda6a4
Predict on page load
Browse files- Templates/index.html +2 -4
Templates/index.html
CHANGED
@@ -388,8 +388,6 @@
|
|
388 |
});
|
389 |
}
|
390 |
|
391 |
-
fetchGames();
|
392 |
-
|
393 |
|
394 |
function submitData() {
|
395 |
const predictButton = document.getElementById('submitButton');
|
@@ -529,9 +527,9 @@
|
|
529 |
|
530 |
document.getElementById('submitButton').addEventListener('click', submitData);
|
531 |
|
532 |
-
|
533 |
submitData();
|
534 |
-
}
|
535 |
|
536 |
document.addEventListener('keydown', function(event) {
|
537 |
if (event.keyCode === 13) {
|
|
|
388 |
});
|
389 |
}
|
390 |
|
|
|
|
|
391 |
|
392 |
function submitData() {
|
393 |
const predictButton = document.getElementById('submitButton');
|
|
|
527 |
|
528 |
document.getElementById('submitButton').addEventListener('click', submitData);
|
529 |
|
530 |
+
fetchGames().then(() => {
|
531 |
submitData();
|
532 |
+
});
|
533 |
|
534 |
document.addEventListener('keydown', function(event) {
|
535 |
if (event.keyCode === 13) {
|