PageSourceSearch

https://unecatef.fr/wp-content/themes/unecatef/blocks/page-template-two-columns/script.js?ver=1.8.9

js unecatef.fr collected 2026-10-02 22:32:07 UTC 1,634 bytes, 48 lines download raw bytes

1var WSPageTemplateTwoColumns = function(){
2    const b = jQuery(document.body);
3    const anchors = b.find('.content_navigation__item');
4
5    const setCurrentActiveAnchor = function(){
6        const viewportTopPosition = jQuery(document).scrollTop();
7        const viewportOffset = 200;
8        let anchorByTopPosition = [];
9
10        if (anchors.length == 0) {
11            return;
12        }
13
14        anchors.each(function(){
15            const anchorTitleId = jQuery(this).attr('href');
16            const anchorTitle = jQuery(anchorTitleId);
17
18            if (anchorTitle.length == 0) {
19                return;
20            }
21
22            anchorByTopPosition.push({
23                navigationElement: jQuery(this),
24                topPosition: anchorTitle.offset().top,
25            });
26            jQuery(this).removeClass('content_navigation__item--current');
27        });
28        
29        const anchorByTopPositionGreaterThanViewportTopPosition = anchorByTopPosition.filter((anchor) => anchor.topPosition <= (viewportTopPosition + viewportOffset));
30        const currentAnchor = anchorByTopPositionGreaterThanViewportTopPosition.pop();
31
32        if (typeof currentAnchor == 'undefined') {
33            jQuery(anchors[0]).addClass('content_navigation__item--current')
34        }else{
35            currentAnchor.navigationElement.addClass('content_navigation__item--current')
36        }
37    };
38
39    setCurrentActiveAnchor();
40    jQuery(window).on('scroll', function(e){
41        setCurrentActiveAnchor();
42    });
43};
44
45jQuery(window).on('load', function(){
46    new WSPageTemplateTwoColumns();
47});
48

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.