X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6dd6758582da7f138885dc1eee41c8f9031da410..085a24c27a95689480a9efd31821ea4bf461f19b:/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 d57a32fbd..ae5b14ac4 100644 --- a/src/wolnelektury/static/js/book_text/progress.js +++ b/src/wolnelektury/static/js/book_text/progress.js @@ -1,6 +1,7 @@ (function($){$(function(){ - t = $('#global-progress').data('t'); + let t = $('#global-progress').data('t'); + function upd_t() { $text = $('#main-text #book-text'); texttop = $text.offset().top;