OpenTerminal/public/scripts/main.js

15 lines
404 B
JavaScript
Raw Normal View History

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