diff options
author | Linus Lee <linus@thesephist.com> | 2020-10-24 13:07:19 -0400 |
---|---|---|
committer | Linus Lee <linus@thesephist.com> | 2020-10-24 13:07:19 -0400 |
commit | 25bc958e04878195347d27ecb7fe074dc3895911 (patch) | |
tree | 07cde868afd9a1ae3fb0b183a63796554b813d31 /static/js/main.js | |
parent | 2435a7cd5eb88ccd0dedd05ce66881c44e523bd4 (diff) | |
download | tabloid-fake-closure-25bc958e04878195347d27ecb7fe074dc3895911.tar.gz tabloid-fake-closure-25bc958e04878195347d27ecb7fe074dc3895911.zip |
To make Tabloid truly Turing complete, add a way for Tabloid to take input
Diffstat (limited to 'static/js/main.js')
-rw-r--r-- | static/js/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/static/js/main.js b/static/js/main.js index 7cd8e26..d09c3c0 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -102,6 +102,9 @@ class Editor extends Component { this.output += s.toString().toUpperCase() + '!\n'; this.render(); }, + input: s => { + return prompt(s); + }, }); env.run(nodes); } catch (e) { |