Spaces:
Running
Running
change global variables to var from let
Browse files
sketch.js
CHANGED
|
@@ -7,12 +7,12 @@ env.allowLocalModels = false;
|
|
| 7 |
|
| 8 |
// GLOBAL VARIABLES
|
| 9 |
|
| 10 |
-
|
| 11 |
// let PREPROMPT = `Please complete the phrase and fill in any [MASK]: `
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
// a list for all the variable inputs, e.g. ["woman", "man", "non-binary person"]
|
| 17 |
|
| 18 |
|
|
|
|
| 7 |
|
| 8 |
// GLOBAL VARIABLES
|
| 9 |
|
| 10 |
+
var PREPROMPT = `Please continue the story, and fill any [MASK] with your own words:`
|
| 11 |
// let PREPROMPT = `Please complete the phrase and fill in any [MASK]: `
|
| 12 |
+
var PROMPT_INPUT = `The [BLANK] has a job as a [MASK] but...` // a field for writing or changing a text value
|
| 13 |
+
var pField // an html element for the prompt
|
| 14 |
+
var outText // an html element for the results
|
| 15 |
+
var blanksArray = []
|
| 16 |
// a list for all the variable inputs, e.g. ["woman", "man", "non-binary person"]
|
| 17 |
|
| 18 |
|