diff options
author | Andrew Dolgov <[email protected]> | 2017-07-19 16:07:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-07-19 16:07:29 +0300 |
commit | ee4c7c44adabd057014b3c62cf16c6c4947ecc1a (patch) | |
tree | 480b62ffbeb0ef9110c701a3c0ad83a00fb68968 | |
parent | a95b7e9094e2ddcbe55c33f7b3e9c18f4bb5e974 (diff) |
identify chapters by spinepos in the ui
open TOC modal when clickong on chapter div, disable dedicated button
-rw-r--r-- | css/read.css | 3 | ||||
-rw-r--r-- | read.html | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/css/read.css b/css/read.css index b2a5c30..fc14305 100644 --- a/css/read.css +++ b/css/read.css @@ -112,6 +112,9 @@ body.night .loading { } } +.chapter { + cursor : pointer; +} .toc_list, .search_results, .dict_result { max-height : 300px; @@ -169,10 +169,10 @@ </span> <span class="toolbar"> - <button class="btn btn-default btn-xs" + <!-- <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#toc-modal"> <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> - </button> + </button> --> <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#settings-modal"> @@ -200,7 +200,7 @@ </div> <div class="footer"> - <div class="chapter"></div> + <div class="chapter" data-toggle="modal" data-target="#toc-modal"></div> <div class="location"> <span id="cur_page">?</span> / <span id="total_pages">?</span> (<span id="page_pct">?</span>) @@ -498,7 +498,7 @@ $(".chapter").html(""); var toc_entry = book.toc.filter(function(a) - { if (a.href == book.currentChapter.href) return a })[0]; + { if (a.spinePos == book.currentChapter.spinePos) return a })[0]; console.log(toc_entry); |