|
208 | 208 | // Add ability to just show inputs |
209 | 209 | // Add ability to break inputs into N groups, and just show group #N at the moment |
210 | 210 | // If adding that ability, make sure it doesn't break TAB feature |
211 | | - // Put alert on Clear |
212 | 211 | // If token reference is all upper case or init case, process token value to match |
213 | 212 | // |
214 | 213 |
|
|
246 | 245 | } |
247 | 246 |
|
248 | 247 | const handleClear = () => { |
249 | | - setInputs(defaultInputs); |
250 | | - localStorage.removeItem("inputs"); |
| 248 | + if(confirm("CLEAR ENTIRE FORM? This cannot be undone!")) { |
| 249 | + setInputs(defaultInputs); |
| 250 | + localStorage.removeItem("inputs"); |
| 251 | + } |
251 | 252 | }; |
252 | 253 |
|
253 | 254 | const handlePrint = () => { |
|
316 | 317 | The [stockings:clothing, plural] were [moving verb, past-tense] by the [chimney:noun, something you can crawl through] with care, |
317 | 318 | In hopes that $Nick [adverb] would be there; |
318 | 319 | The [group of people] were nestled all [good adjective] in their [beds:furniture, plural]; |
319 | | - While visions of [esoteric food] [intransitive verb related to $heads, past-tense] in their [heads:noun, plural, rhymes with $beds]; |
| 320 | + While visions of [esoteric food] danced in their [heads:noun, plural, rhymes with $beds]; |
320 | 321 | And [person, female] in her $stockings, and I in my [cap:article of clothing], |
321 | 322 | Had just settled our heads for $@article [adjective, describing $nap] winter's [nap:noun, rhymes with $cap], |
322 | 323 | When out on the [landscape feature] there arose such a [clatter:noise], |
@@ -739,8 +740,7 @@ <h2>Player {playerNumber}'s Inputs</h2> |
739 | 740 | {data.map((index) => { |
740 | 741 | const value = inputs[index] || ''; |
741 | 742 | const placeholder = placeholders[index] || `#${index}`; |
742 | | - return ( |
743 | | - <div key={index} className="subset"> |
| 743 | + return (<div key={index} className="subset"> |
744 | 744 | <input |
745 | 745 | value={value || ""} |
746 | 746 | placeholder={placeholder} |
|
0 commit comments