PageSourceSearch

https://www.pf-lindon.fr/wp-content/plugins/mwt-addons-for-elementor/assets/js/counter-up.js?ver=7.1.3

js pf-lindon.fr collected 2026-10-07 04:22:11 UTC 1,372 bytes, 44 lines download raw bytes

1/**
2 * Start mwt counter widget script
3 */
4
5(function ($) {
6    /**
7     * @param $scope The Widget wrapper element as a jQuery element
8     * @param $ The jQuery alias
9     */
10    var WidgetMWTCounterUp = function ($scope, $) {
11        var $counterContainer = $scope.find(".mwt-elementor-counters-container"),
12            $counterElement = $counterContainer.find(".mwt-elementor-counter-number");
13        const observerElement = document.querySelectorAll('.mwt-elementor-counter-number');
14        const options = {
15            root: null,
16            rootMargin: '0px',
17            threshold: 1
18        }
19        const observer = new IntersectionObserver((entries, observer) => {
20            entries.forEach(entry => {
21                if (entry.isIntersecting) {
22                    const counter = entry.target
23                    const $counter = $(counter);
24                    $counter.numerator($counter.data());
25                    observer.unobserve(counter);
26                }
27            })
28        }, options)
29        observerElement.forEach(i => {
30            observer.observe(i)
31        })
32    };
33
34    $(window).on('elementor/frontend/init', function () {
35        elementorFrontend.hooks.addAction(
36            'frontend/element_ready/counter-up.default',
37            WidgetMWTCounterUp
38        );
39    });
40})(jQuery);
41
42/**
43 * End mwt counter widget script
44 */

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.