Remove obsolete colab popup

This commit is contained in:
SillyLossy
2023-05-11 16:19:27 +03:00
parent 18429bbc3b
commit 552296a203
3 changed files with 0 additions and 66 deletions

View File

@ -1991,15 +1991,6 @@
</div>
</div>
</div>
<div id="colab_shadow_popup">
<div id="colab_popup">
<div id="colab_popup_text" style="float: left;margin-left: 88px;">
<h3>Initialization</h3>
</div>
</div>
</div>
<!--<div id="shadow_character_popup">
</div>-->
<div id="character_popup">
<div id="character_popup_text">

View File

@ -524,12 +524,10 @@ let novelai_settings;
let novelai_setting_names;
//css
var bg1_toggle = true; // inits the BG as BG1
var css_mes_bg = $('<div class="mes"></div>').css("background");
var css_send_form_display = $("<div id=send_form></div>").css("display");
let generate_loop_counter = 0;
const MAX_GENERATION_LOOPS = 5;
var colab_ini_step = 1;
let token;
@ -540,29 +538,6 @@ export function getRequestHeaders() {
};
}
//////////// Is this needed?
setInterval(function () {
switch (colab_ini_step) {
case 0:
$("#colab_popup_text").html("<h3>Initialization</h3>");
colab_ini_step = 1;
break;
case 1:
$("#colab_popup_text").html("<h3>Initialization.</h3>");
colab_ini_step = 2;
break;
case 2:
$("#colab_popup_text").html("<h3>Initialization..</h3>");
colab_ini_step = 3;
break;
case 3:
$("#colab_popup_text").html("<h3>Initialization...</h3>");
colab_ini_step = 0;
break;
}
}, 500);
/////////////
$.ajaxPrefilter((options, originalOptions, xhr) => {
xhr.setRequestHeader("X-CSRF-Token", token);
});

View File

@ -1380,25 +1380,6 @@ input[type=search]:focus::-webkit-search-cancel-button {
}
/* Focus */
#colab_popup {
width: 300px;
height: 150px;
position: absolute;
z-index: 2060;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
text-align: center;
margin-top: 36svh;
box-shadow: 0 0 2px var(--black50a);
padding: 4px;
backdrop-filter: blur(var(--SmartThemeBlurStrength));
background-color: var(--black70a);
-webkit-backdrop-filter: blur(var(--SmartThemeBlurStrength));
border-radius: 10px;
}
#dialogue_popup {
width: 500px;
@ -1548,19 +1529,6 @@ input[type=search]:focus::-webkit-search-cancel-button {
top: 0;
}
#colab_shadow_popup {
backdrop-filter: blur(var(--SmartThemeBlurStrength));
-webkit-backdrop-filter: blur(var(--SmartThemeBlurStrength));
background-color: var(--black30a);
display: none;
opacity: 1.0;
position: absolute;
width: 100%;
height: 100svh;
z-index: 2298;
}
#bgtest {
display: none;
width: 100svw;