PageSourceSearch

https://correadecastro.com.br/assets/scripts/index.js

js correadecastro.com.br collected 2026-10-09 03:39:20 UTC 1,983 bytes, 71 lines download raw bytes

1$(function () {
2    var iOS =
3        !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
4    if (iOS === true) {
5        $(".bg-parallax").css("background-attachment", "scroll");
6    }
7    AOS.init({ once: false });
8    function e(event) {
9        $('html, body').animate({
10            scrollTop: $("#carousel-equipe").offset().top - 110
11        }, 300);
12    }
13    $("#carousel-equipe").owlCarousel({
14        items: 1,
15        loop: true,
16        autoHeight: true,
17        onDragged: e,
18        onTranslated: e
19    });
20    $("#carousel-depoimentos").owlCarousel({
21        items: 1,
22        nav: true,
23        autoplay: true,
24        autoplayTimeout: 15000,
25        autoplayHoverPause: true
26    });
27    $("#carousel-reconhecimento").owlCarousel({
28        loop: true,
29        autoHeight: true,
30        autoplay: true,
31        autoplayTimeout: 5000,
32        autoplayHoverPause: true,
33        responsive: {
34            0: { items: 1 },
35            768: { items: 2 },
36            1024: { items: 3 },
37            1200: { items: 4 }
38        }
39    });
40
41    $(window).scroll(testScroll);
42    var viewed = false;
43
44    function isScrolledIntoView(elem) {
45        var docViewTop = $(window).scrollTop();
46        var docViewBottom = docViewTop + $(window).height();
47
48        var elemTop = $(elem).offset().top;
49        var elemBottom = elemTop + $(elem).height();
50
51        return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
52    }
53
54    function testScroll() {
55        if (isScrolledIntoView($("#acc-em-numeros")) && !viewed) {
56            viewed = true;
57            $('.count').each(function () {
58                $(this).prop('Counter', 0).animate({
59                    Counter: $(this).text()
60                }, {
61                    duration: 4000,
62                    easing: 'swing',
63                    step: function (now) {
64                        $(this).text(Math.ceil(now));
65                    }
66                });
67            });
68        }
69    }
70
71});

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.