17 lines
466 B
TypeScript
17 lines
466 B
TypeScript
import "~/styles/globals.css";
|
|
import Jet from "~/assets/Jet.txt?ansi";
|
|
|
|
document.getElementById("ansi-art")!.innerHTML = Jet;
|
|
|
|
import("cgol")
|
|
.then(async (cgolModule) => {
|
|
if (typeof cgolModule.default === "function") {
|
|
await cgolModule.default();
|
|
}
|
|
if (typeof cgolModule.start === "function") {
|
|
cgolModule.start();
|
|
}
|
|
})
|
|
.catch((error: unknown) => {
|
|
console.error("Failed to initialize CGOL WebAssembly module:", error);
|
|
});
|