Spaces:
Running
Running
sarahciston
commited on
Commit
•
e37c55c
1
Parent(s):
514097e
restore button action
Browse files
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 |
-
|
90 |
}
|
91 |
|
92 |
async function displayResults(){
|
93 |
-
console.log('displayed
|
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 |
|