text: /*
  
  [Main Script]
  
  Project: Mobile and Tablet Responsive 
  Version: 1.0
  Author : Repair Mobile
  
  */
  
  ;(function ($) {
      "use strict";
      
      /* ------------------------------------------------------------------------- *
       * COMMON VARIABLES
       * ------------------------------------------------------------------------- */
      var $wn = $(window),
          $body = $('body');
  
      /* ------------------------------------------------------------------------- *
       * FAKELOADER
       * ------------------------------------------------------------------------- */
      var $preloader = $('.preloader');
  
      if ( $preloader.length ) {
          $preloader.fakeLoader({ spinner: 'spinner2', bgColor: false });
      }
      
      /* ------------------------------------------------------------------------- *
       * CHECK DATA
       * ------------------------------------------------------------------------- */
      var checkData = function (data, value) {
          return typeof data === 'undefined' ? value : data;
      };
  
      $(function () {
          /* ------------------------------------------------------------------------- *
           * BANNER SECTION
           * ------------------------------------------------------------------------- */
          var $banner = $('.banner--section'),
              $bannerSlider = $banner.find('.banner--slider'),
              $bannerContent = $banner.find('.banner--content'),
              $bannerForm = $banner.find('.banner--form');
  
          $bannerSlider.on('initialized.owl.carousel', function (e) {
              $banner.css( 'min-height', $bannerContent.outerHeight() );
  
              $bannerForm.css( 'margin-top', $bannerContent.outerHeight() - 80 );
          });
          
          /* ------------------------------------------------------------------------- *
           * SHOP SECTION
           * ------------------------------------------------------------------------- */
          var $products = $('.products--section'),
              $productItemImg = $products.find('.product--item-img');
  
          if ( $productItemImg.length ) {
              $productItemImg.directionalHover({
                  overlay: '.product--item-img-info'
              });
          }
  
          var $productSingle = $('.product-single--section'),
              $productSingleThumbnails = $productSingle.find('.product--single-gallery .thumbnails');
  
          $productSingleThumbnails.on('shown.bs.tab', '[data-toggle="tab"]', function (e) {
              $(e.target).addClass('active').parent().siblings().children().removeClass('active');
          });
  
          var $productRatingSelect = $('#productRatingSelect');
          
          if ( $productRatingSelect.length ) {
              $productRatingSelect.barrating({
                  theme: 'fontawesome-stars-o',
                  hoverState: false
              });
          }
  
          /* ------------------------------------------------------------------------- *
           * CHECKOUT SECTION
           * ------------------------------------------------------------------------- */
          var $checkout = $('.checkout--section'),
              $checkoutOrderInfo = $checkout.find('.checkout--order-info');
          
          $checkout.on('click', '.checkout--info-toggle', function (e) {
              e.preventDefault();
  
              var $t = $(this);
  
              $t.parent('p').siblings('.checkout--info-form').slideToggle();
          });
  
          /* ------------------------------------------------------------------------- *
           * MAP
           * ------------------------------------------------------------------------- */
          var $map = $('#map'),
              setMap = function () {
                  var map = new google.maps.Map($map[0], {
                      center: {lat: $map.data('map-latitude'), lng: $map.data('map-longitude')},
                      zoom: $map.data('map-zoom'),
                      scrollwheel: false,
                      disableDefaultUI: true,
                      zoomControl: true,
                      styles: [{"featureType":"landscape","stylers":[{"hue":"#FFBB00"},{"saturation":43.400000000000006},{"lightness":37.599999999999994},{"gamma":1}]},{"featureType":"road.highway","stylers":[{"hue":"#FFC200"},{"saturation":-61.8},{"lightness":45.599999999999994},{"gamma":1}]},{"featureType":"road.arterial","stylers":[{"hue":"#FF0300"},{"saturation":-100},{"lightness":51.19999999999999},{"gamma":1}]},{"featureType":"road.local","stylers":[{"hue":"#FF0300"},{"saturation":-100},{"lightness":52},{"gamma":1}]},{"featureType":"water","stylers":[{"hue":"#0078FF"},{"saturation":-13.200000000000003},{"lightness":2.4000000000000057},{"gamma":1}]},{"featureType":"poi","stylers":[{"hue":"#00FF6A"},{"saturation":-1.0989010989011234},{"lightness":11.200000000000017},{"gamma":1}]}]
                  });
                  
                  if ( typeof $map.data('map-marker') !== 'undefined' ) {
                      var data = $map.data('map-marker'),
                          i = 0;
  
                      for ( i; i < data.length; i++ ) {
                          new google.maps.Marker({
                              position: {lat: data[i][0], lng: data[i][1]},
                              map: map,
                              animation: google.maps.Animation.DROP,
                              draggable: true
                          });
                      }
                  }
              };
          
          if ( $map.length ) {
              setMap();
          }
  
          /* ------------------------------------------------------------------------- *
           * BACK TO TOP BUTTON
           * ------------------------------------------------------------------------- */
          var $backToTopBtn = $('.back-to-top-btn');
  
          $backToTopBtn.on('click', 'a', function (e) {
              e.preventDefault();
  
              $('html, body').animate({
                  scrollTop: 0
              }, 800);
          });
          
          /* ------------------------------------------------------------------------- *
           * BACKGROUND IMAGE
           * ------------------------------------------------------------------------- */
          var $bgImg = $('[data-bg-img]');
          
          $bgImg.each(function () {
              var $t = $(this);
  
              $t.css('background-image', 'url(' + $t.data('bg-img') + ')').addClass('bg--img bg--overlay').attr('data-rjs', 2).removeAttr('data-bg-img');
          });
  
          /* ------------------------------------------------------------------------- *
           * RETINAJS
           * ------------------------------------------------------------------------- */
          retinajs();
          
          /* ------------------------------------------------------------------------- *
           * STICKYJS
           * ------------------------------------------------------------------------- */
          var $sticky = $('[data-trigger="sticky"]');
          
          $sticky.each(function () {
              $(this).sticky({
                  zIndex: 999
              });
          });
          
          /* ------------------------------------------------------------------------- *
           * FORM VALIDATION
           * ------------------------------------------------------------------------- */
          var $formValidation = $('[data-form-validation] form');
          
          $formValidation.each(function () {
              var $t = $(this);
              
              $t.validate({
                  errorPlacement: function () {
                      return true;
                  }
              });
          });
          
          /* ------------------------------------------------------------------------- *
           * FORM AJAX
           * ------------------------------------------------------------------------- */
          var $ajaxForm = $('[data-form="ajax"] form');
          
          $ajaxForm.each(function () {
              var $form = $(this),
                  $formStatus = $form.find('.status');
              
              $form.validate({
                  errorPlacement: function () {
                      return true;
                  },
                  submitHandler: function (el) {
                      var $el = $(el);
                      
                      $el.ajaxSubmit({
                          success: function (res) {
                              $formStatus.show().html(res).delay(3000).fadeOut('show');
                          }
                      });
                  }
              });
          });
          
          /* ------------------------------------------------------------------------- *
           * FILE INPUT
           * ------------------------------------------------------------------------- */
          var $fileInput = $('input[type="file"]'),
              $fileInputStatus = $fileInput.siblings('.file-status');
  
          $fileInput.on('change', function () {
              var value = $(this).val().split('\\'),
                  txt = value[value.length - 1];
  
              return txt ? $fileInputStatus.text( txt ) : '';
          });
          
          /* ------------------------------------------------------------------------- *
           * TOOLTIP
           * ------------------------------------------------------------------------- */
          var $tooltip = $('[data-toggle="tooltip"]');
  
          if ( $tooltip.length ) {
              $tooltip.tooltip();
          }
          
          /* ------------------------------------------------------------------------- *
           * SPINNER
           * ------------------------------------------------------------------------- */
          var $spinner = $('[data-trigger="spinner"]');
  
          $spinner.each(function () {
              var $t = $(this);
  
              $t.spinner({
                  min: $t.data('min'),
                  max: $t.data('max')
              });
          });
          
          /* ------------------------------------------------------------------------- *
           * DATE
           * ------------------------------------------------------------------------- */
          var $date = $('[data-trigger="date"]');
  
          if ( $date.length ) {
              $date.datepicker({
                  showOtherMonths: true,
                  selectOtherMonths: true
              });
          }
          
          /* ------------------------------------------------------------------------- *
           * TIME
           * ------------------------------------------------------------------------- */
          var $time = $('[data-trigger="time"]');
  
          if ( $date.length ) {
              $time.timepicker();
          }
  
          /* ------------------------------------------------------------------------- *
           * OWL CAROUSEL
           * ------------------------------------------------------------------------- */
          var $owlCarousel = $('.owl-carousel');
          
          $owlCarousel.each(function () {
              var $t = $(this);
              
              $t.owlCarousel({
                  items: checkData( $t.data('owl-items'), 1 ),
                  margin: checkData( $t.data('owl-margin'), 0 ),
                  loop: checkData( $t.data('owl-loop'), true ),
                  smartSpeed: 1200,
                  autoplayTimeout: 800,
                  autoplay: checkData( $t.data('owl-autoplay'), true ),
                  mouseDrag: checkData( $t.data('owl-drag'), true ),
                  nav: checkData( $t.data('owl-nav'), false ),
                  navText: ['<i class="fa fm fa-arrow-left"></i>', '<i class="fa flm fa-arrow-right"></i>'],
                  dots: checkData( $t.data('owl-dots'), false ),
                  responsive: checkData( $t.data('owl-responsive'), {} )
              });
          });
          
          /* ------------------------------------------------------------------------- *
           * MAGNIFIC POPUP
           * ------------------------------------------------------------------------- */
          var $popupImg = $('[data-popup="img"]');
          
          if ( $popupImg.length ) {
              $popupImg.magnificPopup({
                  type: 'image'
              });
          }
  
          var $popupVideo = $('[data-popup="video"]');
          
          if ( $popupVideo.length ) {
              $popupVideo.magnificPopup({
                  type: 'iframe'
              });
          }
          
          /* ------------------------------------------------------------------------- *
           * COUNTER UP
           * ------------------------------------------------------------------------- */
          var $counterUp = $('[data-counter-up="numbers"]');
              
          if ( $counterUp.length ) {
              $counterUp.counterUp({
                  delay: 10,
                  time: 1000
              });
          }
          
          /* -------------------------------------------------------------------------*
           * COUNTDOWN
           * -------------------------------------------------------------------------*/
          var $countDown = $('[data-countdown]');
              
          $countDown.each(function () {
              var $t = $(this);
              
              $t.countdown($t.data('countdown'), function(e) {
                  $(this).html( '<ul>' + e.strftime('<li><strong>%D</strong><span>Days</span></li><li><strong>%H</strong><span>Hours</span></li><li><strong>%M</strong><span>Minutes</span></li><li><strong>%S</strong><span>Seconds</span></li>') + '</ul>' );
              });
          });
  
          /* ------------------------------------------------------------------------- *
           * COLOR SWITCHER
           * ------------------------------------------------------------------------- */
          if ( typeof $.cColorSwitcher !== "undefined" ) {
              $.cColorSwitcher({
                  'switcherTitle': 'Main Colors:',
                  'switcherColors': [{
                      bgColor: '#f69323',
                      filepath: 'css/colors/color-1.css'
                  }, {
                      bgColor: '#82b440',
                      filepath: 'css/colors/color-2.css'
                  }, {
                      bgColor: '#ff5252',
                      filepath: 'css/colors/color-3.css'
                  }, {
                      bgColor: '#e91e63',
                      filepath: 'css/colors/color-4.css'
                  }, {
                      bgColor: '#00BCD4',
                      filepath: 'css/colors/color-5.css'
                  }, {
                      bgColor: '#FC5143',
                      filepath: 'css/colors/color-6.css'
                  }, {
                      bgColor: '#00B249',
                      filepath: 'css/colors/color-7.css'
                  }, {
                      bgColor: '#D48B91',
                      filepath: 'css/colors/color-8.css'
                  }, {
                      bgColor: '#8CBEB2',
                      filepath: 'css/colors/color-9.css'
                  }, {
                      bgColor: '#119ee6',
                      filepath: 'css/colors/color-10.css'
                  }],
                  'switcherTarget': $('#changeColorScheme')
              });
          }
      });
      
      $wn.on('load', function () {
          /* ------------------------------------------------------------------------- *
           * BODY SCROLLING
           * ------------------------------------------------------------------------- */
          var isBodyScrolling = function () {
              if ( $wn.scrollTop() > 1 ) {
                  $body.addClass('isScrolling');
              } else {
                  $body.removeClass('isScrolling');
              }
          };
  
          isBodyScrolling();
          $wn.on('scroll', isBodyScrolling);
  
          /* ------------------------------------------------------------------------- *
           * ADJUST ROW
           * ------------------------------------------------------------------------- */
          var $adjustRow = $('.AdjustRow');
          
          if ( $adjustRow.length ) {
              $adjustRow.isotope({layoutMode: 'fitRows'});
          }
          
          /* ------------------------------------------------------------------------- *
           * MASONRY ROW
           * ------------------------------------------------------------------------- */
          var $masonryRow = $('.MasonryRow');
          
          if ( $masonryRow.length ) {
              $masonryRow.isotope();
          }
          
          /* ------------------------------------------------------------------------- *
           * HEADER SECTION
           * ------------------------------------------------------------------------- */
          var $header = $('.header--section'),
              $headerNavbarTop = $header.find('.header--navbar-top'),
              $headerNavbar = $header.find('.header--navbar'),
              $headerMegamenu = $headerNavbar.find('.megamenu'),
              isHeaderMegamenuRight = function () {
                  var a = $headerNavbar.children('.container').outerWidth(),
                      b = a - $headerMegamenu.position().left,
                      c = $headerMegamenu.find('.dropdown-menu').width();
  
                  return b < c ? '0' : 'auto';
              };
  
          if ( $headerNavbarTop.length ) {
              $headerNavbarTop.find('.logo, .header--navbar-top-btn, .header--navbar-top-info').css( 'height', $headerNavbarTop.outerHeight() );
          }
  
          if ( $headerMegamenu.length ) {
              $headerMegamenu.find('.dropdown-menu').css('right', isHeaderMegamenuRight);
          }
          
          /* ------------------------------------------------------------------------- *
           * SERVICES SECTION
           * ------------------------------------------------------------------------- */
          var $services = $('.services--section'),
              $serviceItem = $services.find('.service--item'),
              $serviceDot = $services.find('.service--item .dot');
  
          $serviceDot.each(function () {
              var $t = $(this);
  
              $t.css({
                  'top': checkData( $t.data('position-top'), 'auto' ),
                  'left': checkData( $t.data('position-left'), 'auto' ),
                  'right': checkData( $t.data('position-right'), 'auto' )
              });
          });
  
          $serviceItem
              .on('click', '[data-toggle="tab"]', function (e) {
                  e.preventDefault();
              })
              .on('mouseenter', function (e) {
                  $serviceItem.removeClass('active');
  
                  $(this).addClass('active').find('[data-toggle="tab"]').tab('show');
              });
          
          /* ------------------------------------------------------------------------- *
           * EXTRA SERVICES SECTION
           * ------------------------------------------------------------------------- */
          var $extraServices = $('.extra-services--section'),
              $extraServiceInfo = $extraServices.find('.extra-service--info');
  
          $extraServiceInfo.each(function () {
              var $t = $(this);
  
              $t.css( 'top', ( $t.outerHeight() - 67 ) );
          });
          
          /* ------------------------------------------------------------------------- *
           * GALLERY SECTION
           * ------------------------------------------------------------------------- */
          var $gallery = $('.gallery--section'),
              $galleryItems = $gallery.find('.gallery--items'),
              $galleryFilterNav = $gallery.find('.gallery--filter-nav'),
              $galleryImg = $gallery.find('.gallery--img');
  
          if ( $galleryImg.length ) {
              $galleryImg.directionalHover({
                  overlay: '.gallery--info'
              });
  
              $gallery.find('[data-popup="img"]').on('mfpClose', function (e) {
                  $galleryImg.directionalHover({
                      overlay: '.gallery--info'
                  });
              });
          }
  
          if ( $galleryItems.length ) {
              $galleryItems.isotope({
                  animationEngine: 'best-available',
                  itemSelector: '.gallery--item'
              });
          }
  
          $galleryFilterNav.on('click', 'li', function (e) {
              e.preventDefault();
  
              var $t = $(this),
                  f = $t.data('target'),
                  s = (f !== '*') ? '[data-cat~="'+ f +'"]' : f;
  
              $galleryItems.isotope({
                  filter: s
              });
              
              $t.addClass('active').siblings().removeClass('active');
          });
          
          /* ------------------------------------------------------------------------- *
           * EXPERTS SECTION
           * ------------------------------------------------------------------------- */
          var $experts = $('.experts--section'),
              $expertMembers = $experts.find('.expert--members'),
              $expertMembersNav = $experts.find('.expert--members-nav');
  
          $expertMembersNav.on('click', 'button', function () {
              $expertMembers.trigger( $(this).data('trigger') );
          });
          
          /* ------------------------------------------------------------------------- *
           * FOOTER SECTION
           * ------------------------------------------------------------------------- */
          var $footer = $('.footer--section'),
              $footerAboutLogo = $footer.find('.footer--about .logo'),
              $footerWidgetTitle = $footer.find('.widget--title');
  
          if ( $footerAboutLogo.length ) {
              $footerWidgetTitle.css( 'margin-top', $footerAboutLogo.outerHeight() - 30 );
          }
  
          var $footerCopyright = $footer.find('.footer--copyright'),
              $footerCopyrightBorder = $footer.find('.footer--copyright-border');
  
          if ( $footerCopyrightBorder.length ) {
              $footerCopyrightBorder.css( 'top', $footerCopyright.position().top );
          }
      });
      
  })(jQuery);
  
  
  
  
  
  
    jQuery(document).ready(function() {
  
        jQuery('.product-description img').addClass('img-fluid');
  
        jQuery('#voo-card__expire').bind('keyup','keydown', function(event) {
         var inputLength = event.target.value.length;
             if ($(this).val().length == 2){
                      $(this).val($(this).val() + "/");
              } /*else if ($(this).val().length == 5){
                    $(this).val($(this).val() + "/");
              } */
        });  
  
        jQuery('#voo-woo_pay_card-number').on('keypress change', function () {
          jQuery(this).val(function (index, value) {
            return value.replace(/\W/gi, '').replace(/(.{4})/g, '$1 ');
          });
        });
  
        
        jQuery('.cart-plus-minus input').on('touchstart', function(e){
          e.preventDefault();
        });
  
  
        jQuery('.haslabel input').on('focusout' , function() {
          if(jQuery(this).val() != ''){
              jQuery(this).addClass('filled');
            } else {
              jQuery(this).removeClass('filled');
            }
        });
  
        jQuery('.coupon-container input').on('focus' , function() {
          if(jQuery(this).val() == ''){
              jQuery(this).removeClass('filled');
              jQuery(this).parents('.coupon-container').addClass('active_input');
            }
        });
  
        jQuery('.coupon-container input').on('blur' , function() {
          if(jQuery(this).val() != ''){
              jQuery(this).addClass('filled');
              jQuery(this).parents('.coupon-container').addClass('active_input');
            } else {
              jQuery(this).removeClass('filled');
              jQuery(this).parents('.coupon-container').removeClass('active_input');
            }
        });
  
  
  
        jQuery('.radio-wrapper input[type=radio]').on('change' , function() {
          if(jQuery(this).is(':checked')){
              jQuery(this).parents('.radio-wrapper').find('label').removeClass('active');
              jQuery(this).parents('label').addClass('active');
            }
        });
  
  
        jQuery('.repair-item').on('click' , function() {
             jQuery(this).toggleClass('added');
        });
  
        // initially hide the card payment section
        // jQuery('.voo-payment--card').hide();
         
  });
  
  
  
  
  
  
  
  
  
  
  $(document).ready(function () {
      
      var current_fs, next_fs, previous_fs; //fieldsets
      var left, opacity, scale; //fieldset properties which we will animate
      var animating; //flag to prevent quick multi-click glitches
  
      $(".next").click(function () {
      
          $('#reg_form').validate({
              rules: {    
                  pos_esti_time:{
                      required: true
                  },
                  checkoutFullName: {
                      required: true
                  },
                  checkoutStore: {
                      required: true
                  },
                  checkoutWorkEamil: {
                      required: true
                  }
  
              },
              messages: {
                  checkoutFullName: "Please specify a file",
                  checkoutStore: "Title is required",
                  checkoutWorkEamil: "Description is required"
              }
          });
  
          if (!jQuery('#reg_form').valid()) {
           alert('Please fill the required fields');
             return false;
          }
          
          if (animating) return false;
          animating = true;
  
          // current_fs = $(this).parent();              //fieldset
          // next_fs = $(this).parent().next();          //next fieldset
  
          current_fs = jQuery(this).parents('fieldset');
  next_fs = jQuery(this).parents('fieldset').next();
  
  
          //activate next step on progressbar using the index of next_fs
          $("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active");
  
          //show the next fieldset
          next_fs.show();
          //hide the current fieldset with style
          current_fs.animate({
              opacity: 0
          }, {
              step: function (now, mx) {
                  //as the opacity of current_fs reduces to 0 - stored in "now"
                  //1. scale current_fs down to 80%
                  scale = 1 - (1 - now) * 0.2;
                  //2. bring next_fs from the right(50%)
                  left = (now * 50) + "%";
                  //3. increase opacity of next_fs to 1 as it moves in
                  opacity = 1 - now;
                  current_fs.css({
                      'transform': 'scale(' + scale + ')'
                  });
                  next_fs.css({
                      'left': left,
                      'opacity': opacity
                  });
              },
              duration: 800,
              complete: function () {
                  current_fs.hide();
                  animating = false;
              },
              //this comes from the custom easing plugin
              easing: 'easeInOutBack'
          });
      });
  
      $(".previous").click(function () {
          if (animating) return false;
          animating = true;
  
          current_fs = jQuery(this).parents('fieldset');
          previous_fs = jQuery(this).parents('fieldset').prev();
  
          //de-activate current step on progressbar
          $("#progressbar li").eq($("fieldset").index(current_fs)).removeClass("active");
  
          //show the previous fieldset
          previous_fs.show();
          //hide the current fieldset with style
          current_fs.animate({
              opacity: 0
          }, {
              step: function (now, mx) {
                  //as the opacity of current_fs reduces to 0 - stored in "now"
                  //1. scale previous_fs from 80% to 100%
                  scale = 0.8 + (1 - now) * 0.2;
                  //2. take current_fs to the right(50%) - from 0%
                  left = ((1 - now) * 50) + "%";
                  //3. increase opacity of previous_fs to 1 as it moves in
                  opacity = 1 - now;
                  current_fs.css({
                      'left': left
                  });
                  previous_fs.css({
                      'transform': 'scale(' + scale + ')',
                      'opacity': opacity
                  });
              },
              duration: 800,
              complete: function () {
                  current_fs.hide();
                  animating = false;
              },
              //this comes from the custom easing plugin
              easing: 'easeInOutBack'
          });
      });
  
  
      $(".submit").click(function () {
          return false;
      });
  });
  
  
  