moved first pretext to html

This commit is contained in:
Baipyrus 2023-01-12 14:44:22 +01:00
parent c0d750acfb
commit fead90a29e
2 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,7 @@
<body>
<div id="cursor">&nbsp;</div>
<div id="textbox">
root@baipyr.us:~#
<a id="current"></a>
<input type="text" id="input">
</div>

View File

@ -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;