mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2024-12-25 07:50:58 +01:00
Code indentation consistency
This commit is contained in:
parent
6d5845ff8d
commit
62ad2f0228
@ -813,11 +813,11 @@ $(document).ready(function(){
|
|||||||
seqselmenu = $("#seqselmenu");
|
seqselmenu = $("#seqselmenu");
|
||||||
seqselcontents = $("#seqselcontents");
|
seqselcontents = $("#seqselcontents");
|
||||||
|
|
||||||
// Connect to SocketIO server
|
// Connect to SocketIO server
|
||||||
socket = io.connect(window.document.origin);
|
socket = io.connect(window.document.origin);
|
||||||
|
|
||||||
socket.on('from_server', function(msg) {
|
socket.on('from_server', function(msg) {
|
||||||
if(msg.cmd == "connected") {
|
if(msg.cmd == "connected") {
|
||||||
// Connected to Server Actions
|
// Connected to Server Actions
|
||||||
connected = true;
|
connected = true;
|
||||||
connect_status.html("<b>Connected to KoboldAI Process!</b>");
|
connect_status.html("<b>Connected to KoboldAI Process!</b>");
|
||||||
@ -882,19 +882,19 @@ $(document).ready(function(){
|
|||||||
}, 5);
|
}, 5);
|
||||||
}
|
}
|
||||||
} else if(msg.cmd == "removechunk") {
|
} else if(msg.cmd == "removechunk") {
|
||||||
let index = msg.data;
|
let index = msg.data;
|
||||||
// Remove the chunk
|
// Remove the chunk
|
||||||
game_text.children(`#n${index}`).remove()
|
game_text.children(`#n${index}`).remove()
|
||||||
// Shift all existing chunks by 1
|
// Shift all existing chunks by 1
|
||||||
index++;
|
index++;
|
||||||
while (true) {
|
while(true) {
|
||||||
const chunk = game_text.children(`#n${index}`)
|
const chunk = game_text.children(`#n${index}`)
|
||||||
if(chunk.length === 0) {
|
if(chunk.length === 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
const newIndex = index - 1;
|
const newIndex = index - 1;
|
||||||
chunk.attr('n', newIndex.toString()).attr('id', `n${newIndex}`);
|
chunk.attr('n', newIndex.toString()).attr('id', `n${newIndex}`);
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
} else if(msg.cmd == "setgamestate") {
|
} else if(msg.cmd == "setgamestate") {
|
||||||
// Enable or Disable buttons
|
// Enable or Disable buttons
|
||||||
@ -1093,7 +1093,7 @@ $(document).ready(function(){
|
|||||||
} else if(msg.cmd == "runs_remotely") {
|
} else if(msg.cmd == "runs_remotely") {
|
||||||
hide([button_loadfrfile, button_savetofile, button_import, button_importwi]);
|
hide([button_loadfrfile, button_savetofile, button_import, button_importwi]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('disconnect', function() {
|
socket.on('disconnect', function() {
|
||||||
connected = false;
|
connected = false;
|
||||||
|
@ -355,8 +355,8 @@ chunk, chunk * {
|
|||||||
|
|
||||||
.colorfade, .colorfade * {
|
.colorfade, .colorfade * {
|
||||||
-moz-transition:color 1s ease-in;
|
-moz-transition:color 1s ease-in;
|
||||||
-o-transition:color 1s ease-in;
|
-o-transition:color 1s ease-in;
|
||||||
-webkit-transition:color 1s ease-in;
|
-webkit-transition:color 1s ease-in;
|
||||||
transition:color 1s ease-in;
|
transition:color 1s ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -443,21 +443,21 @@ chunk, chunk * {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.helpicon {
|
.helpicon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 2.2ex;
|
width: 2.2ex;
|
||||||
height: 2.4ex;
|
height: 2.4ex;
|
||||||
font-size: 1.4ex;
|
font-size: 1.4ex;
|
||||||
line-height: 1.8ex;
|
line-height: 1.8ex;
|
||||||
border-radius: 1.2ex;
|
border-radius: 1.2ex;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
color: #295071;
|
color: #295071;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.helpicon:hover {
|
.helpicon:hover {
|
||||||
@ -521,8 +521,8 @@ chunk, chunk * {
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|
||||||
-moz-transition: background-color 0.25s ease-in;
|
-moz-transition: background-color 0.25s ease-in;
|
||||||
-o-transition: background-color 0.25s ease-in;
|
-o-transition: background-color 0.25s ease-in;
|
||||||
-webkit-transition: background-color 0.25s ease-in;
|
-webkit-transition: background-color 0.25s ease-in;
|
||||||
transition: background-color 0.25s ease-in;
|
transition: background-color 0.25s ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -532,12 +532,12 @@ chunk, chunk * {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar .navbar-nav .nav-link:hover {
|
.navbar .navbar-nav .nav-link:hover {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: #98bcdb;
|
background-color: #98bcdb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar .navbar-nav .nav-link:focus {
|
.navbar .navbar-nav .nav-link:focus {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: #98bcdb;
|
background-color: #98bcdb;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -603,8 +603,8 @@ chunk, chunk * {
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|
||||||
-moz-transition: background-color 0.25s ease-in;
|
-moz-transition: background-color 0.25s ease-in;
|
||||||
-o-transition: background-color 0.25s ease-in;
|
-o-transition: background-color 0.25s ease-in;
|
||||||
-webkit-transition: background-color 0.25s ease-in;
|
-webkit-transition: background-color 0.25s ease-in;
|
||||||
transition: background-color 0.25s ease-in;
|
transition: background-color 0.25s ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -654,8 +654,8 @@ chunk, chunk * {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
-moz-transition: all 0.15s ease-in;
|
-moz-transition: all 0.15s ease-in;
|
||||||
-o-transition: all 0.15s ease-in;
|
-o-transition: all 0.15s ease-in;
|
||||||
-webkit-transition: all 0.15s ease-in;
|
-webkit-transition: all 0.15s ease-in;
|
||||||
transition: all 0.15s ease-in;
|
transition: all 0.15s ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@
|
|||||||
Unsaved data will be lost.<br><br>
|
Unsaved data will be lost.<br><br>
|
||||||
Below you can input a genre suggestion for the AI to loosely base the story on (For example Horror or Cowboy).<br>
|
Below you can input a genre suggestion for the AI to loosely base the story on (For example Horror or Cowboy).<br>
|
||||||
</div>
|
</div>
|
||||||
<div class="aidgpopupcontent">
|
<div class="aidgpopupcontent">
|
||||||
<input class="form-control" type="text" placeholder="Story Genre Suggestion (Leave blank for fully random)" id="topic">
|
<input class="form-control" type="text" placeholder="Story Genre Suggestion (Leave blank for fully random)" id="topic">
|
||||||
</div>
|
</div>
|
||||||
<div class="popupfooter">
|
<div class="popupfooter">
|
||||||
|
Loading…
Reference in New Issue
Block a user