medialog's picture
Update index.html
91acf6d verified
<!doctype html>
<html style="height:100%;">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>My static Space</title>
<link rel="stylesheet" href="style.css" />
</head>
<body style="margin:0; height:100%; overflow:hidden;">
<iframe src="https://partner.novamsg.org:8030/"
style="width:100%; height:100%; border:none; display:block;"
allowfullscreen>
Your browser does not support iframes.
</iframe>
</body>
<!------------------------------- view_layouts_base_body_bottom ------------------------->
<!------------------------------- view_layouts_base_body_bottom ------------------------->
<script>
// ํ˜„์žฌ URL ๊ฒฝ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ
const currentPath = window.location.pathname;
// ๋žœ๋ค ๋ฉ”์‹œ์ง€ ๋ฐฐ์—ด
const defaultMessages = [
"React์™€ Vue์˜ ์ฐจ์ด์ ์€ ๋ฌด์—‡์ธ๊ฐ€์š”?",
"JavaScript์—์„œ ๋น„๋™๊ธฐ ํ”„๋กœ๊ทธ๋ž˜๋ฐ์„ ์–ด๋–ป๊ฒŒ ๊ตฌํ˜„ํ•˜๋‚˜์š”?",
"TypeScript์˜ ์ฃผ์š” ํŠน์ง•๊ณผ ์žฅ์ ์€ ๋ฌด์—‡์ธ๊ฐ€์š”?",
"์›น ์ ‘๊ทผ์„ฑ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์—๋Š” ์–ด๋–ค ๊ฒƒ๋“ค์ด ์žˆ๋‚˜์š”?",
"์ตœ์‹  CSS ๊ธฐ์ˆ ์ธ Flexbox์™€ Grid์˜ ์ฃผ์š” ์šฉ๋„๋Š” ๋ฌด์—‡์ธ๊ฐ€์š”?"
];
// ๋žœ๋ค ๋ฉ”์‹œ์ง€ ์„ ํƒ
const randomMessage = defaultMessages[Math.floor(Math.random() * defaultMessages.length)];
// ์Šคํฌ๋ฆฝํŠธ ์†์„ฑ ์„ค์ •
let scriptAttributes = {
"data-embed-id": "dc588ca9-bf9b-406b-a511-73ea3485c175", // ๊ธฐ๋ณธ๊ฐ’
"data-chat-icon": "chatBubble",
"data-sponsor-text": "๋ฏธ๋””์–ด๋กœ๊ทธ AX์†”๋ฃจ์…˜๊ธฐ์ˆ  TF",
"data-sponsor-link": "https://www.medialog.co.kr",
"data-open-on-load": "๋„ˆ๋Š” ์–ด๋–ค ์ผ์„ ํ• ์ˆ˜ ์žˆ์–ด?",
"data-window-height": "800px",
"data-window-width": "500px",
"data-brand-image-url": "https://partner.novamsg.org/cms/assets/download/9192/exaone_banner.png",
"data-assistant-icon": "https://partner.novamsg.org/cms/assets/download/9177/exaone.png",
"data-base-api-url": "https://partner.novamsg.org:5004/api/embed",
"data-assistant-name": "์ง€์‹๊ธฐ๋ฐ˜ ์ฑ—๋ด‡ (All in AI)",
"data-greeting": "๊ธฐ์—…/์†”๋ฃจ์…˜๋‹ด๋‹น AX์†”๋ฃจ์…˜๊ธฐ์ˆ  TF ์—์„œ ์šด์˜ํ•˜๋Š” ์•ก์‚ฌ์› ์ฑ—๋ด‡ ์ž…๋‹ˆ๋‹ค.",
"data-default-messages": randomMessage
};
// URL์— ๋”ฐ๋ผ ํŠน์ • ์†์„ฑ ์ˆ˜์ •
if (currentPath === "/projects/ax-tf") {
scriptAttributes["data-embed-id"] = "8794b20f-68e4-4c7e-8f4c-b3fc4ffbc5d5";
scriptAttributes["data-chat-icon"] = "plus";
scriptAttributes["data-brand-image-url"] = "https://partner.novamsg.org/cms/assets/download/9192/exaone_banner.png";
scriptAttributes["data-greeting"] ="๊ธฐ์—…/์†”๋ฃจ์…˜๋‹ด๋‹น AX์†”๋ฃจ์…˜๊ธฐ์ˆ  TF์—์„œ ์šด์˜ํ•˜๋Š” ์—‘์‚ฌ์› LLM ์ž…๋‹ˆ๋‹ค.";
}
// ๋™์  ์Šคํฌ๋ฆฝํŠธ ์ƒ์„ฑ
const script = document.createElement("script");
Object.entries(scriptAttributes).forEach(([key, value]) => {
script.setAttribute(key, value);
});
script.src = "https://partner.novamsg.org:5004/embed/anythingllm-chat-widget.min.js";
// ์Šคํฌ๋ฆฝํŠธ๋ฅผ body์— ์ถ”๊ฐ€
document.body.appendChild(script);
</script>
<!--
Paste this script at the bottom of your HTML before the </body> tag.
See more style and config options on our docs
https://github.com/Mintplex-Labs/anything-llm/tree/master/embed/README.md
-->
<!-- AnythingLLM (https://anythingllm.com) -->
</html>