diff options
Diffstat (limited to 'src/views/comments.pug')
-rw-r--r-- | src/views/comments.pug | 9 |
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 @@ | |||
1 | include ../mixins/comment | 1 | include ../mixins/comment |
2 | include ../mixins/header | 2 | include ../mixins/header |
3 | include ../utils | ||
3 | 4 | ||
4 | doctype html | 5 | doctype html |
5 | html | 6 | html |
@@ -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() |