text: (function($) {
      "use strict";
  
      $('a.page-scroll').click(function() {
          if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
              var target = $(this.hash);
              target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
              if (target.length) {
                  $('html,body').animate({
                      scrollTop: target.offset().top - 40
                  }, 900);
                  return false;
              }
          }
      });
  
      /* White Background on Scroll */
      $(window).bind('scroll', function() {
          var navHeight = $(window).height() - 650;
          if ($(window).scrollTop() > navHeight) {
              $('.navbar-default').addClass('on');
          } else {
              $('.navbar-default').removeClass('on');
          }
      });
  
      $('body').scrollspy({
          target: '.navbar-default',
          offset: 80
      })
  
      /* PAGE LOADER */
      $('.loader').fadeOut(); // will first fade out the loading animation
      $('.preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
      $('body').delay(350).css({
          'overflow': 'visible'
      });
  
      /* WOW */
      new WOW().init();
  
      /* Testimonial Carousel */
      $("#testimonial").owlCarousel({
          navigation: false, // Show next and prev buttons
          slideSpeed: 300,
          paginationSpeed: 400,
          singleItem: true
      });
  
      /* Team Carousel */
      $(".team").owlCarousel({
       
            navigation : false, // Show next and prev buttons
            pagination : false,
            slideSpeed : 300,
            paginationSpeed : 400,
            autoHeight : true,
            itemsCustom : [
                          [0, 1],
                          [450, 2],
                          [600, 2],
                          [700, 2],
                          [1000, 3],
                          [1200, 3],
                          [1400, 3],
                          [1600, 3]
                        ],
      });
  
      /* MagnificPopup Lightbox */
      $('#lightbox').magnificPopup({
          delegate: 'a',
          //delegate: '.isotope-item:not(.isotope-hidden) a.image-link',
          type: 'image',
          gallery: {
              enabled: true,
              removalDelay: 500,
              mainClass: 'mfp-with-zoom', // this class is for CSS animation below
          }
      });
  
      /* Inline Lightbox */
      $('.open-popup-link').magnificPopup({
  
          type: 'inline',
          midClick: true,
          removalDelay: 500,
          mainClass: 'mfp-fade'
  
      });
  
      /* Skills */
      $('.skills .skills-item').each(function() {
          var progress = $(this).data('progress');
          $(this).css('width', progress + '%');
      });
  
      /* Isotope Filter */
  //    $(window).load(function(){
  //    var $container2 = $('#blog-masonry');
  //      $container2.isotope({
  //          itemSelector: '.blog'
  //      });
  //    });
      $(window).load(function() {
  //        var $container = $('#lightbox');
  //        $container.isotope({
  //            filter: '*',
  //            animationOptions: {
  //                duration: 750,
  //                easing: 'linear',
  //                queue: false
  //            }
  //        });
  //        $('.cat a').click(function() {
  //            $('.cat .active').removeClass('active');
  //            $(this).addClass('active');
  //            var selector = $(this).attr('data-filter');
  //            $container.isotope({
  //                filter: selector,
  //                animationOptions: {
  //                    duration: 750,
  //                    easing: 'linear',
  //                    queue: false
  //                }
  //            });
  //            
  //            
  ////            $container.magnificPopup({
  ////					delegate: '.isotope-item:not(.isotope-hidden) a.image-link',
  ////					type: 'image',
  ////					image: {
  ////						titleSrc: 'alt',
  ////						verticalFit: true
  ////					},
  ////					gallery:{
  ////						enabled:true
  ////					}
  ////				});  
  //            
  //            
  //            return false;
  //        });
  
      });
      
      
  //    // Execute Isotope for first time positioning
  //	$(window).load(function(){
  //		$('#lightbox').isotope({
  //		  itemSelector : '.portfolio-item',
  //		  layoutMode : 'fitRows'
  //		})
  //	});	
  //	// Execute again while using filters for gallery
  //	$('#filters a').click(function(ev){
  //            alert(1);
  //		ev.preventDefault();
  //		var selector = $(this).attr('data-filter');
  //                alert(selector);
  //                
  //		$('#lightbox').isotope({
  //			filter: selector
  //			},function() {
  //                            
  //                            alert(2);
  //				$('#lightbox').magnificPopup({
  //					delegate: '.isotope-item:not(.isotope-hidden) a.image-link',
  //					type: 'image',
  //					image: {
  //						titleSrc: 'alt',
  //						verticalFit: true
  //					},
  //					gallery:{
  //						enabled:true
  //					}
  //				});        
  //			});
  //		$('#filters > li > a').removeClass('A-select'); 
  //		$(this).addClass('A-select'); 
  //		return false;
  //	});
  //    
      
      
      
  
  })(jQuery);
  
  
  
  