moved first pretext to html
This commit is contained in:
parent
c0d750acfb
commit
fead90a29e
@ -10,6 +10,7 @@
|
||||
<body>
|
||||
<div id="cursor"> </div>
|
||||
<div id="textbox">
|
||||
root@baipyr.us:~#
|
||||
<a id="current"></a>
|
||||
<input type="text" id="input">
|
||||
</div>
|
||||
|
@ -4,7 +4,6 @@ let cursorPosition = 0;
|
||||
let cursorYOffset = 0;
|
||||
|
||||
const tbDiv = document.getElementById("textbox");
|
||||
tbDiv.innerHTML = pretext+tbDiv.innerHTML;
|
||||
const length = tbDiv.innerText.length+1;
|
||||
startPosition = length;
|
||||
cursorPosition = length;
|
||||
|
Loading…
Reference in New Issue
Block a user