fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
audio fix
[wolnelektury.git]
/
src
/
wolnelektury
/
static
/
js
/
book_text
/
progress.js
diff --git
a/src/wolnelektury/static/js/book_text/progress.js
b/src/wolnelektury/static/js/book_text/progress.js
index
d57a32f
..
723e03e
100644
(file)
--- a/
src/wolnelektury/static/js/book_text/progress.js
+++ b/
src/wolnelektury/static/js/book_text/progress.js
@@
-1,8
+1,11
@@
(function($){$(function(){
(function($){$(function(){
- t = $('#global-progress').data('t');
+ let t = $('#global-progress').data('t');
+
function upd_t() {
$text = $('#main-text #book-text');
function upd_t() {
$text = $('#main-text #book-text');
+ if (!$text.length) return;
+
texttop = $text.offset().top;
$footnotes = $('#footnotes', $text);
texttop = $text.offset().top;
$footnotes = $('#footnotes', $text);