   el.classList.remove('is-invalid-input');
        el.parentElement.querySelector('.form-error').textContent = '';
      };

      $(document).foundation();
      initialize();
      hljs.highlightAll();

      document.getElementById('types').querySelectorAll('input').forEach((el) => {
        el.addEventListener('change', onChangeType);
      });

      document.getElementById('direction').querySelectorAll('input').forEach((el) => {
        el.addEventListener('change', onChangeDirection);
      });

   