From da36af8bcdaf2344fdb9019d1c17f44ff90316c4 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sun, 20 Oct 2013 21:12:57 +0200 Subject: Added a small thing to list studies. --- design/style.css | 11 +++++++++++ js/liststudy.js | 12 +++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/design/style.css b/design/style.css index 5e26d29..99903d1 100644 --- a/design/style.css +++ b/design/style.css @@ -243,6 +243,17 @@ hr { border-bottom: 1px dashed #AAA; } +li .info { + display: inline-block; + width: 50px; + color: #444; +} + +li p { + margin-top: 4px; + margin-bottom: 4px; +} + /* CARDS */ diff --git a/js/liststudy.js b/js/liststudy.js index f01f656..2d340c9 100644 --- a/js/liststudy.js +++ b/js/liststudy.js @@ -72,7 +72,8 @@ function show_contents_table() { var html = ''; for (var i = 0; i < batch_data.columns.length; i++) { var c = batch_data.columns[i]; - html += ''; + html += '' ; } html += ''; for (var i = 0; i < items.length; i++) { @@ -111,6 +112,15 @@ function cs(col) { $("chsl"+col).onclick = function() { ch(col); }; } +function lcol(col) { + html = '

Show complete table

'; + $("items").innerHTML = html; +} + function show_reviews_table() { // eventually, will also show a graph of progress. or maybee not. if (reviews_data.length == 0) { -- cgit v1.2.3
' + c + ' - hide' + c + ' hide' + + (i != 0 ? ' list' : '') + 'winfailscore