diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-11-26 20:00:22 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-11-26 20:01:23 +0100 |
commit | fc5e4745d64db38c74dbd79d1ce6d5f3e74f23c7 (patch) | |
tree | 9577be67e87d59ea9a782416e226f25c43c37e6b /18 | |
parent | 834918feb35a9bb6a693228e9a8f6c874bd232c2 (diff) |
Add JavaScript warning
Diffstat (limited to '18')
-rw-r--r-- | 18/index.html | 2 | ||||
-rw-r--r-- | 18/script.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/18/index.html b/18/index.html index 16ee2ce..366cafc 100644 --- a/18/index.html +++ b/18/index.html @@ -24,7 +24,7 @@ <div class="wrapper"> <div class="start"> <div class="face"></div> - <div class="terminal"></div> + <div class="terminal">Voor deze pagina is JavaScript vereist.</div> <i class="fa fa-angle-down down-arrow" aria-hidden="true"></i> </div> </div> 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')) |