added server indicator and connect button to header
This commit is contained in:
parent
f8aabee1cc
commit
221e5b9147
4 changed files with 60 additions and 20 deletions
|
@ -4,5 +4,11 @@ import * as Visual from "./visual.js";
|
|||
document.addEventListener("DOMContentLoaded", () => {
|
||||
Visual.bind();
|
||||
Terminal.start();
|
||||
|
||||
document.getElementById("connect").addEventListener("click", () => {
|
||||
var new_server = prompt("Enter the address of the server you would like to connect to:");
|
||||
if (!new_server) return;
|
||||
Terminal.connect(new_server);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue