aboutsummaryrefslogtreecommitdiff
path: root/src/views/comments.pug
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/comments.pug')
-rw-r--r--src/views/comments.pug9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/views/comments.pug b/src/views/comments.pug
index 8d5acf3..d9c96e9 100644
--- a/src/views/comments.pug
+++ b/src/views/comments.pug
@@ -1,5 +1,6 @@
1include ../mixins/comment 1include ../mixins/comment
2include ../mixins/header 2include ../mixins/header
3include ../utils
3 4
4doctype html 5doctype html
5html 6html
@@ -9,6 +10,14 @@ html
9 title reddit 10 title reddit
10 link(rel='stylesheet', href='/styles.css') 11 link(rel='stylesheet', href='/styles.css')
11 script(src="https://cdn.dashjs.org/latest/dash.all.min.js") 12 script(src="https://cdn.dashjs.org/latest/dash.all.min.js")
13 script.
14 function toggleDetails(details_id) {
15 var detailsElement = document.getElementById(details_id);
16 if (detailsElement) {
17 detailsElement.open = !detailsElement.open;
18 }
19 }
20
12 body 21 body
13 main#content 22 main#content
14 +header() 23 +header()