summaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/fc.js8
-rw-r--r--assets/js/fcac.js5
2 files changed, 13 insertions, 0 deletions
diff --git a/assets/js/fc.js b/assets/js/fc.js
new file mode 100644
index 0000000..ae60b50
--- /dev/null
+++ b/assets/js/fc.js
@@ -0,0 +1,8 @@
+---
+---
+ import Comments from '{{ "/assets/mscomm/comments.js" | relative_url }}'
+ export function loadComments() {
+ document.getElementById('load-comments-btn').remove();
+ customElements.define('oom-comments', Comments);
+ }
+ window.loadComments = loadComments;
diff --git a/assets/js/fcac.js b/assets/js/fcac.js
new file mode 100644
index 0000000..d14d42b
--- /dev/null
+++ b/assets/js/fcac.js
@@ -0,0 +1,5 @@
+document.addEventListener('DOMContentLoaded', function () {
+ const btn = document.getElementById('load-comments-btn');
+ btn.addEventListener('click', loadComments);
+});
+