forked from
devins.page/devins.page
my website, hosted on wisp.place
1<div style="text-align: center;">
2 <button
3 onclick="
4 const attrs = {
5 src: 'https://giscus.app/client.js',
6 id: 'giscus-script',
7 async: true,
8 'data-repo': 'intergrav/devins.page',
9 'data-repo-id': 'R_kgDONW1wiA',
10 'data-category': 'giscus',
11 'data-category-id': 'DIC_kwDONW1wiM4Cr7lb',
12 'data-mapping': 'pathname',
13 'data-strict': '0',
14 'data-reactions-enabled': '1',
15 'data-emit-metadata': '0',
16 'data-input-position': 'top',
17 'data-theme': 'fro',
18 'data-lang': 'en',
19 crossorigin: 'anonymous'
20 };
21
22 const giscus = document.createElement('script');
23 for (const key in attrs) giscus.setAttribute(key, attrs[key]);
24 this.parentNode.insertBefore(giscus, this.nextSibling);
25
26 this.style.display = 'none';
27"
28 >
29 load giscus
30 </button>
31</div>