From 583862995cbe186c4b67170fb67ab87e5944b225 Mon Sep 17 00:00:00 2001 From: Kotzu Date: Mon, 30 Mar 2026 02:20:03 +0300 Subject: [PATCH] Update nui_simulator.html --- docs/nui_simulator.html | 82 ++++++++++++++++++++++++++++------------- 1 file changed, 57 insertions(+), 25 deletions(-) diff --git a/docs/nui_simulator.html b/docs/nui_simulator.html index 97cc60a9..85f28097 100644 --- a/docs/nui_simulator.html +++ b/docs/nui_simulator.html @@ -1,10 +1,12 @@ + Red Valley — NUI Simulator - + +
@@ -613,13 +638,19 @@

💼 Job Center — Apply

- - - - - + + + + + - +
@@ -670,7 +701,7 @@ // Render sidebar function renderList(filter = "") { const list = document.getElementById("nuiList"); - const filtered = nuiResources.filter(r => + const filtered = nuiResources.filter(r => r.name.toLowerCase().includes(filter.toLowerCase()) || r.path.toLowerCase().includes(filter.toLowerCase()) ); @@ -697,7 +728,7 @@ activeResource = name; const frame = document.getElementById("previewFrame"); const empty = document.getElementById("emptyState"); - + if (empty) empty.remove(); // Remove existing iframe @@ -732,7 +763,7 @@ const [w, h] = document.getElementById("resolutionSelect").value.split("x").map(Number); const frame = document.getElementById("previewFrame"); const container = document.querySelector(".preview-container"); - + frame.style.width = w + "px"; frame.style.height = h + "px"; @@ -747,7 +778,7 @@ // Event listeners document.getElementById("searchInput").addEventListener("input", e => renderList(e.target.value)); - + document.getElementById("btnRefresh").addEventListener("click", () => { const iframe = document.getElementById("nuiIframe"); if (iframe) iframe.src = iframe.src; @@ -839,4 +870,5 @@ setTimeout(updateResolution, 100); - + + \ No newline at end of file