Spaces:
Running
Running
sarahciston
commited on
add addField button
Browse files
sketch.js
CHANGED
@@ -173,10 +173,17 @@ new p5(function (p5){
|
|
173 |
}
|
174 |
|
175 |
function makeButtons(){
|
|
|
176 |
const submitButton = p5.createButton("SUBMIT")
|
177 |
submitButton.size(170)
|
178 |
submitButton.class('submit')
|
179 |
submitButton.mousePressed(displayResults)
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
|
181 |
// also make results placeholder
|
182 |
const outHeader = p5.createElement('h3',"Results")
|
|
|
173 |
}
|
174 |
|
175 |
function makeButtons(){
|
176 |
+
// press to run model
|
177 |
const submitButton = p5.createButton("SUBMIT")
|
178 |
submitButton.size(170)
|
179 |
submitButton.class('submit')
|
180 |
submitButton.mousePressed(displayResults)
|
181 |
+
|
182 |
+
// press to add more blanks to fill in
|
183 |
+
const addButton = p5.createButton("more blanks")
|
184 |
+
addButton.size(170)
|
185 |
+
// addButton.position(220,500)
|
186 |
+
addButton.mousePressed(addField)
|
187 |
|
188 |
// also make results placeholder
|
189 |
const outHeader = p5.createElement('h3',"Results")
|