Skip to content

Commit 3ec6c56

Browse files
committed
Update span dynamically
1 parent 2705cdd commit 3ec6c56

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

js/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
console.log("Welcome to the shell!")
22
window.onload = function () {
3+
this.username = "username"
4+
this.hostname = "hostname"
35
document.getElementById("shellinput").value = "";
6+
document.getElementById("uname-hname").innerText = `${username}@${hostname}`
47
}
58

69
const commands = [

0 commit comments

Comments
 (0)