2023-10-02 11:37:22 +00:00
|
|
|
import * as Terminal from "./terminal.js";
|
|
|
|
import * as Visual from "./visual.js";
|
2023-10-01 16:17:05 +00:00
|
|
|
|
2023-09-30 01:34:43 +00:00
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
2023-10-02 11:37:22 +00:00
|
|
|
Visual.bind();
|
2023-10-02 11:40:48 +00:00
|
|
|
Terminal.start();
|
2023-10-02 12:56:26 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
});
|
2023-09-30 01:34:43 +00:00
|
|
|
});
|
|
|
|
|