sarahciston commited on
Commit
e37c55c
1 Parent(s): 514097e

restore button action

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -86,11 +86,11 @@ new p5(function (p5){
86
  let submitButton = p5.createButton("SUBMIT")
87
  submitButton.size(170)
88
  submitButton.class('submit')
89
- // submitButton.mousePressed()
90
  }
91
 
92
  async function displayResults(){
93
- console.log('displayed or pressed')
94
 
95
  // PROMPT_INPUT = pField.value()
96
 
 
86
  let submitButton = p5.createButton("SUBMIT")
87
  submitButton.size(170)
88
  submitButton.class('submit')
89
+ submitButton.mousePressed(displayResults)
90
  }
91
 
92
  async function displayResults(){
93
+ console.log('displayed, pressed')
94
 
95
  // PROMPT_INPUT = pField.value()
96