From: Jason Skomorowski Date: Fri, 5 Dec 2014 18:43:48 +0000 (-0500) Subject: Add current position indicator to test harness WRIS-3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d4bcde9b1af92ec7bb104c12225f9503f5781f04;p=mkws-moved-to-github.git Add current position indicator to test harness WRIS-3 --- diff --git a/examples/htdocs/tester.html b/examples/htdocs/tester.html index de99f30..bab039d 100644 --- a/examples/htdocs/tester.html +++ b/examples/htdocs/tester.html @@ -63,14 +63,20 @@ body { header { font-size: 1.3em; } -#top-bar { - background-color: #002868; - color: white; +#top-bar, #current-bar { padding: .5em; display: flex; align-items: center; justify-content: space-between; } +#top-bar { + background-color: #002868; + color: white; +} +#current-bar { + background-color: #54d8a8; + color: #002868; +} header button { margin-left: 1em; border-radius: 4px; @@ -114,27 +120,25 @@ header button:hover, header button:active, header button:focus { background-color: #C9302C; border-color: #AC2925; } -#current-bar { - background-color: #54d8a8; - color: #002868; - padding: .5em; -} #query { font-weight: bold; font-size: 110%; } -#settings { +#settings, #judiciary { flex: 1; display: flex; align-items: center; } -#results { +#results, #query-info { flex: 1; display: flex; text-align: right; align-items: center; justify-content: flex-end; } +#count { + font-size: 120%; +} #test-area { flex: 1; padding: 1em; @@ -163,10 +167,15 @@ header button:hover, header button:active, header button:focus {
- Relevant to query ? - - - + + Relevant to query ? + + + + + + +
@@ -203,6 +212,7 @@ var showNext = function () { $('#test-subject').html(this.widgetMarkup.replace("{{query}}", this.queries[next])); $('#query').html('"' + this.queries[next] + '"'); next++; + $('#count').html(next + " / " + this.queries.length); mkws.init('#test-subject'); } }