diff options
author | Andrew Dolgov <[email protected]> | 2018-07-02 16:33:57 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-07-02 16:33:57 +0300 |
commit | aa1aa65ed80513c63daab8a0cb96e673b17104a8 (patch) | |
tree | df4d4aba904e439b1540e1b6a10d2a41a730c027 | |
parent | 892259c5821aa83d4b55e81cf38650f1ec5145a4 (diff) |
add locations to search results
-rw-r--r-- | css/read.css | 4 | ||||
-rw-r--r-- | js/read.js | 2 | ||||
-rw-r--r-- | read.html | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/css/read.css b/css/read.css index 7495ad3..aff6a60 100644 --- a/css/read.css +++ b/css/read.css @@ -117,8 +117,10 @@ overflow : auto; } -.toc_list b.pull-right { +.toc_list b.pull-right, +.search_results b.pull-right { margin-right : 16px; + margin-left : 16px; } .toc_sublist { @@ -284,7 +284,7 @@ function search() { $.each(results, function (i, row) { var a = $("<a>") .attr('href', '#') - .html(row.excerpt) + .html("<b class='pull-right'>" + window.book.locations.locationFromCfi(row.cfi) + "</b>" + row.excerpt) .attr('data-cfi', row.cfi) .attr('data-id', row.id) .click(function() { @@ -170,7 +170,7 @@ </div> </div> - <ol class="search_results"> </ol> + <ul class="search_results list-unstyled"> </ul> </form> |