text: /* =================================
  ------------------------------------
    Yoga Studio | HTML Template
    Version: 1.0
   ------------------------------------
   ====================================*/
  
  'use strict';
  
  (function ($) {
      
      /*------------------
          Preloader
      --------------------*/
      $(window).on('load', function () {
          $(".loader").fadeOut();
          $("#preloder").delay(400).fadeOut("slow");
      });
  
      /*------------------
          Background Set
      --------------------*/
      $('.set-bg').each(function () {
          var bg = $(this).data('setbg');
          $(this).css('background-image', 'url(' + bg + ')');
      });
  
      /*------------------
  		Navigation
  	--------------------*/
  	$(".mobile-menu").slicknav({
          prependTo: '#mobile-menu-wrap',
          allowParentLinks: true
      });
  
      /*------------------
          Carousel Slider
      --------------------*/
      var hero_s = $(".slider-items");
      hero_s.owlCarousel({
          loop: true,
          margin: 0,
          nav: true,
          items: 1,
          dots: false,
          animateOut: 'fadeOut',
      	animateIn: 'fadeIn',
          navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
          smartSpeed: 1200,
          autoHeight: false,
          autoplay: false,
      });
  
      /*------------------
          Carousel Slider
      --------------------*/
      $(".client-items").owlCarousel({
          items: 1,
          loop: true,
          nav: false,
          dots: true,
          margin: 0,
          onInitialized: function() {
          	var a = this.items().length;
              $("#snh-1").html("<span>1</span><span>" + a + "</span>");
          }
      });
  
      /*------------------
          About Counter Up
      --------------------*/
      $('.counter').each(function () {
          $(this).prop('Counter',0).animate({
          Counter: $(this).text()
          }, {
              duration: 4000,
              easing: 'swing',
              step: function (now) {
              $(this).text(Math.ceil(now));
              }
          });
      });
  
      /*------------------
          Elements Counter UP
      --------------------*/
      $('.mile-counter').each(function () {
          $(this).prop('Counter',0).animate({
          Counter: $(this).text()
          }, {
              duration: 4000,
              easing: 'swing',
              step: function (now) {
              $(this).text(Math.ceil(now));
              }
          });
      });
  
      /*------------------
          Accordin Active
      --------------------*/
      $('.collapse').on('shown.bs.collapse', function () {
          $(this).prev().addClass('active');
      });
  
      $('.collapse').on('hidden.bs.collapse', function () {
          $(this).prev().removeClass('active');
      });
  
      /*------------------
          Progress Loader
      --------------------*/
  	$('.circle-progress').each(function() {
  		var cpvalue = $(this).data("cpvalue");
  		var cpcolor = $(this).data("cpcolor");
  		var cpid 	= $(this).data("cpid");
  
  		$(this).append('<div class="'+ cpid +'"></div><div class="progress-value"><span class="loader-percentage">'+ cpvalue +'%</span></div>');
  
  		if (cpvalue < 100) {
  
  			$('.' + cpid).circleProgress({
  				value: '0.' + cpvalue,
  				size: 190,
                  thickness: 5,
                  startAngle: -190,
  				fill: cpcolor,
  				emptyFill: "rgba(0, 0, 0, 0)"
  			});
  		} else {
  			$('.' + cpid).circleProgress({
  				value: 1,
  				size: 187,
  				thickness: 5,
  				fill: cpcolor,
  				emptyFill: "rgba(0, 0, 0, 0)"
  			});
  		}
  	});
  
  
  
  })(jQuery);