PageSourceSearch

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

js moodle.com collected 2026-09-24 08:28:00 UTC 1,013 bytes, 42 lines download raw bytes

1
2(function($){	
3
4  $(document).ready(function() {
5    $('.promo-block').each(function(){
6      var block = $(this);
7      if (!block.hasClass('block-processed')) {
8        const now = Date.now();
9        $('li.promo', block).each(function(){
10          var end = $(this).data('enddate') * 1000;
11          if (now > end) {
12            $(this).remove();
13          }
14        });
15
16        if ($('li.promo', block).length > 0) {
17          $('.promo-list > ul', block).lightSlider({
18            item: 1,
19            slideMover: 1,
20            slideMargin: 0,
21            adaptiveHeight: true,
22            auto: true,
23            loop: true,
24            pause: 5000,
25            speed: 600,
26            controls: true,
27            pager: false,
28            pauseOnHover: true,
29            prevHtml: '<span>Previous</span>',
30            nextHtml: '<span>Next</span>',
31          });
32        }
33        else {
34          block.remove();
35        }
36
37        block.addClass('block-processed');
38      }
39    });
40  });
41
42})(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.