the killall link appears if the game takes too long to load

This commit is contained in:
Olivier Gagnon 2018-07-31 00:47:03 -04:00
parent fabc45f496
commit d364de78a7
2 changed files with 28 additions and 0 deletions

@ -146,3 +146,23 @@ button[type="button"] {
.loaderoverlay .loaderlabel { .loaderoverlay .loaderlabel {
color: #6f3; color: #6f3;
} }
.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;
}

@ -958,6 +958,14 @@
<div id="loader" class="loaderoverlay"> <div id="loader" class="loaderoverlay">
<div class="loaderspinner"></div> <div class="loaderspinner"></div>
<div class="loaderlabel">Loading Bitburner...</div> <div class="loaderlabel">Loading Bitburner...</div>
<div id="killAllMessageWrapper" class="killAllMessage killAllMessageWrapperHidden">
<script>setTimeout(function(){
var w = document.getElementById('killAllMessageWrapper');
w.classList.remove("killAllMessageWrapperHidden");
w.classList.add("killAllMessageWrapperShow");
}, 2000);</script>
<p>If the game fails to load, consider <a href="?noScripts">killing all scripts</a></p>
</div>
</div> </div>
<script src="dist/vendor.bundle.js"></script> <script src="dist/vendor.bundle.js"></script>
<script src="dist/engine.bundle.js"></script> <script src="dist/engine.bundle.js"></script>