added server indicator and connect button to header

This commit is contained in:
mellodoot 2023-10-02 13:56:26 +01:00
parent f8aabee1cc
commit 221e5b9147
4 changed files with 60 additions and 20 deletions

View file

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