You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
568tools/js/giscus.js

2 lines
1.1 KiB

var lang=translate.language.getCurrent(),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"}var giscus=function(){const t=document.createElement("script");t.type="text/javascript",t.src="https://giscus.app/client.js",t.setAttribute("data-repo","PJ-568/568tools"),t.setAttribute("data-repo-id","R_kgDOJer3gw"),t.setAttribute("data-category","Announcements"),t.setAttribute("data-category-id","DIC_kwDOJer3g84CXG0D"),t.setAttribute("data-mapping","title"),t.setAttribute("data-strict","1"),t.setAttribute("data-reactions-enabled","1"),t.setAttribute("data-emit-metadata","0"),t.setAttribute("data-input-position","top"),t.setAttribute("data-theme","https://tools.pj568.eu.org/css/568_comment.css"),t.setAttribute("data-lang",giscus_lang),t.crossOrigin="anonymous",t.async=!0,document.getElementById("giscus-container").appendChild(t)};window.addEventListener("load",giscus);