var app = document.getElementById('type');
let scroll = () => {
document.getElementById("type").scrollIntoView({behavior: "smooth", block: "end", inline: "nearest"});
}
var typewriter = new Typewriter(document.getElementById('type'), {
loop: false,
cursor: "_",
delay: 120,
// onCreateTextNode: scroll,
});
typewriter
.typeString('name')
.pasteString('
')
.pauseFor(2000)
.pasteString('chris edwards')
.pasteString('
')
.pasteString("user@localhost:")
.typeString(' whoami')
.pauseFor(2000)
.pasteString('
')
.pasteString('computer science student and enthusist')
.pasteString('
')
.pasteString("user@localhost:")
.typeString(' why does this exist?')
.pauseFor(2000)
.pasteString('
')
.callFunction(scroll)
.pasteString('this is a collection of games and utilities that i wrote on my learning path')
.pasteString('
')
.pasteString("user@localhost:")
.callFunction(scroll)
.typeString(' ls')
.pauseFor(2000)
.pasteString('
')
.callFunction(scroll)
.pasteString('resume yatzee tic tac touch
')
.callFunction(scroll)
.pasteString('mtg life counter youtube downloader binary to ascii converter')
.pasteString('
')
.callFunction(scroll)
.pasteString("user@localhost:")
.start();
// .pasteString("user@localhost:") Computer Science Student and Enthusist