Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. jQuery(document).ready(function( $ ) {
  2. $('.counter').counterUp({
  3. delay: 10,
  4. time: 3000
  5. });
  6. });
  7.  
  8.  
  9. $('.main-menu li a').addClass("page-scroll");
  10. $('.panel-group .panel').first().find('.panel-collapse').addClass('in');
  11. $('.testimonials-tabs .nav-tabs li').first().addClass('active');
  12. $('.testimonials-tabs .tab-content .tab-pane').first().addClass('active');
  13. $('#testimonials_carousel .carousel-inner .item').first().addClass('active');
  14. $('#testimonials_carousel .controls .nav li').first().addClass('active');
  15.  
  16.  
  17. $(document).ready(function(ev){
  18. $('#testimonials_carousel').on('slide.bs.carousel', function (evt) {
  19. $('#testimonials_carousel .controls li.active').removeClass('active');
  20. $('#testimonials_carousel .controls li:eq('+$(evt.relatedTarget).index()+')').addClass('active');
  21. })
  22. });
  23.  
  24. //jQuery for page scrolling feature - requires jQuery Easing plugin
  25. $(function() {
  26. $('a.page-scroll').bind('click', function(event) {
  27. var $anchor = $(this);
  28. $('html, body').stop().animate({
  29. scrollTop: $($anchor.attr('href')).offset().top
  30. }, 1500, 'easeInOutExpo');
  31. event.preventDefault();
  32. });
  33. });
  34.  
  35.  
  36. //Testimonials carousel
  37. jQuery(document).ready(function($) {
  38.  
  39. $('#testimonialsCarousel').carousel({
  40. interval: 5000
  41. });
  42.  
  43. $('#carousel-text').html($('#slide-content-0').html());
  44.  
  45. //Handles the carousel thumbnails
  46. $('[id^=carousel-selector-]').click( function(){
  47. var id = this.id.substr(this.id.lastIndexOf("-") + 1);
  48. var id = parseInt(id);
  49. $('#myCarousel').carousel(id);
  50. });
  51.  
  52.  
  53. // When the carousel slides, auto update the text
  54. $('#testimonialsCarousel').on('slid.bs.carousel', function (e) {
  55. var id = $('.item.active').data('slide-number');
  56. $('#carousel-text').html($('#slide-content-'+id).html());
  57. });
  58. });
  59.  
  60. jQuery(document).ready(function(){
  61.  
  62. jQuery("#gallery").unitegallery();
  63.  
  64. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement