text: /*
  	Stellar by HTML5 UP
  	html5up.net | @ajlkn
  	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
  */
  
  (function($) {
  
    skel.breakpoints({
      xlarge: '(max-width: 1680px)',
      large: '(max-width: 1280px)',
      medium: '(max-width: 980px)',
      small: '(max-width: 736px)',
      xsmall: '(max-width: 480px)',
      xxsmall: '(max-width: 360px)'
    });
  
    $(function() {
  
      var $window = $(window),
        	$body = $('body'),
        	$main = $('#main');
  
      // Disable animations/transitions until the page has loaded.
      $body.addClass('is-loading');
  
      $window.on('load', function() {
        window.setTimeout(function() {
          $body.removeClass('is-loading');
        }, 100);
      });
  
      // Fix: Placeholder polyfill.
      $('form').placeholder();
  
      // Prioritize "important" elements on medium.
      skel.on('+medium -medium', function() {
        $.prioritize(
          '.important\\28 medium\\29',
          skel.breakpoint('medium').active
        );
      });
  
      // Nav.
      const $nav = $('#nav');
  
      if ($nav.length > 0) {
  
        // Shrink effect.
        $main
          .scrollex({
            mode: 'top',
            enter: function() {
              $nav.addClass('alt');
            },
            leave: function() {
              $nav.removeClass('alt');
            },
          });
  
        // Links inside the page
        var $links = $('[href^="#"]');
  
        $links
          .scrolly({
            speed: 1000,
            offset: function() {
              return $nav.height(); }
          })
          .on('click', function() {
  
            var $this = $(this);
  
            // External link? Bail.
            if ($this.attr('href').charAt(0) != '#')
              return;
  
            // Deactivate all links.
            $links
              .removeClass('active')
              .removeClass('active-locked');
  
            // Activate link *and* lock it (so Scrollex doesn't try to activate other links as we're scrolling to this one's section).
            $this
              .addClass('active')
              .addClass('active-locked');
  
          })
          .each(function() {
  
            var $this = $(this),
              id = $this.attr('href'),
              $section = $(id);
  
            // No section for this link? Bail.
            if ($section.length < 1)
              return;
  
            // Scrollex.
            $section.scrollex({
              mode: 'middle',
              initialize: function() {
  
                // Deactivate section.
                if (skel.canUse('transition'))
                  $section.addClass('inactive');
  
              },
              enter: function() {
  
                // Activate section.
                $section.removeClass('inactive');
  
                // No locked links? Deactivate all links and activate this section's one.
                if ($links.filter('.active-locked').length == 0) {
  
                  $links.removeClass('active');
                  $this.addClass('active');
  
                }
  
                // Otherwise, if this section's link is the one that's locked, unlock it.
                else if ($this.hasClass('active-locked'))
                  $this.removeClass('active-locked');
  
              }
            });
  
          });
  
      }
  
      // Scrolly.
      $('.scrolly').scrolly({
        speed: 1000
      });
  
      // Not a robot validation
      var $notARobot = $('#demo-human');
      var $submitBtn = $('#demo-submit');
  
      $notARobot.on('click', function() {
  
        if ($notARobot.is(':checked')) {
          $submitBtn.removeAttr('disabled');
        } else {
          $submitBtn.attr('disabled', true);
        }
  
      });
  
      // showing and hiding menu on mobile
      
      const $nav_mobile = $('#mobile');
      $nav_mobile.on('click', function() {
  
        $('#nav').slideToggle();
          
      });
  
      $(window).on('resize', function() {
        if (window.innerWidth > 736) {
          $nav.css('display', 'block');
        } else {
          $nav.css('display', 'none');
        }
      })
    
    });
  
  })(jQuery);
  