@ -1,5 +1,5 @@
jQuery ( document ) . ready ( function ( $ ) { "use strict" ; $ ( document ) . foundation ( ) ; if ( $ ( 'form#contact_form' ) . length > 0 ) { $ ( 'form#contact_form' ) . validate ( { messages : { } , submitHandler : function ( form ) { $ . ajax ( { type : 'POST' , url : 'send.php' , data : $ ( form ) . serialize ( ) , success : function ( data ) { if ( data . match ( /success/ ) ) { $ ( form ) . trigger ( 'reset' ) ; $ ( '#thanks' ) . show ( ) . fadeOut ( 5000 ) ; } } } ) ; return false ; } } ) ; }
$ ( '#menu-toggler' ) . on ( 'click' , function ( ) { $ ( '.top-bar-section' ) . toggle ( ) ; return false ; } ) ; if ( $ ( '#slides' ) . length > 0 ) { $ ( '#slides' ) . on ( 'init.slides' , function ( ) { var that = this ; setTimeout ( function ( ) { $ ( '.slides-container' , that ) . children ( ) . eq ( 0 ) . addClass ( 'active' ) ; } , 300 ) ; } ) ; $ ( '#slides' ) . superslides ( { animation : 'fade' , hashchange : false , play : 5 000} ) ; $ ( '#slides' ) . on ( 'animated.slides' , function ( ) { $ ( '.slides-container' , this ) . children ( ) . removeClass ( 'active' ) ; var index = $ ( this ) . superslides ( 'current' ) ; var that = this ; setTimeout ( function ( ) { $ ( '.slides-container' , that ) . children ( ) . eq ( index ) . addClass ( 'active' ) ; } , 300 ) ; } ) ; }
$ ( '#menu-toggler' ) . on ( 'click' , function ( ) { $ ( '.top-bar-section' ) . toggle ( ) ; return false ; } ) ; if ( $ ( '#slides' ) . length > 0 ) { $ ( '#slides' ) . on ( 'init.slides' , function ( ) { var that = this ; setTimeout ( function ( ) { $ ( '.slides-container' , that ) . children ( ) . eq ( 0 ) . addClass ( 'active' ) ; } , 300 ) ; } ) ; $ ( '#slides' ) . superslides ( { animation : 'fade' , hashchange : false , play : 10 000} ) ; $ ( '#slides' ) . on ( 'animated.slides' , function ( ) { $ ( '.slides-container' , this ) . children ( ) . removeClass ( 'active' ) ; var index = $ ( this ) . superslides ( 'current' ) ; var that = this ; setTimeout ( function ( ) { $ ( '.slides-container' , that ) . children ( ) . eq ( index ) . addClass ( 'active' ) ; } , 300 ) ; } ) ; }
if ( $ ( '.slides' ) . length > 0 ) { $ ( '.slides' ) . slick ( { autoplay : true , pauseOnHover : false , dots : true , speed : 1000 , arrows : false } ) ; }
new WOW ( ) . init ( ) ; var bars = $ ( ".bars" ) ; for ( var i = 0 ; i < bars . length ; i ++ ) { var bar = bars [ i ] ; var highlights = $ ( '> li > .highlighted' , $ ( bar ) ) ; for ( var j = 0 ; j < highlights . length ; j ++ ) { var highlight = highlights [ j ] ; $ ( highlight ) . appear ( function ( ) { var percent = $ ( this ) . attr ( "data-percent" ) ; $ ( this ) . animate ( { 'width' : percent + '%' } , 1700 , function ( ) { $ ( highlight ) . css ( 'overflow' , 'visible' ) ; } ) ; } ) ; } }
$ ( ".milestone" ) . appear ( function ( ) { $ ( '.number' , $ ( this ) ) . countTo ( { speed : 1400 } ) ; } ) ; if ( $ ( '.clients' ) . length > 0 ) { $ ( '.clients' ) . slick ( { slidesToShow : 5 , slidesToScroll : 1 , autoplay : true , autoplaySpeed : 3000 , pauseOnHover : false , responsive : [ { breakpoint : 767 , settings : { slidesToShow : 3 , slidesToScroll : 1 } } , { breakpoint : 480 , settings : { slidesToShow : 2 , slidesToScroll : 1 } } ] } ) ; }