From e0745d775730a521270c6881caba4dd9eb0b3f69 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Fri, 19 Mar 2021 22:54:10 -0400 Subject: [PATCH] remove wiki button from hacking mission, fix jsx class not being className --- src/Missions.js | 10 ---------- src/engine.jsx | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/Missions.js b/src/Missions.js index e702ff579..062b46254 100644 --- a/src/Missions.js +++ b/src/Missions.js @@ -305,15 +305,6 @@ HackingMission.prototype.createPageDom = function() { return false; }); - var wikiGuideBtn = document.createElement("a"); - wikiGuideBtn.innerText = "Wiki Guide"; - wikiGuideBtn.classList.add("a-link-button"); - wikiGuideBtn.style.display = "inline-block"; - wikiGuideBtn.classList.add("hack-mission-header-element"); - wikiGuideBtn.target = "_blank"; - // TODO Add link to wiki page wikiGuideBtn.href = - - // Start button will get replaced with forfeit when game is started var startBtn = document.createElement("a"); startBtn.innerHTML = "Start"; @@ -490,7 +481,6 @@ HackingMission.prototype.createPageDom = function() { container.appendChild(headerText); container.appendChild(inGameGuideBtn); - container.appendChild(wikiGuideBtn); container.appendChild(startBtn); container.appendChild(forfeitMission); container.appendChild(timer); diff --git a/src/engine.jsx b/src/engine.jsx index 23f89bdfc..bffaec2bd 100644 --- a/src/engine.jsx +++ b/src/engine.jsx @@ -1151,8 +1151,8 @@ const Engine = { const timeOfflineString = convertTimeMsToTimeElapsedString(time); dialogBoxCreate(<> Offline for {timeOfflineString}. While you were offline, your scripts generated - {numeralWrapper.formatMoney(offlineProductionFromScripts)} - and your Hacknet Nodes generated {hacknetProdInfo}. + {numeralWrapper.formatMoney(offlineProductionFromScripts)} + and your Hacknet Nodes generated {hacknetProdInfo}. ); // Close main menu accordions for loaded game var visibleMenuTabs = [terminal, createScript, activeScripts, stats,