1jQuery(function($) {'use strict', 2 3 //#main-slider 4 $(function(){ 5 $('#main-slider.carousel').carousel({ 6 interval: 1000 7 }); 8 }); 9 // accordian 10 $('.accordion-toggle').on('click', function(){ 11 $(this).closest('.panel-group').children().each(function(){ 12 $(this).find('>.panel-heading').removeClass('active'); 13 }); 14 15 $(this).closest('.panel-heading').toggleClass('active'); 16 }); 17 18 //Initiat WOW JS 19 new WOW().init(); 20 21 // portfolio filter 22 $(window).load(function(){'use strict'; 23 var $portfolio_selectors = $('.portfolio-filter >li>a'); 24 var $portfolio = $('.portfolio-items'); 25 $portfolio.isotope({ 26 itemSelector : '.portfolio-item', 27 layoutMode : 'fitRows' 28 }); 29 30 $portfolio_selectors.on('click', function(){ 31 $portfolio_selectors.removeClass('active'); 32 $(this).addClass('active'); 33 var selector = $(this).attr('data-filter'); 34 $portfolio.isotope({ filter: selector }); 35 return false; 36 }); 37 }); 38 39 // Contact form 40 /*var form = $('#main-contact-form'); 41 form.submit(function(event){ 42 event.preventDefault(); 43 var form_status = $('<div class="form_status"></div>'); 44 $.ajax({ 45 url: $(this).attr('action'), 46 47 beforeSend: function(){ 48 form.prepend( form_status.html('<p><i class="fa fa-spinner fa-spin"></i> Email is sending...</p>').fadeIn() ); 49 } 50 }).done(function(data){ 51 form_status.html('<p class="text-success">' + data.message + '</p>').delay(3000).fadeOut(); 52 }); 53 });*/ 54 55 56 //goto top 57 $('.gototop').click(function(event) { 58 event.preventDefault(); 59 $('html, body').animate({ 60 scrollTop: $("body").offset().top 61 }, 500); 62 }); 63 64 //Pretty Photo 65 $("a[rel^='prettyPhoto']").prettyPhoto({ 66 social_tools: false 67 }); 68});
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.