PageSourceSearch

https://www.delpizzoarquitetura.com.br/js/scripts.js?1791146535

js delpizzoarquitetura.com.br collected 2026-10-04 20:42:28 UTC 20,825 bytes, 630 lines download raw bytes

1// all functions ------------------
2function initOutdoor() {
3    "use strict";
4	$(window).load(function() {
5		"use strict";
6		$(".loader").fadeOut(500, function() {
7			$("#main").animate({
8				opacity: "1"
9			});
10		});
11		initgalheight();
12	});	
13    initgalheight();
14	// css ------------------
15	$(".hero-title , .team-social , .srtp ul , .slide-title , .scroll-page-nav , .count-folio").addClass("cdc");
16    function a() {
17        $(" .fullheight-carousel .item").css({
18            height: $(".fullheight-carousel").outerHeight(true)
19        });
20        $(".hero-slider .item").css({
21            height: $(".hero-slider").outerHeight(true)
22        });
23        $(".slideshow-item .item").css({
24            height: $(".slideshow-item ").outerHeight(true)
25        });
26        $("#content-sidebar").css({
27            top: $("header").outerHeight(true)
28        });
29        $(".cdc").css({
30            "margin-top": -1 * $(".cdc").height() / 2 + "px"
31        });
32        var a = $(window).height(), b = $("header").outerHeight(), c = $("footer").outerHeight(), d = $(".port-subtitle-holder").outerHeight(), e = $(".p_horizontal_wrap");
33        e.css("height", a - b - c);
34        $(" #portfolio_horizontal_container .portfolio_item img , .port-desc-holder").css({
35            height: $(".p_horizontal_wrap").outerHeight(true) - d
36        });
37        $(".mm").css({
38            "padding-top": $("header").outerHeight(true)
39        });
40    }
41    a();
42    $(window).resize(function() {
43        a();
44    });
45    $(".show-hidden-info").on("click", function() {
46        $(this).toggleClass("vhi");
47        $(this).closest(".resume-box").find(".hidden-info").slideToggle(500);
48    });
49    function d() {
50        var a = document.querySelectorAll(".intense");
51        Intense(a);
52    }
53    d();
54	//swiper  ------------------
55    var e = $("#horizontal-slider").data("mwc");
56    var ec = $("#horizontal-slider").data("mwa");
57    var f = new Swiper("#horizontal-slider", {
58        speed: 1200,
59        loop: true,
60        preventLinks: true,
61        grabCursor: true,
62        mousewheelControl: e,
63        mode: "horizontal",
64        pagination: ".pagination",
65        paginationClickable: true,
66        autoplay: 5000
67    });
68    $(".hor a.arrow-left").on("click", function(a) {
69        a.preventDefault();
70        f.swipePrev();
71    });
72    $(".hor a.arrow-right").on("click", function(a) {
73        a.preventDefault();
74        f.swipeNext();
75    });
76	// popups  ------------------
77    $(".image-popup").magnificPopup({
78        type: "image",
79        closeOnContentClick: false,
80        removalDelay: 600,
81        mainClass: "my-mfp-slide-bottom",
82        image: {
83            verticalFit: false
84        }
85    });
86    $(".popup-youtube, .popup-vimeo , .show-map").magnificPopup({
87        disableOn: 700,
88        type: "iframe",
89        removalDelay: 600,
90        mainClass: "my-mfp-slide-bottom"
91    });
92    $(".popup-gallery").magnificPopup({
93        delegate: "a",
94        type: "image",
95        fixedContentPos: true,
96        fixedBgPos: true,
97        tLoading: "Loading image #%curr%...",
98        removalDelay: 600,
99        closeBtnInside: true,
100        zoom: {
101            enabled: true,
102            duration: 700
103        },
104        gallery: {
105            enabled: true,
106            navigateByImgClick: true,
107            preload: [ 0, 1 ]
108        },
109        image: {
110            tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
111        }
112    });
113    $(".hide-column").bind("click", function() {
114        $(".not-vis-column").animate({
115            right: "-100%"
116        }, 500);
117    });
118    $(".show-info").bind("click", function() {
119        $(".not-vis-column").animate({
120            right: "0"
121        }, 500);
122    });
123	// owl carousel  ------------------
124    var b = $(".full-width");
125    b.owlCarousel({
126        navigation: false,
127        slideSpeed: 500,
128        singleItem: true,
129        pagination: true
130    });
131    $(".fullwidth-slider-holder a.next-slide").on("click", function() {
132        $(this).closest(".fullwidth-slider-holder").find(b).trigger("owl.next");
133    });
134    $(".fullwidth-slider-holder  a.prev-slide").on("click", function() {
135        $(this).closest(".fullwidth-slider-holder").find(b).trigger("owl.prev");
136    });
137    var heroslides = $(".hero-slider");
138    var synksldes = $(".hero-slider.synkslider");
139    heroslides.each(function(index) {
140        var auttime = eval($(this).data("attime"));
141        var rtlt = eval($(this).data("rtlt"));
142        $(this).owlCarousel({
143            items: 1,
144            loop: true,
145            margin: 0,
146            autoplay: true,
147            autoplayTimeout: auttime,
148            autoplayHoverPause: false,
149            autoplaySpeed: 1600,
150            rtl: rtlt
151        });
152    });
153    synksldes.on("change.owl.carousel", function(a) {
154        synkslider2.trigger("to.owl.carousel", [ a.item.index, 10, true ]);
155    });
156    var auttime2 = $(".hero-text").data("attime");
157    var synkslider2 = $(".hero-text");
158    synkslider2.owlCarousel({
159        loop: true,
160        margin: 0,
161        nav: false,
162        items: 1,
163        dots: false,
164        animateOut: "fadeOut",
165        startPosition: 1,
166        autoHeight: true,
167        autoplay: true,
168        autoplayTimeout: auttime2,
169        autoplayHoverPause: false,
170        autoplaySpeed: 1600
171    });
172    var customSlider = $(".custom-slider");
173    customSlider.owlCarousel({
174        loop: true,
175        margin: 0,
176        nav: false,
177        items: 1
178    });
179    $(".custom-slider-holder a.next-slide").on("click", function() {
180        $(this).closest(".custom-slider-holder").find(customSlider).trigger("next.owl.carousel");
181    });
182    $(".custom-slider-holder a.prev-slide").on("click", function() {
183        $(this).closest(".custom-slider-holder").find(customSlider).trigger("prev.owl.carousel");
184    });
185    var slsl = $(".slideshow-item");
186    slsl.owlCarousel({
187        loop: true,
188        margin: 0,
189        nav: false,
190        items: 1,
191		animateOut: 'fadeOut',
192    	animateIn: 'fadeIn',
193        autoplay: true,
194        autoplayTimeout: 4e3,
195        autoplayHoverPause: false,
196        autoplaySpeed: 3600
197    });
198    var testiSlider = $(".testimonials-slider");
199    testiSlider.owlCarousel({
200        loop: true,
201        margin: 0,
202        nav: false,
203        items: 1,
204        dots: true
205    });
206    $(".testimonials-slider-holder a.next-slide").on("click", function() {
207        $(this).closest(".testimonials-slider-holder").find(testiSlider).trigger("next.owl.carousel");
208    });
209    $(".testimonials-slider-holder a.prev-slide").on("click", function() {
210        $(this).closest(".testimonials-slider-holder").find(testiSlider).trigger("prev.owl.carousel");
211    });
212    /*
213	$(".servicses-holder li").hover(function() {
214        var a = $(this).data("bgscr");
215        $(".bg-ser").css("background-image", "url(" + a + ")");
216    });
217	*/
218    $(".scroll-page-nav  ul").singlePageNav({
219        filter: ":not(.external)",
220        updateHash: false,
221        offset: 70,
222        threshold: 120,
223        speed: 1200,
224        currentClass: "act-link"
225    });
226	// isotope  ------------------
227    function n() {
228        if ($(".gallery-items").length) {
229            var a = $(".gallery-items").isotope({
230                singleMode: true,
231                columnWidth: ".grid-sizer, .grid-sizer-second, .grid-sizer-three",
232                itemSelector: ".gallery-item, .gallery-item-second, .gallery-item-three",
233                transformsEnabled: true,
234                transitionDuration: "700ms"
235            });
236            a.imagesLoaded(function() {
237                a.isotope("layout");
238            });
239            $(".gallery-filters").on("click", "a.gallery-filter", function(b) {
240                b.preventDefault();
241                var c = $(this).attr("data-filter");
242                a.isotope({
243                    filter: c
244                });
245                $(".gallery-filters a.gallery-filter").removeClass("gallery-filter-active");
246                $(this).addClass("gallery-filter-active");
247                return false;
248            });
249            a.isotope("on", "layoutComplete", function(a, b) {
250                var c = b.length;
251                $(".num-album").html(c);
252            });
253        }
254        var b = {
255            touchbehavior: true,
256            cursoropacitymax: 1,
257            cursorborderradius: "0",
258            background: "#eee",
259            cursorwidth: "10px",
260            cursorborder: "0px",
261            cursorcolor: "#292929",
262            autohidemode: false,
263            bouncescroll: false,
264            scrollspeed: 120,
265            mousescrollstep: 90,
266            grabcursorenabled: true,
267            horizrailenabled: true,
268            preservenativescrolling: true,
269            cursordragontouch: true,
270            railpadding: {
271                top: -15,
272                right: 0,
273                left: 0,
274                bottom: 0
275            }
276        };
277        $(".p_horizontal_wrap").niceScroll(b);
278        var c = $("#portfolio_horizontal_container");
279        c.imagesLoaded(function(a, d, e) {
280            var f = {
281                itemSelector: ".portfolio_item",
282                layoutMode: "packery",
283                packery: {
284                    isHorizontal: true,
285                    gutter: 0
286                },
287                resizable: true,
288                transformsEnabled: true,
289                transitionDuration: "700ms"
290            };
291            var g = {
292                itemSelector: ".portfolio_item",
293                layoutMode: "packery",
294                packery: {
295                    isHorizontal: false,
296                    gutter: 0
297                },
298                resizable: true,
299                transformsEnabled: true,
300                transitionDuration: "700ms"
301            };
302            if ($(window).width() < 768) {
303                c.isotope(g);
304                c.isotope("layout");
305                if ($(".p_horizontal_wrap").getNiceScroll()) $(".p_horizontal_wrap").getNiceScroll().remove();
306            } else {
307                c.isotope(f);
308                c.isotope("layout");
309                $(".p_horizontal_wrap").niceScroll(b);
310            }
311            $(".gallery-filters").on("click", "a", function(a) {
312                a.preventDefault();
313                var b = $(this).attr("data-filter");
314                c.isotope({
315                    filter: b
316                });
317                $(".gallery-filters a").removeClass("gallery-filter_active");
318                $(this).addClass("gallery-filter_active");
319            });
320            c.isotope("on", "layoutComplete", function(a, b) {
321                var c = b.length;
322                $(".num-album").html(c);
323            });
324        });
325    }
326    var j = $(".portfolio_item , .gallery-item").length;
327    $(".all-album , .num-album").html(j);
328    n();
329    $(window).load(function() {
330        n();
331    });
332    $(".portfolio_item a").on("click", function() {
333        var a = $(this).attr("href");
334        window.location.href = a;
335        return false;
336    });
337    $(".filter-button").on("click", function() {
338        $(".hid-filter").slideToggle(500);
339        $(".filter-button i").toggleClass("roticon");
340    });
341	//  contact form  ------------------
342    $("#contactform").submit(function() {
343        var a = $(this).attr("action");
344        $("#message").slideUp(750, function() {
345            $("#message").hide();
346            $("#submit").attr("disabled", "disabled");
347            $.post(a, {
348                name: $("#name").val(),
349                email: $("#email").val(),
350                comments: $("#comments").val()
351            }, function(a) {
352                document.getElementById("message").innerHTML = a;
353                $("#message").slideDown("slow");
354                $("#submit").removeAttr("disabled");
355                if (null != a.match("success")) $("#contactform").slideDown("slow");
356            });
357        });
358        return false;
359    });
360    $("#contactform input, #contactform textarea").keyup(function() {
361        $("#message").slideUp(1500);
362    });
363	//  other functions   ------------------
364    function showHidDes() {
365        $(".show-hid-content").removeClass("ishid");
366        $(".hidden-column").animate({
367            left: "50px",
368            opacity: 1
369        }, 500);
370        $(".anim-holder").animate({
371            left: "450px"
372        }, 500);
373    }
374    function hideHidDes() {
375        $(".show-hid-content").addClass("ishid");
376        $(".hidden-column").animate({
377            left: "-450px",
378            opacity: 0
379        }, 500);
380        $(".anim-holder").animate({
381            left: "0"
382        }, 500);
383    }
384    $(".show-hid-content").on("click", function() {
385        if ($(this).hasClass("ishid")) showHidDes(); else hideHidDes();
386    });
387    $(window).scroll(function() {
388        if ($(this).scrollTop() > 300) $(".to-top").addClass("vistotop"); else $(".to-top").removeClass("vistotop");
389    });
390    $(".to-top").on("click", function() {
391        $("html, body").animate({
392            scrollTop: 0
393        }, "slow");
394    });
395    $(".custom-scroll-link").on("click", function() {
396        var a = 70;
397        if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") || location.hostname == this.hostname) {
398            var b = $(this.hash);
399            b = b.length ? b : $("[name=" + this.hash.slice(1) + "]");
400            if (b.length) {
401                $("html,body").animate({
402                    scrollTop: b.offset().top - a
403                }, {
404                    queue: false,
405                    duration: 1200,
406                    easing: "easeInOutExpo"
407                });
408                return false;
409            }
410        }
411    });
412    $(".fix-box").scrollToFixed({
413        marginTop: 90,
414        minWidth: 1036
415    });
416    var gR = $(".gallery_horizontal"), w = $(window);
417    function initGalleryhorizontal() {
418        var a = $(window).height(), c = $("header").outerHeight(), d = $("footer").outerHeight(), e = $("#gallery_horizontal");
419        e.find("img").css("height", a - c - d);
420        if (gR.find(".owl-stage-outer").length) {
421            gR.trigger("destroy.owl.carousel");
422            gR.find(".horizontal_item").unwrap();
423        }
424        if (w.width() > 1036) gR.owlCarousel({
425            autoWidth: true,
426            margin: 10,
427            items: 3,
428            smartSpeed: 1300,
429            loop: true,
430            nav: false,
431            dots: false,
432            onInitialized: function() {
433                gR.find(".owl-stage").css({
434                    height: a - c - d,
435                    overflow: "hidden"
436                });
437            }
438        });
439    }
440    if (gR.length) {
441        initGalleryhorizontal();
442        w.on("resize.destroyhorizontal", function() {
443            setTimeout(initGalleryhorizontal, 150);
444        });
445    }
446	if (navigator.appVersion.indexOf("Win")!=-1) {	
447		var timestamp_mousewheel = 0;  
448		gR.on("mousewheel", ".owl-stage", function(a) {
449			var d = new Date();
450			if((d.getTime() - timestamp_mousewheel) > 1000){  
451				timestamp_mousewheel = d.getTime();
452			if (a.deltaY < 0) gR.trigger("next.owl"); else gR.trigger("prev.owl");
453				a.preventDefault();
454			}
455		});
456	}	
457    $(".resize-carousel-holder a.next-slide").on("click", function() {
458        $(this).closest(".resize-carousel-holder").find(gR).trigger("next.owl.carousel");
459    });
460    $(".resize-carousel-holder a.prev-slide").on("click", function() {
461        $(this).closest(".resize-carousel-holder").find(gR).trigger("prev.owl.carousel");
462    });
463	// team  ------------------	
464    $(".team-box").hover(function() {
465        $(this).find("ul.team-social").fadeIn();
466        $(this).find(".team-social a").each(function(a) {
467            var b = $(this);
468            setTimeout(function() {
469                b.animate({
470                    opacity: 1,
471                    top: "0"
472                }, 400);
473            }, 150 * a);
474        });
475    }, function() {
476        $(this).find(".team-social a").each(function(a) {
477            var b = $(this);
478            setTimeout(function() {
479                b.animate({
480                    opacity: 0,
481                    top: "50px"
482                }, 400);
483            }, 150 * a);
484        });
485        setTimeout(function() {
486            $(this).find("ul.team-social").fadeOut();
487        }, 150);
488    });
489	// counter  ------------------	
490    var $i = 1;
491    $(document.body).on("appear", ".stats", function(a) {
492        if (1 === $i) stats(2600);
493        $i++;
494    });
495    function number(a, b, c, d) {
496        if (d) {
497            var e = 0;
498            var f = parseInt(d / a);
499            var g = setInterval(function() {
500                if (e - 1 < a) c.html(e); else {
501                    c.html(b);
502                    clearInterval(g);
503                }
504                e++;
505            }, f);
506        } else c.html(b);
507    }
508    function stats(a) {
509        $(".stats .num").each(function() {
510            var b = $(this);
511            var c = b.attr("data-num");
512            var d = b.attr("data-content");
513            number(c, d, b, a);
514        });
515    }
516    $(".animaper").appear();
517	// video  ------------------	
518    var l = $(".background-video").data("vid");
519    var m = $(".background-video").data("mv");
520    $(".background-video").YTPlayer({
521        fitToBackground: true,
522        videoId: l,
523        pauseOnScroll: true,
524        mute: m,
525        callback: function() {
526            var a = $(".background-video").data("ytPlayer").player;
527        }
528    });	
529	//  Share  ------------------	
530    var shs = eval($(".share-container").attr("data-share"));
531    $(".share-container").share({
532        networks: shs
533    });
534    function hideShare() {
535        $(".show-share").addClass("isShare");
536        $(".share-container a").each(function(a) {
537            var b = $(this);
538            setTimeout(function() {
539                b.animate({
540                    opacity: 0
541                }, 500);
542            }, 120 * a);
543        });
544        setTimeout(function() {
545            $(".share-container ").removeClass("visshare");
546        }, 400);
547    }
548    function showShare() {
549        $(".show-share").removeClass("isShare");
550        $(".share-container ").addClass("visshare");
551        setTimeout(function() {
552            $(".share-container a").each(function(a) {
553                var b = $(this);
554                setTimeout(function() {
555                    b.animate({
556                        opacity: 1
557                    }, 500);
558                }, 120 * a);
559            });
560        }, 400);
561    }
562    $(".show-share").on("click", function(a) {
563        a.preventDefault();
564        if ($(".show-share").hasClass("isShare")) showShare(); else hideShare();
565    });
566	//  menu    ------------------
567    var nb = $(".nav-button"), nh = $(".nav-holder"), an = $(".nav-holder ,.nav-button ");
568    function showMenu() {
569        nb.removeClass("vis-m");
570        nh.slideDown(500);
571    }
572    function hideMenu() {
573        nb.addClass("vis-m");
574        nh.slideUp(500);
575    }
576    nb.on("click", function() {
577        if ($(this).hasClass("vis-m")) showMenu(); else hideMenu();
578    });
579}
580//  Parralax  ------------------
581function initparallax() {
582    var a = {
583        Android: function() {
584            return navigator.userAgent.match(/Android/i);
585        },
586        BlackBerry: function() {
587            return navigator.userAgent.match(/BlackBerry/i);
588        },
589        iOS: function() {
590            return navigator.userAgent.match(/iPhone|iPad|iPod/i);
591        },
592        Opera: function() {
593            return navigator.userAgent.match(/Opera Mini/i);
594        },
595        Windows: function() {
596            return navigator.userAgent.match(/IEMobile/i);
597        },
598        any: function() {
599            return a.Android() || a.BlackBerry() || a.iOS() || a.Opera() || a.Windows();
600        }
601    };
602    trueMobile = a.any();
603    if (null == trueMobile) {
604        var b = $(".content");
605        b.find("[data-top-bottom]").length > 0 && b.waitForImages(function() {
606            s = skrollr.init();
607            s.destroy();
608            skrollr.init({
609                forceHeight: !1,
610                easing: "outCubic",
611                mobileCheck: function() {
612                    return !1;
613                }
614            });
615        });
616    }
617    if (trueMobile) $(".background-video").remove();
618}
619function initgalheight() {
620    var a = $(window).height(), b = $("header").outerHeight(), c = $("footer").outerHeight(), d = $(".port-subtitle-holder").outerHeight(), e = $(".p_horizontal_wrap");
621    e.css("height", a - b - c);
622    $(" #portfolio_horizontal_container .portfolio_item img , .port-desc-holder").css({
623        height: $(".p_horizontal_wrap").outerHeight(true) - d
624    });
625}
626//   Init all fucntions  ------------------
627$(document).ready(function() {
628    initOutdoor();
629    initparallax();
630});

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.