From 44384cf8e219b40d8f204d2f8714cacc3690070a Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 26 Apr 2022 21:08:06 -0700 Subject: web: expand on help text --- web/dartboat_wasm.c | 2 +- web/static/dartboat.js | 4 ---- web/static/index.html | 6 +++++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c index bc384dc..4c9973b 100644 --- a/web/dartboat_wasm.c +++ b/web/dartboat_wasm.c @@ -550,7 +550,7 @@ void prompt_handle_clear() if (pm == PM_NONE) return; - EM_ASM(promptClear()); + EM_ASM({setPromptInput($0)}, ""); prompt_handle_on_change(); } diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 371af93..428ff85 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -34,10 +34,6 @@ function promptGet() { return str; } -function promptClear() { - document.getElementById('prompt-input').textContent = ''; -} - function setPromptActive() { document.getElementById('prompt').classList.add('active') } diff --git a/web/static/index.html b/web/static/index.html index b7f915e..2af1f35 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -67,11 +67,15 @@