summaryrefslogtreecommitdiff
path: root/static/js/hyvortalk.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/hyvortalk.min.js')
-rw-r--r--static/js/hyvortalk.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/hyvortalk.min.js b/static/js/hyvortalk.min.js
new file mode 100644
index 0000000..f4ea4f5
--- /dev/null
+++ b/static/js/hyvortalk.min.js
@@ -0,0 +1 @@
+function initHyvorTalk(){var t=document.querySelector(".comments");if(t){var e=t.getAttribute("data-website-id"),a=t.getAttribute("data-page-id"),i=t.getAttribute("data-page-language"),d=t.getAttribute("data-loading"),r=t.getAttribute("data-page-author"),n=document.createElement("script");n.src="https://talk.hyvor.com/embed/embed.js",n.async=!0,n.type="module",document.head.appendChild(n);const o=document.createElement("hyvor-talk-comments");o.setAttribute("website-id",e),o.setAttribute("page-id",a),o.setAttribute("page-language",i),o.setAttribute("loading",d),o.setAttribute("page-author",r);n=document.documentElement.getAttribute("data-theme")||"light";o.setAttribute("colors",n),t.appendChild(o),window.addEventListener("themeChanged",t=>{t=t.detail.theme;o.setAttribute("colors",t)})}}initHyvorTalk();