PageSourceSearch

https://moodle.com/wp-content/themes/thetheme/acf-blocks/moodle-stats/assets/scripts.js?ver=1.5.7

js moodle.com collected 2026-09-24 08:27:58 UTC 2,007 bytes, 82 lines download raw bytes

1
2(function($){	
3
4  $(document).ready(function() {
5    $('.moodle-stats-block').each(function(){
6      var block = $(this);
7      if (!block.hasClass('block-processed')) {
8
9        $('.stat', block).each(function(){
10          var item = $(this);
11          if (item.visible(true)) {
12            count_up($('.number', item));
13            item.addClass('already-visible');
14          }
15    
16          $(window).scroll(function(event) {
17            if (!item.hasClass('already-visible') && !item.hasClass('come-in') && item.visible(true)) {
18              count_up($('.number', item));
19              item.addClass("come-in");
20            } 
21          }),scroll();
22        });
23
24        if ($('.logos', block).length > 0) {
25          $('.logos-inner', block).lightSlider({
26            item: 4,
27            slideMover: 1,
28            slideMargin: 0,
29            auto: true,
30            loop: true,
31            pause: 5000,
32            speed: 600,
33            controls: true,
34            pager: false,
35            prevHtml: '<span>Previous</span>',
36            nextHtml: '<span>Next</span>',
37            responsive : [
38              {
39                breakpoint:767,
40                settings: {
41                  item:2,
42                  }
43                },
44              {
45                breakpoint:399,
46                settings: {
47                  item:1,
48                }
49              }
50          ]
51          });
52        }
53
54        block.addClass('block-processed');
55      }
56    });
57  });
58
59  function count_up(item) {
60    var countTo = item.attr('data-count');
61    
62    $({
63      countNum: item.text()
64    }).animate({
65      countNum: countTo
66    }, {
67      duration: 2000,
68      easing: 'swing',
69      step: function() {
70        item.text(numberWithCommas(Math.floor(this.countNum)));
71      },
72      complete: function() {
73        item.text(numberWithCommas(this.countNum));
74      }
75    });
76  }
77
78  function numberWithCommas(x) {
79    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
80  }
81
82})(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.