Add bad coders webring, update kumaos.

This commit is contained in:
天クマ 2026-07-07 16:42:07 -03:00
commit dc0b9b14cb
17 changed files with 401 additions and 155 deletions

View file

@ -0,0 +1,33 @@
import { getScreenRoot, getApplications, Process } from "../kernel.mjs";
import { showNotification } from "../../scripts/notification.js";
export function notify(title, text, time) {
showNotification(title, text, time);
}
function runApp(name) {
let launched = false;
getApplications().forEach(app => {
if (app.name == name) {
app.bootstrap();
launched = true;
}
})
if (!launched) alert("Not found.");
}
export default function createShell(p) {
const bar = document.createElement('div');
bar.classList.add("kumosBar");
const run = document.createElement('input');
const runButton = document.createElement('button');
run.type = "text";
runButton.innerText = "Run";
runButton.id = "kumosBarRunButton"
runButton.addEventListener('click', () => runApp(run.value));
bar.appendChild(run);
bar.appendChild(runButton);
getScreenRoot().appendChild(bar);
}