Sarah Ciston
commited on
Commit
·
e19f5d0
1
Parent(s):
96990ed
wrapped test in function
Browse files
sketch.js
CHANGED
@@ -72,7 +72,6 @@ new p5(function(p5){
|
|
72 |
fillA.size(200);
|
73 |
fillA.elt.style.fontSize = "15px";
|
74 |
fillAResult = fillA.value()
|
75 |
-
fillA.changed()
|
76 |
|
77 |
fillB = p5.createInput("");
|
78 |
fillB.position(0, 270);
|
@@ -98,16 +97,16 @@ new p5(function(p5){
|
|
98 |
promptButton = p5.createButton("GO").position(0, 340);
|
99 |
promptButton.position(0, 340);
|
100 |
promptButton.elt.style.fontSize = "15px";
|
101 |
-
promptButton.mousePressed(
|
102 |
|
103 |
// describe(``)
|
104 |
// TO-DO alt-text description
|
105 |
}
|
106 |
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
|
112 |
// var modelResult = promptButton.mousePressed(runModel) = function(){
|
113 |
// // listens for the button to be clicked
|
|
|
72 |
fillA.size(200);
|
73 |
fillA.elt.style.fontSize = "15px";
|
74 |
fillAResult = fillA.value()
|
|
|
75 |
|
76 |
fillB = p5.createInput("");
|
77 |
fillB.position(0, 270);
|
|
|
97 |
promptButton = p5.createButton("GO").position(0, 340);
|
98 |
promptButton.position(0, 340);
|
99 |
promptButton.elt.style.fontSize = "15px";
|
100 |
+
promptButton.mousePressed(test)
|
101 |
|
102 |
// describe(``)
|
103 |
// TO-DO alt-text description
|
104 |
}
|
105 |
|
106 |
+
function test(){
|
107 |
+
console.log('did test')
|
108 |
+
console.log(promptInput.value(), fillAResult.value(), fillBResult.value(), fillCResult.value())
|
109 |
+
}
|
110 |
|
111 |
// var modelResult = promptButton.mousePressed(runModel) = function(){
|
112 |
// // listens for the button to be clicked
|