From fc5e4745d64db38c74dbd79d1ce6d5f3e74f23c7 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Sun, 26 Nov 2017 20:00:22 +0100 Subject: Add JavaScript warning --- 18/script.js | 2 ++ 1 file changed, 2 insertions(+) (limited to '18/script.js') diff --git a/18/script.js b/18/script.js index 0c9be11..61a5afc 100644 --- a/18/script.js +++ b/18/script.js @@ -28,6 +28,8 @@ function terminalType(prefix, text) { return wait(500).then(() => type(text, line)); } +document.querySelector('.terminal').textContent = ''; + Promise.resolve() .then(() => terminalType('noah@loomans ~ $ ', 'cd Code/calculate_age')) .then(() => terminalType('noah@loomans ~/Code/calculate_age $ ', 'gcc calculate_age.c -o calculate_age')) -- cgit v1.1