mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
using classList instead of setAttributes
This commit is contained in:
parent
9dc96c51cb
commit
8f30a2246c
@ -280,10 +280,12 @@ function displayLocationContent() {
|
|||||||
purchase512gb.innerHTML = "Purchase 512GB Server - $" + formatNumber(512*CONSTANTS.BaseCostFor1GBOfRamServer, 2);
|
purchase512gb.innerHTML = "Purchase 512GB Server - $" + formatNumber(512*CONSTANTS.BaseCostFor1GBOfRamServer, 2);
|
||||||
purchase1tb.innerHTML = "Purchase 1TB Server - $" + formatNumber(1024*CONSTANTS.BaseCostFor1GBOfRamServer, 2);
|
purchase1tb.innerHTML = "Purchase 1TB Server - $" + formatNumber(1024*CONSTANTS.BaseCostFor1GBOfRamServer, 2);
|
||||||
if (!SpecialServerIps.hasOwnProperty("Darkweb Server")) {
|
if (!SpecialServerIps.hasOwnProperty("Darkweb Server")) {
|
||||||
purchaseTor.setAttribute("class", "a-link-button");
|
purchaseTor.classList.add("a-link-button");
|
||||||
|
purchaseTor.classList.remove("a-link-button-bought");
|
||||||
purchaseTor.innerHTML = "Purchase TOR Router - $" + formatNumber(CONSTANTS.TorRouterCost, 2);
|
purchaseTor.innerHTML = "Purchase TOR Router - $" + formatNumber(CONSTANTS.TorRouterCost, 2);
|
||||||
} else {
|
} else {
|
||||||
purchaseTor.setAttribute("class", "a-link-button-bought");
|
purchaseTor.classList.remove("a-link-button");
|
||||||
|
purchaseTor.classList.add("a-link-button-bought");
|
||||||
purchaseTor.innerHTML = "TOR Router - Purchased";
|
purchaseTor.innerHTML = "TOR Router - Purchased";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user