PageSourceSearch

https://soulsystems.com.br/js/custom.js

js soulsystems.com.br collected 2026-10-02 00:26:45 UTC 7,450 bytes, 298 lines download raw bytes

1/*
2 * @package Saifway
3 * @subpackage Saifway HTML
4 * 
5 * Template Scripts
6 * Created by Tripples
7 
8 1. Fixed header
9 2. Main slideshow
10 3. Owl Carousel
11 4. Video popup
12 5. Counter
13 6. Contact map
14 7. Back to top
15 
16 */
17
18
19jQuery(function ($) {
20    "use strict";
21
22
23    /* ----------------------------------------------------------- */
24    /*  Fixed header
25     /* ----------------------------------------------------------- */
26
27    $(window).on('scroll', function () {
28        if ($(window).scrollTop() > 100) {
29            $('.site-navigation, .header-white').addClass('navbar-fixed');
30        } else {
31            $('.site-navigation, .header-white').removeClass('navbar-fixed');
32        }
33    });
34
35
36    /* ----------------------------------------------------------- */
37    /*  Main slideshow
38     /* ----------------------------------------------------------- */
39
40    $('#main-slide').carousel({
41        pause: true,
42        interval: 100000,
43    });
44
45
46
47    /* ----------------------------------------------------------- */
48    /*  Owl Carousel
49     /* ----------------------------------------------------------- */
50
51    //Page slide
52
53    $(".box-slide").owlCarousel({
54
55        loop: true,
56        autoPlay: false,
57        navigation: true,
58        pagination: true,
59        navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
60        slideSpeed: 800,
61        items: 1,
62        itemsDesktop: [1199, 1],
63        itemsDesktopSmall: [980, 1],
64        itemsTablet: [768, 1],
65        itemsTabletSmall: false,
66        itemsMobile: [479, 1]
67
68    });
69
70    //Product slide
71
72    $("#product-slide").owlCarousel({
73
74        loop: true,
75        margin: 20,
76        navigation: true,
77        pagination: false,
78        navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
79        items: 3,
80        itemsDesktop: [1199, 3],
81        itemsDesktopSmall: [980, 3],
82        itemsTablet: [768, 2],
83        itemsTabletSmall: false,
84        itemsMobile: [479, 1]
85
86    });
87
88
89    //Testimonial slide
90
91    $("#testimonial-slide").owlCarousel({
92
93        loop: true,
94        margin: 20,
95        navigation: false,
96        pagination: true,
97        items: 2,
98        itemsDesktop: [1199, 2],
99        itemsDesktopSmall: [980, 2],
100        itemsTablet: [768, 2],
101        itemsTabletSmall: false,
102        itemsMobile: [479, 1]
103
104    });
105
106    //Page slide
107
108    $("#page-slide").owlCarousel({
109
110        loop: true,
111        autoPlay: true,
112        navigation: true,
113        pagination: true,
114        navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
115        slideSpeed: 800,
116        items: 1,
117        itemsDesktop: [1199, 1],
118        itemsDesktopSmall: [980, 1],
119        itemsTablet: [768, 1],
120        itemsTabletSmall: false,
121        itemsMobile: [479, 1]
122
123    });
124
125
126    //Partners slide
127
128    $("#partners-carousel").owlCarousel({
129
130        loop: true,
131        margin: 20,
132        navigation: false,
133        pagination: true,
134        items: 5,
135        itemsDesktop: [1199, 3],
136        itemsDesktopSmall: [980, 2],
137        itemsTablet: [768, 2],
138        itemsTabletSmall: false,
139        itemsMobile: [479, 1]
140
141    });
142
143    //Team slide
144
145    $("#team-slide").owlCarousel({
146
147        loop: true,
148        margin: 20,
149        navigation: true,
150        pagination: false,
151        navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
152        items: 4,
153        itemsDesktop: [1199, 4],
154        itemsDesktopSmall: [980, 3],
155        itemsTablet: [768, 2],
156        itemsTabletSmall: false,
157        itemsMobile: [479, 1]
158
159    });
160
161
162    /* ----------------------------------------------------------- */
163    /*  Video popup
164     /* ----------------------------------------------------------- */
165    $(document).ready(function () {
166
167        $(".popup").colorbox({iframe: true, innerWidth: 650, innerHeight: 409});
168
169    });
170
171
172
173    /* ----------------------------------------------------------- */
174    /*  Counter
175     /* ----------------------------------------------------------- */
176
177    $('.counterUp').counterUp({
178        delay: 10,
179        time: 1000
180    });
181
182
183
184    /* ----------------------------------------------------------- */
185    /*  Contact map
186     /* ----------------------------------------------------------- */
187
188    /*$("#map").gmap3({
189     map:{
190     options:{
191     center:[-37.8152065,144.963937],
192     zoom: 14,
193     scrollwheel: false
194     }
195     },
196     marker:{
197     values:[
198     {address:"Corner Swanston St & Flinders St, Melbourne VIC 3000, Australia", data:" Welcome To Saifway ! ! ", 
199     options:{icon: "http://themewinter.com/html/marker.png"}}
200     ],
201     options:{
202     draggable: false
203     },
204     events:{
205     mouseover: function(marker, event, context){
206     var map = $(this).gmap3("get"),
207     infowindow = $(this).gmap3({get:{name:"infowindow"}});
208     if (infowindow){
209     infowindow.open(map, marker);
210     infowindow.setContent(context.data);
211     } else {
212     $(this).gmap3({
213     infowindow:{
214     anchor:marker, 
215     options:{content: context.data}
216     }
217     });
218     }
219     },
220     mouseout: function(){
221     var infowindow = $(this).gmap3({get:{name:"infowindow"}});
222     if (infowindow){
223     infowindow.close();
224     }
225     }
226     }
227     }
228     });*/
229
230    /* ----------------------------------------------------------- */
231    /*  Contact form
232     /* ----------------------------------------------------------- */
233
234    if ($('#contact-form').length > 0) {
235        $('#contact-form').submit(function () {
236
237            var $form = $(this),
238                    $error = $form.find('.error-container'),
239                    action = $form.attr('action');
240
241            $error.slideUp(750, function () {
242                $error.hide();
243
244                var $name = $form.find('.form-control-name'),
245                        $email = $form.find('.form-control-email'),
246                        $subject = $form.find('.form-control-subject'),
247                        $message = $form.find('.form-control-message');
248
249                $.post(action, {
250                    name: $name.val(),
251                    email: $email.val(),
252                    subject: $subject.val(),
253                    message: $message.val()
254                },
255                        function (data) {
256                            $error.html(data);
257                            $error.slideDown('slow');
258
259                            if (data.match('success') != null) {
260                                $name.val('');
261                                $email.val('');
262                                $subject.val('');
263                                $message.val('');
264                            }
265                        }
266                );
267
268            });
269
270            return false;
271
272        });
273    }
274
275
276    /* ----------------------------------------------------------- */
277    /*  Back to top
278     /* ----------------------------------------------------------- */
279
280    $(window).scroll(function () {
281        if ($(this).scrollTop() > 50) {
282            $('#back-to-top').fadeIn();
283        } else {
284            $('#back-to-top').fadeOut();
285        }
286    });
287    // scroll body to 0px on click
288    $('#back-to-top').click(function () {
289        $('#back-to-top').tooltip('hide');
290        $('body,html').animate({
291            scrollTop: 0
292        }, 800);
293        return false;
294    });
295
296    $('#back-to-top').tooltip('hide');
297
298});

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.