Spaces:
Runtime error
Runtime error
Update assets/custom.js
Browse files- assets/custom.js +5 -2
assets/custom.js
CHANGED
@@ -28,8 +28,7 @@ function gradioLoaded(mutations) {
|
|
28 |
userInfoDiv = document.getElementById("user_info");
|
29 |
appTitleDiv = document.getElementById("app_title");
|
30 |
appTitleDiv.innerText = "纸菌Chat📡";
|
31 |
-
|
32 |
-
document.title = 'Welcome to ZJunChat';
|
33 |
chatbot = document.querySelector('#chuanhu_chatbot');
|
34 |
apSwitch = document.querySelector('.apSwitch input[type="checkbox"]');
|
35 |
|
@@ -45,6 +44,10 @@ function gradioLoaded(mutations) {
|
|
45 |
if (chatbot) { // chatbot 加载出来了没?
|
46 |
setChatbotHeight()
|
47 |
}
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
}
|
50 |
}
|
|
|
28 |
userInfoDiv = document.getElementById("user_info");
|
29 |
appTitleDiv = document.getElementById("app_title");
|
30 |
appTitleDiv.innerText = "纸菌Chat📡";
|
31 |
+
ZJun_footer = document.querySelector('#description')
|
|
|
32 |
chatbot = document.querySelector('#chuanhu_chatbot');
|
33 |
apSwitch = document.querySelector('.apSwitch input[type="checkbox"]');
|
34 |
|
|
|
44 |
if (chatbot) { // chatbot 加载出来了没?
|
45 |
setChatbotHeight()
|
46 |
}
|
47 |
+
if (ZJun_footer) {
|
48 |
+
ZJun_footer.innerHTML = "<p>ZJuntest</p>";
|
49 |
+
document.title = 'Welcome to ZJunChat';
|
50 |
+
}
|
51 |
}
|
52 |
}
|
53 |
}
|