PageSourceSearch

https://www.tjekdet.dk/themes/custom/niche_media/prototype/source/js/article.js?v=10.6.9

js tjekdet.dk collected 2026-10-02 05:50:44 UTC 955 bytes, 33 lines download raw bytes

1window.nichemediet = window.nichemediet || {};
2
3(function($) {
4
5    nichemediet.Article = function(root) {
6      this.root = root;
7      $(window).on('scroll', this._progress.bind(this));
8    }
9
10    nichemediet.Article.prototype = {
11
12      _progress : function() {
13        var article = this.root.find('.article__text .text');
14        var footer = $('.js-footer').innerHeight();
15        var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
16        var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
17        var scrolled = (winScroll / (height - footer)) * 100;
18
19        console.log(footer);
20        if (article.siblings('.paywall').length) {
21          return false;
22        }
23        else {
24          $('.article__progress__bar').css('width', (scrolled + "%"));
25        }
26      }
27    };
28
29    $('.js-article').each(function() {
30      new nichemediet.Article($(this));
31    });
32
33})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.