Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function( $ ) {
- $('.counter').counterUp({
- delay: 10,
- time: 3000
- });
- });
- $('.main-menu li a').addClass("page-scroll");
- $('.panel-group .panel').first().find('.panel-collapse').addClass('in');
- $('.testimonials-tabs .nav-tabs li').first().addClass('active');
- $('.testimonials-tabs .tab-content .tab-pane').first().addClass('active');
- $('#testimonials_carousel .carousel-inner .item').first().addClass('active');
- $('#testimonials_carousel .controls .nav li').first().addClass('active');
- $(document).ready(function(ev){
- $('#testimonials_carousel').on('slide.bs.carousel', function (evt) {
- $('#testimonials_carousel .controls li.active').removeClass('active');
- $('#testimonials_carousel .controls li:eq('+$(evt.relatedTarget).index()+')').addClass('active');
- })
- });
- //jQuery for page scrolling feature - requires jQuery Easing plugin
- $(function() {
- $('a.page-scroll').bind('click', function(event) {
- var $anchor = $(this);
- $('html, body').stop().animate({
- scrollTop: $($anchor.attr('href')).offset().top
- }, 1500, 'easeInOutExpo');
- event.preventDefault();
- });
- });
- //Testimonials carousel
- jQuery(document).ready(function($) {
- $('#testimonialsCarousel').carousel({
- interval: 5000
- });
- $('#carousel-text').html($('#slide-content-0').html());
- //Handles the carousel thumbnails
- $('[id^=carousel-selector-]').click( function(){
- var id = this.id.substr(this.id.lastIndexOf("-") + 1);
- var id = parseInt(id);
- $('#myCarousel').carousel(id);
- });
- // When the carousel slides, auto update the text
- $('#testimonialsCarousel').on('slid.bs.carousel', function (e) {
- var id = $('.item.active').data('slide-number');
- $('#carousel-text').html($('#slide-content-'+id).html());
- });
- });
- jQuery(document).ready(function(){
- jQuery("#gallery").unitegallery();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement