Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
•
b71c4e4
1
Parent(s):
c4401df
WIP: test switch page
Browse files
web_assets/javascript/ChuanhuChat.js
CHANGED
@@ -33,6 +33,7 @@ var popupWrapper = null;
|
|
33 |
var chuanhuHeader = null;
|
34 |
var menu = null;
|
35 |
var toolbox = null;
|
|
|
36 |
|
37 |
var isInIframe = (window.self !== window.top);
|
38 |
var currentTime = new Date().getTime();
|
@@ -81,6 +82,7 @@ function initialize() {
|
|
81 |
chuanhuHeader = gradioApp().querySelector('#chuanhu-header');
|
82 |
menu = gradioApp().querySelector('#menu-area');
|
83 |
toolbox = gradioApp().querySelector('#toolbox-area');
|
|
|
84 |
|
85 |
if (loginUserForm) {
|
86 |
localStorage.setItem("userLogged", true);
|
@@ -117,6 +119,7 @@ function initialize() {
|
|
117 |
// setHistroyPanel();
|
118 |
settingBox.classList.add('hideBox');
|
119 |
trainingBox.classList.add('hideBox');
|
|
|
120 |
}
|
121 |
}
|
122 |
|
|
|
33 |
var chuanhuHeader = null;
|
34 |
var menu = null;
|
35 |
var toolbox = null;
|
36 |
+
// var trainBody = null;
|
37 |
|
38 |
var isInIframe = (window.self !== window.top);
|
39 |
var currentTime = new Date().getTime();
|
|
|
82 |
chuanhuHeader = gradioApp().querySelector('#chuanhu-header');
|
83 |
menu = gradioApp().querySelector('#menu-area');
|
84 |
toolbox = gradioApp().querySelector('#toolbox-area');
|
85 |
+
// trainBody = gradioApp().querySelector('#train-body');
|
86 |
|
87 |
if (loginUserForm) {
|
88 |
localStorage.setItem("userLogged", true);
|
|
|
119 |
// setHistroyPanel();
|
120 |
settingBox.classList.add('hideBox');
|
121 |
trainingBox.classList.add('hideBox');
|
122 |
+
// trainBody.classList.add('hide-body');
|
123 |
}
|
124 |
}
|
125 |
|
web_assets/javascript/webui.js
CHANGED
@@ -186,4 +186,13 @@ function setHistroyPanel() {
|
|
186 |
// const historySelectorInput = gradioApp().querySelector('#history-select-dropdown input');
|
187 |
// let file = historySelectorInput.value;
|
188 |
// return [a,file,c]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
// }
|
|
|
186 |
// const historySelectorInput = gradioApp().querySelector('#history-select-dropdown input');
|
187 |
// let file = historySelectorInput.value;
|
188 |
// return [a,file,c]
|
189 |
+
// }
|
190 |
+
|
191 |
+
// function testTrain() {
|
192 |
+
|
193 |
+
// trainBody.classList.toggle('hide-body');
|
194 |
+
// trainingBox.classList.remove('hideBox');
|
195 |
+
|
196 |
+
// var chuanhuBody = document.querySelector('#chuanhu-body');
|
197 |
+
// chuanhuBody.classList.toggle('hide-body');
|
198 |
// }
|
web_assets/stylesheet/ChuanhuChat.css
CHANGED
@@ -552,4 +552,32 @@ body.popup-open {
|
|
552 |
height: 300px;
|
553 |
overflow: auto;
|
554 |
overflow-x: hidden;
|
555 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
552 |
height: 300px;
|
553 |
overflow: auto;
|
554 |
overflow-x: hidden;
|
555 |
+
}
|
556 |
+
|
557 |
+
/* .main-body {
|
558 |
+
flex-wrap: nowrap;
|
559 |
+
gap: 0;
|
560 |
+
overflow: hidden;
|
561 |
+
display: inline-flex;
|
562 |
+
/* margin-top: 54px; */
|
563 |
+
/* height: calc(100vh - 72px); */
|
564 |
+
/* position: absolute;
|
565 |
+
top: 48px;
|
566 |
+
} */
|
567 |
+
/*
|
568 |
+
.hide-body {
|
569 |
+
display: none;
|
570 |
+
top: -100vh;
|
571 |
+
|
572 |
+
}
|
573 |
+
#train-body {
|
574 |
+
transition: top 0.3s ease-in-out, display 0.3s ease;
|
575 |
+
}
|
576 |
+
|
577 |
+
#chuanhu-body.hide-body {
|
578 |
+
display: none;
|
579 |
+
top: calc(100vh + 48px);
|
580 |
+
}
|
581 |
+
#chuanhu-body {
|
582 |
+
transition: top 0.3s ease-in-out, display 0.3s ease;
|
583 |
+
} */
|