---
library: jquery-2.1.3.min.js
---
// If using a JS framework, include it here
// {% include_relative _lib/{{page.library}} %}

// Application code goes here

// Vanilla JS equivalent of $(document).ready
document.addEventListener('DOMContentLoaded', function(){

});
---
layout: null
library: jquery-2.1.3.min.js
---
// If using a JS framework, include it here
{% include_relative _lib/{{page.library}} %}

// Application code goes here
$(document).ready(function(){
  $('.js-menu-trigger').on('click touchstart', function(e){
    $('.js-menu').toggleClass('is-visible');
    $('.js-menu-screen').toggleClass('is-visible');
    e.preventDefault();
  });

  $('.js-menu-screen').on('click touchstart', function(e){
    $('.js-menu').toggleClass('is-visible');
    $('.js-menu-screen').toggleClass('is-visible');
    e.preventDefault();
  });
});


// Vanilla JS equivalent of $(document).ready
//document.addEventListener('DOMContentLoaded', function(){
//
//});
Enable jQuery and set layout to null
Enable jQuery and set layout to null

layout: null is required to keep Jekyll from adding the default HTML
boilerplate to the main.js file once it’s been processed.

jQuery has been enabled for responsive menu feature – this may be
removed if functionality can be duplicated in Vanilla JS.
