PageSourceSearch

https://amigosdoclubedacidade.com/static/js/carousel.js?2409202611

js amigosdoclubedacidade.com collected 2026-10-08 10:19:34 UTC 1,351 bytes, 51 lines download raw bytes

1$(document).ready(function(){
2
3  var conf = {
4    center: true,
5    backgroundControl: false
6  };
7
8  var cache = {
9    $carouselContainer: $('.thumbnails-carousel').parent(),
10    $thumbnailsLi: $('.thumbnails-carousel li'),
11    $controls: $('.thumbnails-carousel').parent().find('.carousel-control')
12  };
13
14  function init() {
15    cache.$carouselContainer.find('ol.carousel-indicators').addClass('indicators-fix');
16    cache.$thumbnailsLi.first().addClass('active-thumbnail');
17
18    if(!conf.backgroundControl) {
19      cache.$carouselContainer.find('.carousel-control').addClass('controls-background-reset');
20    }
21    else {
22      cache.$controls.height(cache.$carouselContainer.find('.carousel-inner').height());
23    }
24  }
25
26  function refreshOpacities(domEl) {
27    cache.$thumbnailsLi.removeClass('active-thumbnail');
28    cache.$thumbnailsLi.eq($(domEl).index()).addClass('active-thumbnail');
29  }
30
31  function bindUiActions() {
32    cache.$carouselContainer.on('slide.bs.carousel', function(e) {
33      refreshOpacities(e.relatedTarget);
34    });
35
36    cache.$thumbnailsLi.click(function(){
37      cache.$carouselContainer.carousel($(this).index());
38    });
39  }
40
41  $.fn.thumbnailsCarousel = function(options) {
42    conf = $.extend(conf, options);
43
44    init();
45    bindUiActions();
46
47    return this;
48  }
49
50  $('.thumbnails-carousel').thumbnailsCarousel();
51});

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.