%PDF- %PDF-
Direktori : /var/www/projetos/spanish.ongrace.com/wp-content/themes/flash/js/ |
Current File : /var/www/projetos/spanish.ongrace.com/wp-content/themes/flash/js/flash.min.js |
jQuery(document).ready(function(){function a(a){a.matches?jQuery(".main-navigation .menu").slideUp("slow"):jQuery("#site-navigation ul").show()}var b=window.matchMedia("(max-width: 980px)");a(b),b.addListener(a),jQuery('#site-navigation li > a[href*="#"]').click(function(){a(b)});var c=function(){jQuery(".search-wrap .search-box").removeClass("active")};if(jQuery(".search-wrap .search-icon").on("click",function(){jQuery(".search-wrap .search-box").toggleClass("active"),setTimeout(function(){jQuery(".search-wrap .search-box.active input").focus()},200),jQuery(document).on("keyup",function(a){27===a.keyCode&&jQuery(".search-wrap .search-box").hasClass("active")&&c()}),jQuery(document).on("click.outEvent",function(a){a.target.closest(".search-wrap")||(c(),jQuery(document).off("click.outEvent"))})}),jQuery(".main-navigation .menu-item-has-children").append('<span class="sub-toggle"> <i class="fa fa-angle-down"></i> </span>'),jQuery(".main-navigation .menu-toggle").click(function(){jQuery(".main-navigation .menu").slideToggle("slow")}),jQuery(".main-navigation .sub-toggle").on("click",function(){var a=jQuery(this).children(".fa"),b=jQuery(this).parent("li"),c=b.siblings(".menu-item-has-children"),d=c.find(".fa");a.toggleClass("animate-icon"),d.hasClass("animate-icon")&&d.removeClass("animate-icon"),c.not(b).removeClass("mobile-menu--slided").children("ul").slideUp("1000"),b.toggleClass("mobile-menu--slided").children("ul").slideToggle("1000")}),jQuery(window).load(function(){var a=jQuery("#masthead-sticky-wrapper").height()-1;jQuery("#site-navigation").onePageNav({currentClass:"current-flash-item",changeHash:!1,scrollSpeed:1500,scrollOffset:a,scrollThreshold:.5,filter:"",easing:"swing"})}),"undefined"!=typeof jQuery.fn.sticky){var d=jQuery("#wpadminbar");d.length?jQuery(".header-sticky .site-header").sticky({topSpacing:d.height()}):jQuery(".header-sticky .site-header").sticky({topSpacing:0})}"undefined"!=typeof jQuery.fn.counterUp&&jQuery(".counter").counterUp({delay:10,time:1e3}),jQuery(document).ready(function(){jQuery("#scroll-up").hide(),jQuery(function(){jQuery(window).scroll(function(){jQuery(this).scrollTop()>1e3?jQuery("#scroll-up").fadeIn():jQuery("#scroll-up").fadeOut()}),jQuery("a#scroll-up").click(function(){return jQuery("body,html").animate({scrollTop:0},800),!1})})}),jQuery("#preloader-background").length>0&&setTimeout(function(){jQuery("#preloader-background").hide()},600);var e=jQuery(".site-header"),f=e.height(),g=jQuery(window).height(),h=jQuery(".tg-slider-widget.full-screen .swiper-container");jQuery("body").hasClass("transparent")?h.css({height:g}):h.css({height:g-f})}),jQuery(window).on("load",function(){if("function"==typeof Swiper){jQuery(".tg-section.tg-slider-widget").each(function(a,b){var c=jQuery(this).find(".swiper-container"),d=jQuery(this).find(".swiper-button-next"),e=jQuery(this).find(".swiper-button-prev");f="tgsliderinstance-"+a;var f=new Swiper(c,{paginationClickable:!0,slidesPerView:1,autoplay:{delay:4e3},speed:1e3,loop:!0,navigation:{nextEl:d,prevEl:e}});jQuery(this).on({mouseenter:function(){f.autoplay.stop()},mouseleave:function(){f.autoplay.start()}}),setTimeout(function(){f.update()},500)});new Swiper(".tg-testimonial-widget .swiper-container",{pagination:{el:".swiper-pagination",clickable:!0},paginationClickable:!0,direction:"horizontal",slidesPerView:2,spaceBetween:30,breakpoints:{1024:{slidesPerView:2,spaceBetween:30},768:{slidesPerView:1,spaceBetween:10},640:{slidesPerView:1,spaceBetween:10},320:{slidesPerView:1,spaceBetween:10}}}),new Swiper(".tg-client-widget .swiper-container",{slidesPerView:4,autoplay:1e3,direction:"horizontal",setWrapperSize:!0})}if("function"==typeof jQuery.fn.isotope){var a=jQuery(".grid").isotope({itemSelector:".element-item",layoutMode:"fitRows"}),b={numberGreaterThan50:function(){var a=jQuery(this).find(".number").text();return parseInt(a,10)>50},ium:function(){var a=jQuery(this).find(".name").text();return a.match(/ium$/)}};jQuery(".filters-button-group").on("click","button",function(){var c=jQuery(this).attr("data-filter");c=b[c]||c,a.isotope({filter:c})}),jQuery(".button-group").each(function(a,b){var c=jQuery(b);c.on("click","button",function(){c.find(".is-checked").removeClass("is-checked"),jQuery(this).addClass("is-checked")})})}});