ZJunTvT commited on
Commit
98f5f71
·
1 Parent(s): 812a1b0

Update assets/custom.js

Browse files
Files changed (1) hide show
  1. assets/custom.js +5 -2
assets/custom.js CHANGED
@@ -29,6 +29,7 @@ function gradioLoaded(mutations) {
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
 
@@ -45,8 +46,10 @@ function gradioLoaded(mutations) {
45
  setChatbotHeight()
46
  }
47
  if (ZJun_footer) {
48
- ZJun_footer.innerHTML = "<p>ZJuntest</p>";
49
- document.title = 'Welcome to ZJunChat';
 
 
50
  }
51
  }
52
  }
 
29
  appTitleDiv = document.getElementById("app_title");
30
  appTitleDiv.innerText = "纸菌Chat📡";
31
  ZJun_footer = document.querySelector('#description')
32
+ htmlTitle = document.title
33
  chatbot = document.querySelector('#chuanhu_chatbot');
34
  apSwitch = document.querySelector('.apSwitch input[type="checkbox"]');
35
 
 
46
  setChatbotHeight()
47
  }
48
  if (ZJun_footer) {
49
+ ZJun_footer.innerHTML = "<p>由<a href="https://zjun.xyz">ZJun纸菌📡</a>基于@chuanhu和HuggingFace进行Recode</p>";
50
+ }
51
+ if (htmlTitle) {
52
+ htmlTitle = 'Welcome to ZJunChat';
53
  }
54
  }
55
  }