diff --git a/gst.html b/gst.html index 17cf04c..a2a1fbf 100644 --- a/gst.html +++ b/gst.html @@ -54,6 +54,8 @@

+ +

diff --git a/gst.js b/gst.js index d596f7d..3b23197 100644 --- a/gst.js +++ b/gst.js @@ -42,14 +42,14 @@ export async function btnClick(typ) { // 0 -> Desktop // 1 -> Laptop // 2 -> Mobile/Embedded - - console.log("Button clicked: typ: " + typ + "cpu type: " + currentCpu.type); + // 3 -> Server let btnDesktop = document.getElementById("btnDesktop"); let btnLaptop = document.getElementById("btnLaptop"); let btnMobile = document.getElementById("btnMobile"); + let btnServer = document.getElementById("btnServer"); - let btns = [btnDesktop, btnLaptop, btnMobile]; + let btns = [btnDesktop, btnLaptop, btnMobile, btnServer]; switch (typ) { case 0: @@ -61,6 +61,9 @@ export async function btnClick(typ) { case 2: btnMobile.style.backgroundColor = "#FF4444"; break; + case 3: + btnServer.style.backgroundColor = "#FF4444"; + break; } switch (currentCpu.type) { @@ -73,6 +76,9 @@ export async function btnClick(typ) { case "Mobile/Embedded": btnMobile.style.backgroundColor = "lightgreen"; break; + case "Server": + btnServer.style.backgroundColor = "lightgreen"; + break; } await delay(2000);