Skip to content

Commit

Permalink
Deploying to release from @ 149c7da 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
PJ-568 committed Apr 10, 2024
1 parent 493fdf3 commit 17d0473
Show file tree
Hide file tree
Showing 2 changed files with 510 additions and 507 deletions.
37 changes: 20 additions & 17 deletions js/giscus.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,30 @@ switch (lang) {
}

var giscus = function () {
const script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://giscus.app/client.js";
if (document.getElementById("giscus-container") != null) {
const script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://giscus.app/client.js";


script.setAttribute("data-repo", "PJ-568/568tools");
script.setAttribute("data-repo-id", "R_kgDOJer3gw");
script.setAttribute("data-category", "Announcements");
script.setAttribute("data-category-id", "DIC_kwDOJer3g84CXG0D");
script.setAttribute("data-repo", "PJ-568/568tools");
script.setAttribute("data-repo-id", "R_kgDOJer3gw");
script.setAttribute("data-category", "Announcements");
script.setAttribute("data-category-id", "DIC_kwDOJer3g84CXG0D");

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", "https://tools.pj568.eu.org/css/568_comment.css");
script.setAttribute("data-lang", giscus_lang);
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", "https://tools.pj568.eu.org/css/568_comment.css");
script.setAttribute("data-lang", giscus_lang);

script.crossOrigin = "anonymous";
script.async = true;
document.getElementById("giscus-container").appendChild(script);
script.crossOrigin = "anonymous";
script.async = true;

document.getElementById("giscus-container").appendChild(script);
}
};

window.addEventListener('load', giscus);
Loading

0 comments on commit 17d0473

Please sign in to comment.