diff --git a/static/koboldai.css b/static/koboldai.css index 1e2b2bf1..9b10a928 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -2873,7 +2873,9 @@ body { } .welcome_container { + position: absolute; height: 100%; + width: 100%; display: flex; margin-top: auto; } diff --git a/static/koboldai.js b/static/koboldai.js index 9ab6b7a4..64bb119a 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -6106,6 +6106,17 @@ function closePopups(userAction=false) { if (allHidden) container.classList.add("hidden"); } +function hide_welcome_container() { + welcome_container = document.getElementById("welcome_container"); + welcome_container.classList.add("hidden"); + document.getElementById("Selected Text").focus(); +} + +function show_welcome_container() { + welcome_container = document.getElementById("welcome_container"); + welcome_container.classList.remove("hidden"); +} + $el("#popup-container").addEventListener("click", function(event) { if (event.target === this) closePopups(true); }); diff --git a/templates/index_new.html b/templates/index_new.html index 8654e59c..0f2fecaf 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -49,7 +49,7 @@