From 93d2a09aab5f75857eeba5ca7c0bc276dd04f5f0 Mon Sep 17 00:00:00 2001 From: danielyxie Date: Mon, 10 Sep 2018 16:38:18 -0500 Subject: [PATCH] Migrating hydroflame's killall loading screen changes to new build files --- css/loader.scss | 17 +++++++++++++++++ index.html | 9 +++++---- src/index.html | 9 +++++++++ 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/css/loader.scss b/css/loader.scss index a36797b71..449e6d4dc 100644 --- a/css/loader.scss +++ b/css/loader.scss @@ -92,3 +92,20 @@ left: 50%; } } + +.killAllMessage { + position: absolute; + top: 95%; + left: 50%; + -webkit-transform: translateX(-50%); + -moz-transform: translateX(-50%); + -ms-transform: translateX(-50%); + -o-transform: translateX(-50%); + transform: translateX(-50%); +} + .killAllMessageWrapperHidden { + display: none; +} + .killAllMessageWrapperShow { + display: block; +} diff --git a/index.html b/index.html index 533adc0a5..6c7ea2a50 100644 --- a/index.html +++ b/index.html @@ -1017,10 +1017,11 @@
Loading Bitburner...
+ var w = document.getElementById('killAllMessageWrapper'); + if (w == null) {return;} + w.classList.remove("killAllMessageWrapperHidden"); + w.classList.add("killAllMessageWrapperShow"); + }, 2000);

If the game fails to load, consider killing all scripts

diff --git a/src/index.html b/src/index.html index da15a0733..74a05e9f9 100644 --- a/src/index.html +++ b/src/index.html @@ -1019,6 +1019,15 @@ if (htmlWebpackPlugin.options.googleAnalytics.trackingId) { %>
Loading Bitburner...
+
+ +

If the game fails to load, consider killing all scripts

+