From 25bc958e04878195347d27ecb7fe074dc3895911 Mon Sep 17 00:00:00 2001 From: Linus Lee Date: Sat, 24 Oct 2020 13:07:19 -0400 Subject: To make Tabloid truly Turing complete, add a way for Tabloid to take input --- static/js/main.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'static/js/main.js') 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) { -- cgit v1.2.3-70-g09d2