BraydenMoore commited on
Commit
abda6a4
1 Parent(s): 55b8464

Predict on page load

Browse files
Files changed (1) hide show
  1. Templates/index.html +3 -1
Templates/index.html CHANGED
@@ -529,7 +529,9 @@
529
 
530
  document.getElementById('submitButton').addEventListener('click', submitData);
531
 
532
- submitData();
 
 
533
 
534
  document.addEventListener('keydown', function(event) {
535
  if (event.keyCode === 13) {
 
529
 
530
  document.getElementById('submitButton').addEventListener('click', submitData);
531
 
532
+ document.addEventListener('DOMContentLoaded', function() {
533
+ submitData();
534
+ }, false);
535
 
536
  document.addEventListener('keydown', function(event) {
537
  if (event.keyCode === 13) {