Deploying to gh-pages from @ PJ-568/568_Calc@8b09880f1943383a8a881d48e20c065fcbb6e6cd 🚀

gh-pages
PJ-568 8 months ago
parent 120a775c95
commit 738ae04f57

@ -1,56 +1,83 @@
// 获取用户使用的语种。
var lang = translate.language.getCurrent();
var giscus_lang = "zh-CN";
switch (lang) {
case "chinese_traditional":
giscus_lang = "zh-TW";
break;
case "english":
giscus_lang = "en";
break;
case "spanish":
giscus_lang = "es";
break;
case "japanese":
giscus_lang = "ja";
break;
case "korean":
giscus_lang = "ko";
break;
case "french":
giscus_lang = "fr";
break;
case "arabic":
giscus_lang = "ar";
break;
default:
giscus_lang = "zh-CN";
break;
}
var giscus = function () {
const script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://giscus.app/client.js";
script.setAttribute("data-repo", "PJ-568/568_Calc");
script.setAttribute("data-repo-id", "R_kgDOKgTh_A");
script.setAttribute("data-category", "Announcements");
script.setAttribute("data-category-id", "DIC_kwDOKgTh_M4CaKUO");
script.setAttribute("data-mapping", "title");
script.setAttribute("data-strict", "1");
script.setAttribute("data-reactions-enabled", "1");
script.setAttribute("data-emit-metadata", "0");
script.setAttribute("data-input-position", "top");
script.setAttribute("data-theme", "transparent_dark");
script.setAttribute("data-lang", giscus_lang);
script.setAttribute("data-loading", "lazy");
script.crossOrigin = "anonymous";
script.async = true;
document.getElementById("giscus-container").appendChild(script);
};
// 获取用户使用的语种。
var lang = translate.language.getCurrent();
var giscus_lang = "zh-CN";
switch (lang) {
case "chinese_traditional":
giscus_lang = "zh-TW";
break;
case "english":
giscus_lang = "en";
break;
case "spanish":
giscus_lang = "es";
break;
case "japanese":
giscus_lang = "ja";
break;
case "korean":
giscus_lang = "ko";
break;
case "french":
giscus_lang = "fr";
break;
case "arabic":
giscus_lang = "ar";
break;
case "catalan":
giscus_lang = "ca";
break;
case "danish":
giscus_lang = "da";
break;
case "deutsch":
giscus_lang = "de";
break;
case "persian":
giscus_lang = "fa";
break;
case "greek":
giscus_lang = "gr";
break;
case "serbian":
giscus_lang = "hbs";
break;
case "hebrew":
giscus_lang = "he";
break;
case "hungarian":
giscus_lang = "hu";
break;
case "italian":
giscus_lang = "it";
break;
default:
giscus_lang = "zh-CN";
break;
}
var giscus = function () {
const script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://giscus.app/client.js";
script.setAttribute("data-repo", "PJ-568/568_Calc");
script.setAttribute("data-repo-id", "R_kgDOKgTh_A");
script.setAttribute("data-category", "Announcements");
script.setAttribute("data-category-id", "DIC_kwDOKgTh_M4CaKUO");
script.setAttribute("data-mapping", "title");
script.setAttribute("data-strict", "1");
script.setAttribute("data-reactions-enabled", "1");
script.setAttribute("data-emit-metadata", "0");
script.setAttribute("data-input-position", "top");
script.setAttribute("data-theme", "transparent_dark");
script.setAttribute("data-lang", giscus_lang);
script.setAttribute("data-loading", "lazy");
script.crossOrigin = "anonymous";
script.async = true;
document.getElementById("giscus-container").appendChild(script);
};
window.addEventListener('load', giscus);

@ -2,18 +2,18 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://Calc.pj568.sbs/</loc>
<lastmod>2024-04-07T15:17:45+08:00</lastmod>
<lastmod>2024-05-22T10:35:48+08:00</lastmod>
</url>
<url>
<loc>https://Calc.pj568.sbs/404.html</loc>
<lastmod>2024-04-07T15:17:45+08:00</lastmod>
<lastmod>2024-05-22T10:35:48+08:00</lastmod>
</url>
<url>
<loc>https://Calc.pj568.sbs/footer.html</loc>
<lastmod>2024-04-07T15:17:45+08:00</lastmod>
<lastmod>2024-05-22T10:35:48+08:00</lastmod>
</url>
<url>
<loc>https://Calc.pj568.sbs/Web/</loc>
<lastmod>2024-04-07T07:18:11+00:00</lastmod>
<lastmod>2024-05-22T02:36:54+00:00</lastmod>
</url>
</urlset>

Loading…
Cancel
Save