Spaces:
Running
Running
sarahciston
commited on
Commit
•
7171e66
1
Parent(s):
9a02618
html replace not append
Browse files
index.js
CHANGED
@@ -88,6 +88,7 @@ new p5(function (p5){
|
|
88 |
submitButton.size(170)
|
89 |
submitButton.class('submit')
|
90 |
submitButton.mousePressed(displayResults)
|
|
|
91 |
}
|
92 |
|
93 |
async function displayResults(){
|
@@ -103,9 +104,9 @@ new p5(function (p5){
|
|
103 |
console.log(outs)
|
104 |
|
105 |
// text = str(outs)
|
106 |
-
|
107 |
let outText = p5.createP('')
|
108 |
-
await outText.html(outs)
|
109 |
}
|
110 |
|
111 |
// async function makeOutputDisplay(){
|
|
|
88 |
submitButton.size(170)
|
89 |
submitButton.class('submit')
|
90 |
submitButton.mousePressed(displayResults)
|
91 |
+
let outHeader = p5.createElement('h3',"Results")
|
92 |
}
|
93 |
|
94 |
async function displayResults(){
|
|
|
104 |
console.log(outs)
|
105 |
|
106 |
// text = str(outs)
|
107 |
+
|
108 |
let outText = p5.createP('')
|
109 |
+
await outText.html(outs, false)
|
110 |
}
|
111 |
|
112 |
// async function makeOutputDisplay(){
|