mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Colab init
This commit is contained in:
@@ -122,6 +122,29 @@
|
|||||||
var bg1_toggle = true;
|
var bg1_toggle = true;
|
||||||
var css_mes_bg = $('<div class="mes"></div>').css('background');
|
var css_mes_bg = $('<div class="mes"></div>').css('background');
|
||||||
var css_send_form_display = $('<div id=send_form></div>').css('display');
|
var css_send_form_display = $('<div id=send_form></div>').css('display');
|
||||||
|
|
||||||
|
var colab_ini_step = 1;
|
||||||
|
setInterval(function() {
|
||||||
|
console.log(colab_ini_step);
|
||||||
|
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);
|
||||||
/////////////
|
/////////////
|
||||||
|
|
||||||
getSettings("def");
|
getSettings("def");
|
||||||
@@ -339,6 +362,7 @@
|
|||||||
if (response.ok === true) {
|
if (response.ok === true) {
|
||||||
const getData = await response.json();
|
const getData = await response.json();
|
||||||
if(getData.colaburl != false){
|
if(getData.colaburl != false){
|
||||||
|
$('colab_shadow_popup').css('display', 'none');
|
||||||
is_colab = true;
|
is_colab = true;
|
||||||
let url = String(getData.colaburl).split("flare.com")[0] + "flare.com";
|
let url = String(getData.colaburl).split("flare.com")[0] + "flare.com";
|
||||||
$('#api_url_text').val(url);
|
$('#api_url_text').val(url);
|
||||||
@@ -2657,6 +2681,11 @@
|
|||||||
<div id="dialogue_popup_cancel" class="menu_button">Cancel</div>
|
<div id="dialogue_popup_cancel" class="menu_button">Cancel</div>
|
||||||
</div>
|
</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 id="shadow_character_popup">
|
||||||
</div>-->
|
</div>-->
|
||||||
<div id="character_popup">
|
<div id="character_popup">
|
||||||
|
@@ -757,7 +757,24 @@ input[type=button] {
|
|||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
/* Focus */
|
/* Focus */
|
||||||
|
#colab_popup{
|
||||||
|
|
||||||
|
width:300px;
|
||||||
|
height: 150px;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 2060;
|
||||||
|
background-color: blue;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 36vh;
|
||||||
|
box-shadow: 0 0 2px rgba(200,200,200,0.1);
|
||||||
|
padding: 4px;
|
||||||
|
background: #191b3100;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
#dialogue_popup{
|
#dialogue_popup{
|
||||||
|
|
||||||
width:300px;
|
width:300px;
|
||||||
@@ -834,6 +851,15 @@ input[type=button] {
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
z-index: 2095;
|
z-index: 2095;
|
||||||
}
|
}
|
||||||
|
#colab_shadow_popup{
|
||||||
|
background-color: #00000066;
|
||||||
|
display: none;
|
||||||
|
opacity: 1.0;
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
z-index: 2298;
|
||||||
|
}
|
||||||
#bgtest{
|
#bgtest{
|
||||||
display: none;
|
display: none;
|
||||||
width:100vw;
|
width:100vw;
|
||||||
|
Reference in New Issue
Block a user