Update index.html
Browse files- 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>
|