veto

Simple Sinatra voting website.
git clone git://git.knutsen.co/veto
Log | Files | Refs | README | LICENSE

commit c55a5f29994e0137fd9e28e8410cf0b69e8c91ee
parent bf144eb851b7b2eaa73973b32707e78f1b25606e
Author: Fredrik <moi@knutsen.co>
Date:   Tue, 13 Nov 2018 22:26:00 +0000

Merge pull request #13 from Demonstrandum/devel

Stop mistaking edits as duplicates.
Diffstat:
Mviews/index.erb | 5++++-
Mviews/share.erb | 6++++--
2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/views/index.erb b/views/index.erb @@ -92,7 +92,10 @@ const save = () => { const inputs = $('#options li').children('input'); - let values = Array(...$('#options li span').map((i, e) => e.innerHTML)); + let values = Array(...$('#options li span') + .filter((i, e) => e.style.display !== 'none') + .map((i, e) => e.innerHTML)); + console.log(values); let bad_input = null; inputs.each(function() { diff --git a/views/share.erb b/views/share.erb @@ -4,7 +4,7 @@ <title>Share Poll</title> <%= head_tags %> <style media="screen"> - body, html { + body, html, body > div { overflow: hidden; overflow-x: hidden; overflow-y: hidden; @@ -16,6 +16,9 @@ align-items: center; justify-content: center; } + body > div { + padding: 0 5px 15px 5px; + } h3 { margin: 10px 0; } @@ -86,7 +89,6 @@ input[type=text] { position: absolute; right: -300vw; - visibility: hidden; } </style> </head>