From 6b2dbf24503991ec47710fde054341814d11af03 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 21 Dec 2022 15:31:31 -0800 Subject: [PATCH] remove resource bar from instance article --- index.html | 19 ------------------- scripts/elements.js | 12 ------------ 2 files changed, 31 deletions(-) diff --git a/index.html b/index.html index 0b6c31b..93f38ff 100644 --- a/index.html +++ b/index.html @@ -25,25 +25,6 @@
-
-
- instance processor cores -

-
-
- instance memory -

-
-
- instance swap space -

-
-
- instance disk space -

-
-
-
change instance configuration diff --git a/scripts/elements.js b/scripts/elements.js index c20cc6d..a52691b 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -48,18 +48,6 @@ class Instance extends HTMLElement { nodeParagraph.innerText = data.node.name; this.node = data.node.name; - let resourceCPU = this.shadowElement.querySelector("#resource-cpu"); - resourceCPU.innerText = data.cpus; - - let resourceRAM = this.shadowElement.querySelector("#resource-ram"); - resourceRAM.innerText = (data.maxmem / 1073741824).toFixed(3); - - let resourceSWAP = this.shadowElement.querySelector("#resource-swap"); - resourceSWAP.innerText = (data.maxswap / 1073741824).toFixed(3); - - let resourceDISK = this.shadowElement.querySelector("#resource-disk"); - resourceDISK.innerText = (data.maxdisk / 1073741824).toFixed(3); - let powerButton = this.shadowElement.querySelector("#power-btn"); powerButton.src = data.status === "running" ? "images/actions/stop.svg" : "images/actions/start.svg"; powerButton.alt = data.status === "running" ? "shutdown instance" : "start instance";