Advertisement
srikat

Untitled

May 19th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. jQuery( function ( $ ) {
  2.  
  3. // FitVids
  4. $('.site-inner').fitVids();
  5.  
  6. // Testimonial Slider
  7. if( $('.testimonial-slider').length ) {
  8.  
  9. $('.testimonial-slider').bxSlider({
  10. controls: false,
  11. nextText: '',
  12. prevText: '',
  13. auto: true,
  14. pause: 7000,
  15. adaptiveHeight: true,
  16. });
  17.  
  18. }
  19.  
  20. $('.js-scroll-to-link').click(function() {
  21.  
  22. if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
  23.  
  24. var target = $(this.hash);
  25. target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
  26.  
  27. if (target.length) {
  28.  
  29. $('html, body').animate({
  30. scrollTop: target.offset().top
  31. }, 500);
  32.  
  33. return false;
  34. }
  35.  
  36. }
  37.  
  38. });
  39.  
  40. $("#nav-form-toggle").click(function(e) {
  41. e.preventDefault();
  42.  
  43. $( "#nav-form-holder" ).slideToggle();
  44.  
  45. $(this).find( ".fa" ).toggleClass( "fa-flip-vertical" );
  46.  
  47. $(this).toggleClass( "open" );
  48. });
  49.  
  50. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement