text: /*
  Author       : Code-Theme
  Template Name: GoBiz - HTML5 Template
  Version      : 1.0
  */
  
  "use strict";
  
  jQuery(document).on('ready', function ($) {
  
      /*---------------------------------
       //------ PRELOADER ------//
       ----------------------------------*/
      $('#status').fadeOut();
      $('#preloader').delay(200).fadeOut('slow');
  
      /*---------------------------------
       //------ ANIMATE HEADER ------//
       ----------------------------------*/
      $(window).on('scroll', function () {
          var sticky = $(".sticky-header");
          var scroll = $(window).scrollTop();
          if (scroll < 265) {
              sticky.removeClass("sticky");
          } else {
              sticky.addClass("sticky");
          }
      });
  
      /*---------------------------------
       //------ Rev Slider ------//
       ----------------------------------*/
      var tpj = jQuery;
      var revapi34;
      tpj(document).ready(function () {
          if (tpj("#rev_slider_home").revolution == undefined) {
              revslider_showDoubleJqueryError("#rev_slider_home");
          } else {
              revapi34 = tpj("#rev_slider_home").show().revolution({
                  sliderType: "standard",
                  jsFileLocation: "js/revolution-slider/js/",
                  sliderLayout: "fullscreen",
                  dottedOverlay: "none",
                  delay: 9000,
                  navigation: {
                      keyboardNavigation: "on",
                      keyboard_direction: "horizontal",
                      mouseScrollNavigation: "off",
                      onHoverStop: "on",
                      touch: {
                          touchenabled: "on",
                          swipe_threshold: 75,
                          swipe_min_touches: 1,
                          swipe_direction: "horizontal",
                          drag_block_vertical: false
                      },
                      arrows: {
                          style: "zeus",
                          enable: true,
                          hide_onmobile: true,
                          hide_under: 600,
                          hide_onleave: true,
                          hide_delay: 200,
                          hide_delay_mobile: 1200,
                          tmp: '<div class="tp-title-wrap">    <div class="tp-arr-imgholder"></div> </div>',
                          left: {
                              h_align: "left",
                              v_align: "center",
                              h_offset: 30,
                              v_offset: 0
                          },
                          right: {
                              h_align: "right",
                              v_align: "center",
                              h_offset: 30,
                              v_offset: 0
                          }
                      },
                      bullets: {
                          enable: true,
                          hide_onmobile: true,
                          hide_under: 600,
                          style: "metis",
                          hide_onleave: true,
                          hide_delay: 200,
                          hide_delay_mobile: 1200,
                          direction: "horizontal",
                          h_align: "center",
                          v_align: "bottom",
                          h_offset: 0,
                          v_offset: 30,
                          space: 5,
                          tmp: '<span class="tp-bullet-img-wrap"><span class="tp-bullet-image"></span></span>'
                      }
                  },
                  viewPort: {
                      enable: true,
                      outof: "pause",
                      visible_area: "80%"
                  },
                  responsiveLevels: [1240, 1024, 778, 480],
                  gridwidth: [1240, 1024, 778, 480],
                  gridheight: [600, 550, 500, 450],
                  lazyType: "none",
                  parallax: {
                      type: "scroll",
                      origo: "enterpoint",
                      speed: 400,
                      levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50],
                  },
                  shadow: 0,
                  spinner: "off",
                  stopLoop: "off",
                  stopAfterLoops: -1,
                  stopAtSlide: -1,
                  shuffle: "off",
                  autoHeight: "off",
                  hideThumbsOnMobile: "off",
                  hideSliderAtLimit: 0,
                  hideCaptionAtLimit: 0,
                  hideAllCaptionAtLilmit: 0,
                  debugMode: false,
                  fallbacks: {
                      simplifyAll: "off",
                      nextSlideOnWindowFocus: "off",
                      disableFocusListener: false,
                  }
              });
          }
      }); /*ready*/
  
  
      /*----------------------------------
      //------ SMOOTHSCROLL ------//
      -----------------------------------*/
      smoothScroll.init({
          speed: 1000, // Integer. How fast to complete the scroll in milliseconds
          offset: 80, // Integer. How far to offset the scrolling anchor location in pixels
  
      });
  
      /*----------------------------------
      //------ LIGHTCASE ------//
      -----------------------------------*/
      $('a[data-rel^=lightcase]').lightcase();
  
  
      /*----------------------------------
      //------ ISOTOPE GALLERY ------//
      -----------------------------------*/
      /* activate jquery isotope */
      $(window).on('load', function () {
          var $container = $('.portfolio-items').isotope({
              itemSelector: '.item',
              masonry: {
                  columnWidth: '.col-xs-12'
              }
          });
      });
      // bind filter button click
      var filters = $('.filters-group ul li');
      filters.on('click', function () {
          filters.removeClass('active');
          $(this).addClass('active');
          var filterValue = $(this).attr('data-filter');
          // use filterFn if matches value
          $('.portfolio-items').isotope({
              filter: filterValue
          });
      });
  
      /*----------------------------------
      //------ OWL CAROUSEL ------//
      -----------------------------------*/
      $('.style1').owlCarousel({
          loop: true,
          margin: 10,
          autoplay: true,
          autoplayTimeout: 5000,
          responsive: {
              0: {
                  items: 1
              },
              400: {
                  items: 1,
                  margin: 20
              },
              500: {
                  items: 1,
                  margin: 20
              },
              768: {
                  items: 2,
                  margin: 20
              },
              991: {
                  items: 2,
                  margin: 20
              },
              1000: {
                  items: 3,
                  margin: 20
              }
          }
      });
  
      $('.style2').owlCarousel({
          loop: true,
          margin: 0,
          dots: false,
          autoWidth: false,
          autoplay: true,
          autoplayTimeout: 5000,
          responsive: {
              0: {
                  items: 2,
                  margin: 20
              },
              400: {
                  items: 2,
                  margin: 20
              },
              500: {
                  items: 3,
                  margin: 20
              },
              768: {
                  items: 4,
                  margin: 20
              },
              992: {
                  items: 5,
                  margin: 20
              },
              1000: {
                  items: 6,
                  margin: 20
              }
          }
      });
  
      /*----------------------------------
      //------ JQUERY SCROOLTOP ------//
      -----------------------------------*/
      var go = $(".go-up");
      $(window).on('scroll', function () {
          var scrolltop = $(this).scrollTop();
          if (scrolltop >= 50) {
              go.fadeIn();
          } else {
              go.fadeOut();
          }
      });
  
      /*----------------------------------
      //----- JQUERY COUNTER UP -----//
      -----------------------------------*/
      $('.counter').counterUp({
          delay: 10,
          time: 5000,
          offset: 100,
          beginAt: 0,
          formatter: function (n) {
              return n.replace(/,/g, '.');
          }
      });
  
      /*----------------------------------
      //------ MAGNIFIC POPUP ------//
      -----------------------------------*/
      $(document).ready(function () {
          $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
              disableOn: 700,
              type: 'iframe',
              mainClass: 'mfp-fade',
              removalDelay: 160,
              preloader: false,
  
              fixedContentPos: false
          });
      });
  
  }(jQuery));
  