time to get some sleep, graph is in stylishGraph.js and the crime monitor is in test3.js
This commit is contained in:
15
Mizzajl/home/ChangeBackground.js
Normal file
15
Mizzajl/home/ChangeBackground.js
Normal 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.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user