PageSourceSearch

https://motofreterastreado.com.br/assets/js/scripts.js?v=4

js motofreterastreado.com.br collected 2026-10-02 01:18:27 UTC 5,270 bytes, 171 lines download raw bytes

1var appMaster = {
2
3    preLoader: function(){
4        imageSources = []
5        $('img').each(function() {
6            var sources = $(this).attr('src');
7            imageSources.push(sources);
8        });
9        if($(imageSources).load()){
10            $('.pre-loader').fadeOut('slow');
11        }
12    },
13
14    smoothScroll: function() {
15        // Smooth Scrolling
16        $('a[href*=\\#]:not([href=\\#carousel-example-generic])').click(function() {
17            if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
18
19                var target = $(this.hash);
20                target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
21                if (target.length) {
22                    $('html,body').animate({
23                        scrollTop: target.offset().top
24                    }, 1000);
25                    return false;
26                }
27            }
28        });
29    },
30
31    reviewsCarousel: function() {
32        // Reviews Carousel
33        $('.review-filtering').slick({
34            slidesToShow: 1,
35            slidesToScroll: 1,
36            dots: true,
37            arrows: false,
38            autoplay: true,
39            autoplaySpeed: 5000
40        });
41    },
42
43    screensCarousel: function() {
44        // Screens Carousel
45        $('.filtering').slick({
46            slidesToShow: 4,
47            slidesToScroll: 4,
48            dots: false,
49            responsive: [{
50                breakpoint: 1024,
51                settings: {
52                    slidesToShow: 2,
53                    slidesToScroll: 2,
54                    infinite: true,
55                    dots: true
56                }
57            }, {
58                breakpoint: 600,
59                settings: {
60                    slidesToShow: 2,
61                    slidesToScroll: 2
62                }
63            }, {
64                breakpoint: 480,
65                settings: {
66                    slidesToShow: 1,
67                    slidesToScroll: 1
68                }
69            }]
70        });
71
72        $('.js-filter-all').on('click', function() {
73            $('.filtering').slickUnfilter();
74            $('.filter a').removeClass('active');
75            $(this).addClass('active');
76        });
77
78        $('.js-filter-one').on('click', function() {
79            $('.filtering').slickFilter('.one');
80            $('.filter a').removeClass('active');
81            $(this).addClass('active');
82        });
83
84        $('.js-filter-two').on('click', function() {
85            $('.filtering').slickFilter('.two');
86            $('.filter a').removeClass('active');
87            $(this).addClass('active');
88        });
89
90        $('.js-filter-three').on('click', function() {
91            $('.filtering').slickFilter('.three');
92            $('.filter a').removeClass('active');
93            $(this).addClass('active');
94        });
95
96    },
97
98    animateScript: function() {
99        $('.scrollpoint.sp-effect1').waypoint(function(){$(this).toggleClass('active');$(this).toggleClass('animated fadeInLeft');},{offset:'100%'});
100        $('.scrollpoint.sp-effect2').waypoint(function(){$(this).toggleClass('active');$(this).toggleClass('animated fadeInRight');},{offset:'100%'});
101        $('.scrollpoint.sp-effect3').waypoint(function(){$(this).toggleClass('active');$(this).toggleClass('animated fadeInDown');},{offset:'100%'});
102        $('.scrollpoint.sp-effect4').waypoint(function(){$(this).toggleClass('active');$(this).toggleClass('animated fadeIn');},{offset:'100%'});
103        $('.scrollpoint.sp-effect5').waypoint(function(){$(this).toggleClass('active');$(this).toggleClass('animated fadeInUp');},{offset:'100%'});
104    },
105
106    revSlider: function() {
107
108//        var docHeight = $(window).height();
109
110
111//        var mainSlider = $('.tp-banner').revolution({
112//            delay: 9000,
113//            startwidth: 1170,
114//            startheight: docHeight,
115//            hideThumbs: 10,
116//            touchenabled: false,
117//            fullWidth: "on",
118//            hideTimerBar: "on",
119//            fullScreen: "on",
120//            onHoverStop: "off",
121//            fullScreenOffsetContainer: ""
122//        });
123
124    },
125
126    scrollMenu: function(){
127        var num = 50; //number of pixels before modifying styles;
128        if ($(window).scrollTop() > num) {
129            $('nav').addClass('scrolled');
130        }
131        $(window).bind('scroll', function () {
132            if ($(window).scrollTop() > num) {
133                $('nav').addClass('scrolled');
134
135            } else {
136                $('nav').removeClass('scrolled');
137            }
138        });
139
140        $('ul.navbar-nav li a').bind('click', function(){
141            if($(this).closest('.navbar-collapse').hasClass('in')){
142                $(this).closest('.navbar-collapse').removeClass('in');
143            }
144        });;
145
146    },
147    placeHold: function(){
148        // run Placeholdem on all elements with placeholders
149       // Placeholdem(document.querySelectorAll('[placeholder]'));
150    }
151
152}; // AppMaster
153
154
155$(document).ready(function() {
156
157    appMaster.smoothScroll();
158//
159    appMaster.reviewsCarousel();
160//
161    appMaster.screensCarousel();
162//
163    appMaster.animateScript();
164//
165    appMaster.revSlider();
166//
167    appMaster.scrollMenu();
168
169//    appMaster.placeHold();
170
171});

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.