FIXED: typo

`<div id="terminal"></div>` wasn't used, instead, a new one was created and used since getElementById('#terminal') returned null.
This commit is contained in:
Nicolas Ramz
2017-03-09 00:47:29 +01:00
committed by GitHub
parent ea9376019c
commit d8f8b060cb
+1 -1
View File
@@ -86,7 +86,7 @@ To start using xterm.js on your browser, add the `xterm.js` and `xterm.css` to t
<div id="terminal"></div>
<script>
var term = new Terminal();
term.open(document.getElementById('#terminal'));
term.open(document.getElementById('terminal'));
term.write('Hello from \033[1;3;31mxterm.js\033[0m $ ')
</script>
</body>