From fe5ecea37a5974bd78712168b57e2c0b1d530f97 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 29 Aug 2017 17:34:03 +0300 Subject: www: post form on all pages --- juick-www/src/main/static/scripts.js | 2 +- juick-www/src/main/static/style.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'juick-www/src/main/static') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 984f0e5c..55bcf41a 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -270,7 +270,7 @@ function postformListener(formEl, ev) { } function unfoldPostForm() { - if (window.location.pathname === '/' && window.location.hash === '#post') { + if (window.location.hash === '#post') { document.querySelector('#newmessage').style.display = 'block'; var ta = document.querySelector('#newmessage textarea'); ta.style.minHeight = '70px'; diff --git a/juick-www/src/main/static/style.css b/juick-www/src/main/static/style.css index b24ee23f..b42c303e 100644 --- a/juick-www/src/main/static/style.css +++ b/juick-www/src/main/static/style.css @@ -164,6 +164,11 @@ body > header p { margin-bottom: 20px; padding: 15px; display: none; + position: absolute; + top: 3em; + right: 0; + background-color: rgba(255,255,255,.6); + backdrop-filter: blur(5px) } #newmessage textarea { border: 1px solid #CCC; -- cgit v1.2.3