Keldos commited on
Commit
c6c08bc
·
1 Parent(s): da74a1d

feat: add console mark

Browse files
Files changed (1) hide show
  1. assets/custom.js +34 -0
assets/custom.js CHANGED
@@ -647,6 +647,40 @@ window.addEventListener('resize', setChatbotHeight);
647
  window.addEventListener('scroll', function(){setChatbotHeight();setUpdateWindowHeight();});
648
  window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", adjustDarkMode);
649
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
650
  // button svg code
651
  const copyIcon = '<span><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height=".8em" width=".8em" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span>';
652
  const copiedIcon = '<span><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height=".8em" width=".8em" xmlns="http://www.w3.org/2000/svg"><polyline points="20 6 9 17 4 12"></polyline></svg></span>';
 
647
  window.addEventListener('scroll', function(){setChatbotHeight();setUpdateWindowHeight();});
648
  window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", adjustDarkMode);
649
 
650
+ // console suprise
651
+ var styleTitle1 = `
652
+ font-size: 16px;
653
+ font-family: ui-monospace,monospace;
654
+ color: rgb(244,167,89);
655
+ `
656
+ var styleDesc1 = `
657
+ font-size: 12px;
658
+ font-family: ui-monospace,monospace;
659
+ `
660
+ function makeML(str) {
661
+ let l = new String(str)
662
+ l = l.substring(l.indexOf("/*") + 3, l.lastIndexOf("*/"))
663
+ return l
664
+ }
665
+ let ChuanhuInfo = function () {
666
+ /*
667
+ ________ __ ________ __
668
+ / ____/ /_ __ ______ _____ / /_ __ __ / ____/ /_ ____ _/ /_
669
+ / / / __ \/ / / / __ `/ __ \/ __ \/ / / / / / / __ \/ __ `/ __/
670
+ / /___/ / / / /_/ / /_/ / / / / / / / /_/ / / /___/ / / / /_/ / /_
671
+ \____/_/ /_/\__,_/\__,_/_/ /_/_/ /_/\__,_/ \____/_/ /_/\__,_/\__/
672
+
673
+ 川虎Chat (Chuanhu Chat) - GUI for ChatGPT API and many LLMs
674
+ */
675
+ }
676
+ let description = `
677
+ © 2023 Chuanhu, MZhao, Keldos
678
+ GitHub repository: [https://github.com/GaiZhenbiao/ChuanhuChatGPT]\n
679
+ Enjoy our project!\n
680
+ `
681
+ console.log(`%c${makeML(ChuanhuInfo)}`,styleTitle1)
682
+ console.log(`%c${description}`, styleDesc1)
683
+
684
  // button svg code
685
  const copyIcon = '<span><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height=".8em" width=".8em" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span>';
686
  const copiedIcon = '<span><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height=".8em" width=".8em" xmlns="http://www.w3.org/2000/svg"><polyline points="20 6 9 17 4 12"></polyline></svg></span>';