mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 06:02:26 +01:00
Fixed some issues with the width of terminal
This commit is contained in:
parent
4ea83fa199
commit
1446a8d96e
@ -8,6 +8,7 @@
|
||||
padding-top: 10px;
|
||||
padding-left: 10px;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@ -19,7 +20,7 @@
|
||||
|
||||
.terminal-input {
|
||||
display: table-cell;
|
||||
width: auto;
|
||||
width: 90%;
|
||||
padding: 0px !important;
|
||||
margin: 0px !important;
|
||||
border: 0px;
|
||||
|
@ -360,6 +360,8 @@ ForeignServers = {
|
||||
|
||||
/* Create a randomized network of all foreign servers */
|
||||
createNetwork: function() {
|
||||
console.log("createNetwork() called");
|
||||
|
||||
//Groupings for creating a randomized network
|
||||
var NetworkGroup1 = [ForeignServers.IronGym, ForeignServers.FoodNStuff, ForeignServers.SigmaCosmetics, ForeignServers.JoesGuns, ForeignServers.HongFangTeaHouse, ForeignServers.HaraKiriSushiBar];
|
||||
var NetworkGroup2 = [ForeignServers.MaxHardware, ForeignServers.NectarNightclub, ForeignServers.Zer0Nightclub];
|
||||
|
@ -24,7 +24,7 @@ $(document).keyup(function(event) {
|
||||
|
||||
var Terminal = {
|
||||
executeCommand: function(command) {
|
||||
var commandArray = command.split();
|
||||
var commandArray = command.split(" ");
|
||||
|
||||
if (commandArray.length == 0) {
|
||||
return;
|
||||
@ -51,15 +51,15 @@ var Terminal = {
|
||||
var ip = commandArray[1];
|
||||
|
||||
for (var i = 0; i < Player.currentServer.serversOnNetwork.length; i++) {
|
||||
if (Player.currentServer.serversOnNetwork[i].ip == ip) {
|
||||
if (Player.currentServer.serversOnNetwork[i].ip == ip || Player.currentServer.serversOnNetwork[i].hostname == ip) {
|
||||
Player.currentServer.isConnectedTo = false;
|
||||
Player.currentServer = Player.currentServer.serversOnNetwork[i];
|
||||
post("Connect to " + ip);
|
||||
post("Connected to " + ip);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
post("IP not found");
|
||||
post("Host not found");
|
||||
break;
|
||||
case "df":
|
||||
console.log("df terminal command called");
|
||||
|
Loading…
Reference in New Issue
Block a user