Files
calibre-web/cps/templates
Ross Williams 22a93a28e2 Refactor epub reader progress calculation
The code in epub-progress.js was causing the epub file to be loaded
twice over the network, because it created a second instance of the
epub.js library. I moved all the progress percentage display code into
epub.js. Only the locationchange polyfill code was left in the separate
file, renamed to locationchange-polyfill.js.

I rewrote the percentage progress code to use epub.js events,
giving more succinct and readable code. Also, I added localStorage
caching of the epub location calculations, required for displaying
percentage progress, which can take up to 60-90 seconds to calculate on
longer ebooks. This localStorage caching approach is recommended by
epub.js in the `locations.html` example in their repo.

Signed-off-by: Ross Williams <ross@ross-williams.net>
2025-02-21 04:15:37 +00:00
..
2023-03-25 10:42:36 +01:00
2024-11-23 15:46:20 +01:00
2024-11-23 15:46:20 +01:00
2024-11-23 15:46:20 +01:00
2024-12-08 17:29:03 -08:00
2024-05-11 14:26:43 +02:00
2024-11-23 15:46:20 +01:00
2023-04-13 19:01:53 +02:00
2021-07-30 09:25:19 +02:00
2023-05-27 16:25:06 +02:00
2023-08-31 17:03:56 +02:00
2022-12-25 10:32:01 +01:00
2023-01-04 13:30:13 +11:00
2021-10-06 22:06:33 +02:00
2024-08-23 09:44:11 +02:00
2023-02-05 08:47:10 +01:00
2024-08-02 18:08:18 +02:00