1jQuery(function($) { 2 3 //#main-slider 4 $(function(){ 5 $('#main-slider.carousel').carousel({ 6 interval: 8000 7 }); 8 }); 9 10 $( '.centered' ).each(function( e ) { 11 $(this).css('margin-top', ($('#main-slider').height() - $(this).height())/2); 12 }); 13 14 $(window).resize(function(){ 15 $( '.centered' ).each(function( e ) { 16 $(this).css('margin-top', ($('#main-slider').height() - $(this).height())/2); 17 }); 18 }); 19 20 //portfolio 21 $(window).load(function(){ 22 $portfolio_selectors = $('.portfolio-filter >li>a'); 23 if($portfolio_selectors!='undefined'){ 24 $portfolio = $('.portfolio-items'); 25 $portfolio.isotope({ 26 itemSelector : 'li', 27 layoutMode : 'fitRows' 28 }); 29 $portfolio_selectors.on('click', function(){ 30 $portfolio_selectors.removeClass('active'); 31 $(this).addClass('active'); 32 var selector = $(this).attr('data-filter'); 33 $portfolio.isotope({ filter: selector }); 34 return false; 35 }); 36 } 37 }); 38 39 //contact form 40 var form = $('.contact-form'); 41 form.submit(function () { 42 $this = $(this); 43 $.post($(this).attr('action'), function(data) { 44 $this.prev().text(data.message).fadeIn().delay(3000).fadeOut(); 45 },'json'); 46 return false; 47 }); 48 49 //goto top 50 $('.gototop').click(function(event) { 51 event.preventDefault(); 52 $('html, body').animate({ 53 scrollTop: $("body").offset().top 54 }, 500); 55 }); 56 57 //Pretty Photo 58 $("a[rel^='prettyPhoto']").prettyPhoto({ 59 social_tools: false 60 }); 61});
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.