diff --git a/public/index.html b/public/index.html
index 7b9021505..d20c7d3f5 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,6 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -37,7 +48,7 @@
create_date: 0,
mes: '\n*You went inside. The air smelled of fried meat, tobacco and a hint of wine. A dim light was cast by candles, and a fire crackled in the fireplace. It seems to be a very pleasant place. Behind the wooden bar is an elf waitress, she is smiling. Her ears are very pointy, and there is a twinkle in her eye. She wears glasses and a white apron. As soon as she noticed you, she immediately came right up close to you.*\n\n' +
' Hello there! How is your evening going?\n' +
- ' \n@@@TavernAI v'+VERSION+'@@@ Cloud
'
+ ' \n@@@TavernAI v'+VERSION+'@@@ Cloud
'
}];
var chat_create_date = 0;
@@ -146,6 +157,29 @@
var css_send_form_display = $('
').css('display');
var colab_ini_step = 1;
+
+ // VARIABLES DONE NOW THE REAL CODE
+ //
+ //
+ //
+
+ // Dealing with Textarea Height
+
+ //function textAreaAdjust(element) {
+ // element.style.height = "1px";
+ // element.style.height = (25+element.scrollHeight)+"px";
+ //}
+ //function calcHeight(value) {
+ // let numberOfLineBreaks = (value.match(/\n/g) || []).length;
+ // // min-height + lines x line-height + padding + border
+ // let newHeight = 25 + numberOfLineBreaks * 25 + 6 + 1;
+ // return newHeight;
+ //}
+ //let textarea = document.querySelector(".resize-ta");
+ //textarea.addEventListener("keyup", () => {
+ //textarea.style.height = calcHeight(textarea.value) + "px";
+ //});
+
setInterval(function() {
switch(colab_ini_step){
case 0:
@@ -167,6 +201,9 @@
}
}, 500);
/////////////
+
+
+
getSettings("def");
getLastVersion();
@@ -194,7 +231,7 @@
is_get_status_novel = false;
}else{
$("#online_status_indicator").css("background-color", "black");
- $("#online_status").css("opacity", 0.0);
+ $("#online_status").css("display", "none");
$("#online_status_text").html("");
$("#online_status_indicator2").css("background-color", "green");
$("#online_status_text2").html(online_status);
@@ -597,7 +634,7 @@
//$("#send_textarea").blur();
$( "#send_but" ).css("display", "none");
- $( "#loading_mes" ).css("display", "block");
+ $( "#loading_mes" ).css("display", "inline-block");
var storyString = "";
@@ -1056,7 +1093,7 @@
getMessage = $.trim(getMessage);
chat[chat.length-1]['mes'] = getMessage;
addOneMessage(chat[chat.length-1]);
- $( "#send_but" ).css("display", "block");
+ $( "#send_but" ).css("display", "inline");
$( "#loading_mes" ).css("display", "none");
saveChat();
}else{
@@ -1064,7 +1101,7 @@
Generate('force_name2');
}
}else{
- $( "#send_but" ).css("display", "block");
+ $( "#send_but" ).css("display", "inline");
$( "#loading_mes" ).css("display", "none");
}
},
@@ -1072,7 +1109,7 @@
$("#send_textarea").removeAttr('disabled');
is_send_press = false;
- $( "#send_but" ).css("display", "block");
+ $( "#send_but" ).css("display", "inline");
$( "#loading_mes" ).css("display", "none");
console.log(exception);
console.log(jqXHR);
@@ -3326,6 +3363,7 @@
});
});
+
Tavern.AI
@@ -3730,38 +3768,53 @@