medialog commited on
Commit
af3a153
ยท
verified ยท
1 Parent(s): e325b3a

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +75 -0
index.html CHANGED
@@ -13,4 +13,79 @@
13
  Your browser does not support iframes.
14
  </iframe>
15
  </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  </html>
 
13
  Your browser does not support iframes.
14
  </iframe>
15
  </body>
16
+
17
+
18
+
19
+
20
+ <!------------------------------- view_layouts_base_body_bottom ------------------------->
21
+
22
+
23
+ <!------------------------------- view_layouts_base_body_bottom ------------------------->
24
+
25
+
26
+ <script>
27
+ // ํ˜„์žฌ URL ๊ฒฝ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ
28
+ const currentPath = window.location.pathname;
29
+
30
+ // ๋žœ๋ค ๋ฉ”์‹œ์ง€ ๋ฐฐ์—ด
31
+ const defaultMessages = [
32
+ "React์™€ Vue์˜ ์ฐจ์ด์ ์€ ๋ฌด์—‡์ธ๊ฐ€์š”?",
33
+ "JavaScript์—์„œ ๋น„๋™๊ธฐ ํ”„๋กœ๊ทธ๋ž˜๋ฐ์„ ์–ด๋–ป๊ฒŒ ๊ตฌํ˜„ํ•˜๋‚˜์š”?",
34
+ "TypeScript์˜ ์ฃผ์š” ํŠน์ง•๊ณผ ์žฅ์ ์€ ๋ฌด์—‡์ธ๊ฐ€์š”?",
35
+ "์›น ์ ‘๊ทผ์„ฑ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์—๋Š” ์–ด๋–ค ๊ฒƒ๋“ค์ด ์žˆ๋‚˜์š”?",
36
+ "์ตœ์‹  CSS ๊ธฐ์ˆ ์ธ Flexbox์™€ Grid์˜ ์ฃผ์š” ์šฉ๋„๋Š” ๋ฌด์—‡์ธ๊ฐ€์š”?"
37
+ ];
38
+
39
+ // ๋žœ๋ค ๋ฉ”์‹œ์ง€ ์„ ํƒ
40
+ const randomMessage = defaultMessages[Math.floor(Math.random() * defaultMessages.length)];
41
+
42
+ // ์Šคํฌ๋ฆฝํŠธ ์†์„ฑ ์„ค์ •
43
+ let scriptAttributes = {
44
+ "data-embed-id": "dc588ca9-bf9b-406b-a511-73ea3485c175", // ๊ธฐ๋ณธ๊ฐ’
45
+ "data-chat-icon": "chatBubble",
46
+ "data-sponsor-text": "๊ธฐ์—…/์†”๋ฃจ์…˜๋‹ด๋‹น AX์†”๋ฃจ์…˜๊ธฐ์ˆ TF",
47
+ "data-sponsor-link": "https://partner.novamsg.org/",
48
+ "data-open-on-load": "๋„ˆ๋Š” ์–ด๋–ค ์ผ์„ ํ• ์ˆ˜ ์žˆ์–ด?",
49
+ "data-window-height": "800px",
50
+ "data-window-width": "500px",
51
+ "data-brand-image-url": "https://partner.novamsg.org/cms/assets/download/9178/division-kb.png",
52
+ "data-assistant-icon": "https://partner.novamsg.org/cms/assets/download/9177/exaone.png",
53
+ "data-base-api-url": "https://partner.novamsg.org:5004/api/embed",
54
+ "data-assistant-name": "์ง€์‹๊ธฐ๋ฐ˜ ์ฑ—๋ด‡ (All in AI)",
55
+ "data-greeting": "๊ธฐ์—…/์†”๋ฃจ์…˜๋‹ด๋‹น AX์†”๋ฃจ์…˜๊ธฐ์ˆ  TF ์—์„œ ์šด์˜ํ•˜๋Š” ๋ฒ ๋“œ๋ฝ(ํด๋กœ๋“œ) ์ž…๋‹ˆ๋‹ค.",
56
+ "data-default-messages": randomMessage
57
+ };
58
+
59
+ // URL์— ๋”ฐ๋ผ ํŠน์ • ์†์„ฑ ์ˆ˜์ •
60
+ if (currentPath === "/projects/ax-tf") {
61
+ scriptAttributes["data-embed-id"] = "8794b20f-68e4-4c7e-8f4c-b3fc4ffbc5d5";
62
+ scriptAttributes["data-chat-icon"] = "plus";
63
+ scriptAttributes["data-brand-image-url"] = "https://partner.novamsg.org/cms/assets/download/9192/exaone_banner.png";
64
+ scriptAttributes["data-greeting"] ="๊ธฐ์—…/์†”๋ฃจ์…˜๋‹ด๋‹น AX์†”๋ฃจ์…˜๊ธฐ์ˆ  TF์—์„œ ์šด์˜ํ•˜๋Š” ์—‘์‚ฌ์› LLM ์ž…๋‹ˆ๋‹ค.";
65
+ }
66
+
67
+ // ๋™์  ์Šคํฌ๋ฆฝํŠธ ์ƒ์„ฑ
68
+ const script = document.createElement("script");
69
+ Object.entries(scriptAttributes).forEach(([key, value]) => {
70
+ script.setAttribute(key, value);
71
+ });
72
+ script.src = "https://partner.novamsg.org:5004/embed/anythingllm-chat-widget.min.js";
73
+
74
+ // ์Šคํฌ๋ฆฝํŠธ๋ฅผ body์— ์ถ”๊ฐ€
75
+ document.body.appendChild(script);
76
+ </script>
77
+
78
+ <!--
79
+ Paste this script at the bottom of your HTML before the </body> tag.
80
+ See more style and config options on our docs
81
+ https://github.com/Mintplex-Labs/anything-llm/tree/master/embed/README.md
82
+ -->
83
+
84
+
85
+ <!-- AnythingLLM (https://anythingllm.com) -->
86
+
87
+
88
+
89
+
90
+
91
  </html>