kalk_web: 'clear' command

This commit is contained in:
bakk 2021-05-23 18:46:13 +02:00
parent e40428016f
commit eeb1e1e5a4

View File

@ -77,6 +77,10 @@
output = `<a style="color: ${linkcolor}"
href="https://kalk.netlify.app/#usage"
target="blank">Link to usage guide</a>`;
} else if (input.trim() == "clear") {
outputLines = [];
target.innerHTML = "";
return;
} else {
const [result, success] = calculate(
kalk,