aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
authorGravatar Killy2017-10-24 16:42:03 +0300
committerGravatar Killy2017-10-24 16:42:03 +0300
commit722c3e519681c86d17b4d021f5c74255d3e5169c (patch)
tree51633502972bb7e08567d3938c3fbbf4923e9f8d /juick-www/src
parent2a934ba10e40869ebf109b31a9cfef989e09712d (diff)
www: remove unused code
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/static/scripts.js18
-rw-r--r--juick-www/src/main/static/style.css21
2 files changed, 0 insertions, 39 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index 08c02a9e..619ec7a0 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -386,24 +386,6 @@ function showCommentForm(mid, rid) {
}
}
-function showCommentFooter(e, mid, rid) {
- let a = e.closest('article');
- if (!a.querySelector('footer.comm')) {
- let form = replyForm(mid, rid);
- let footer = document.createElement('footer');
- footer.setAttribute('class', 'comm');
- footer.appendChild(taWrapper());
- let subm = document.createElement('input');
- subm.setAttribute('type', 'submit');
- subm.setAttribute('value', 'OK');
- footer.appendChild(subm);
- form.appendChild(footer);
- a.appendChild(form);
- autosize(a.querySelector('textarea'));
- }
- a.querySelector('textarea').focus();
-}
-
function attachInput() {
let inp = document.createElement('input');
inp.setAttribute('type', 'file');
diff --git a/juick-www/src/main/static/style.css b/juick-www/src/main/static/style.css
index 4058fba2..e90169d9 100644
--- a/juick-www/src/main/static/style.css
+++ b/juick-www/src/main/static/style.css
@@ -331,27 +331,6 @@ article .likes {
article .replies {
margin-left: 18px;
}
-article .comm {
- display: flex;
- margin: 13px 0 0 0;
- width: 100%;
-}
-article .comm textarea {
- border: 0;
- flex-grow: 1;
- padding: 2px;
- resize: vertical;
- vertical-align: top;
-}
-article .comm input {
- align-self: flex-start;
- background: #EEE;
- border: 1px solid #CCC;
- color: #999;
- margin-left: 6px;
- min-width: 50px;
- vertical-align: top;
-}
article .tags {
margin-top: 3px;
}