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