PHP Classes

File: docs/js/main.js

Recommend this page to a friend!
  Classes of ask sa sa   Rimau waf   docs/js/main.js   Download  
File: docs/js/main.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Rimau waf
Application to configure Web server module options
Author: By
Last change:
Date: 1 year ago
Size: 1,228 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) { event.preventDefault(); var target = $(this).find('>a').prop('hash'); $('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; }); }); });