PHP Classes

File: src/Acme/Resources/public/js/main.js

Recommend this page to a friend!
  Classes of Rafael Espinosa   Silex Enhanced   src/Acme/Resources/public/js/main.js   Download  
File: src/Acme/Resources/public/js/main.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Silex Enhanced
Silex with custom services providers.
Author: By
Last change:
Date: 9 years ago
Size: 1,257 bytes
 

Contents

Class file image Download
jQuery(function($) { $(function(){ $('#main-slider.carousel').carousel({ interval: 10000, pause: false }); }); //Ajax contact var form = $('.contact-form'); form.submit(function () { $this = $(this); $.post($(this).attr('action'), function(data) { $this.prev().text(data.message).fadeIn().delay(3000).fadeOut(); },'json'); return false; }); //smooth scroll $('.navbar-nav > li').click(function(event) { var target = $(this).find('>a').prop('hash'); if(target != '') { event.preventDefault(); $('html, body').animate({ scrollTop: $(target).offset().top }, 500); } }); //scrollspy $('[data-spy="scroll"]').each(function () { var $spy = $(this).scrollspy('refresh') }) //PrettyPhoto $("a.preview").prettyPhoto({ social_tools: false }); //Isotope $(window).load(function(){ $portfolio = $('.portfolio-items'); $portfolio.isotope({ itemSelector : 'li', layoutMode : 'fitRows' }); $portfolio_selectors = $('.portfolio-filter >li>a'); $portfolio_selectors.on('click', function(){ $portfolio_selectors.removeClass('active'); $(this).addClass('active'); var selector = $(this).attr('data-filter'); $portfolio.isotope({ filter: selector }); return false; }); }); });