//menu
jQuery(document).ready(function() {

    $('.js-menu-trigger,.js-menu-screen').on('mouseover touchstart', function(e) {
        $('.js-menu').toggleClass('is-visible');
        $('.js-menu-screen').delay(900).toggleClass('is-visible');
        e.preventDefault();
    });
});
//menu

//form
jQuery(document).ready(function($) {
    if ($('.floating-labels').length > 0) floatLabels();

    function floatLabels() {
        var inputFields = $('.floating-labels .cd-label').next();
        inputFields.each(function() {
            var singleInput = $(this);
            //check if user is filling one of the form fields 
            checkVal(singleInput);
            singleInput.on('change keyup', function() {
                checkVal(singleInput);
            });
        });
    },

    function checkVal(inputField) {
        (inputField.val() == '') ? inputField.prev('.cd-label').removeClass('float'): inputField.prev('.cd-label').addClass('float');
    }
});
//form

//scroll

$(function() {


   $('a[href*=#]:not([href=#])').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
            }, 1000);
            return false;
         }
      }
   });




});

//scroll
@@ -784,17 +784,16 @@
 );%0A    %7D
-,
 %0A%0A    fu
@@ -978,532 +978,4 @@
 rm%0A%0A
-//scroll%0A%0A$(function() %7B%0A%0A%0A   $('a%5Bhref*=#%5D:not(%5Bhref=#%5D)').click(function() %7B%0A      if (location.pathname.replace(/%5E%5C//, '') === this.pathname.replace(/%5E%5C//, '') && location.hostname === this.hostname) %7B%0A         var target = $(this.hash);%0A         target = target.length ? target : $('%5Bname=' + this.hash.slice(1) + '%5D');%0A         if (target.length) %7B%0A            $('html,body').animate(%7B%0A               scrollTop: target.offset().top%0A            %7D, 1000);%0A            return false;%0A         %7D%0A      %7D%0A   %7D);%0A%0A%0A%0A%0A%7D);%0A%0A//scroll

up 15.5.5