time to get some sleep, graph is in stylishGraph.js and the crime monitor is in test3.js

This commit is contained in:
2024-10-19 04:06:22 +02:00
parent e4bf947531
commit 6189db539a
19 changed files with 465 additions and 590 deletions

View File

@@ -0,0 +1,15 @@
/** @param {NS} ns */
export async function main(ns) {
const doc = eval("document");
// Check if the background div already exists
let backgroundDiv = doc.getElementById("terminal-background");
if (backgroundDiv) {
// Change the background image
backgroundDiv.style.backgroundImage = "url('https://example.com/new-image.jpg')"; // Replace with your new image URL
ns.tprint("Background image changed successfully.");
} else {
ns.tprint("No background found to change.");
}
}