X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6dd6758582da7f138885dc1eee41c8f9031da410..86530a9e72f32d28ef1971ac9fa705c85b1bd3b6:/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;