mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +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);
|
||||
purchase1tb.innerHTML = "Purchase 1TB Server - $" + formatNumber(1024*CONSTANTS.BaseCostFor1GBOfRamServer, 2);
|
||||
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);
|
||||
} 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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user