'use strict';

const helpers = require('../../shared/helpers');

function adjustClasses() {
  if (helpers.isMobile($) === true) {
    $('body').addClass('is-mobile').removeClass('is-desktop');
  }
  else {
    $('body').addClass('is-desktop').removeClass('is-mobile');
  }
}

window.addEventListener('resize', adjustClasses, false);
window.addEventListener('load', adjustClasses, false);
document.addEventListener('DOMContentLoaded', adjustClasses, false);
@@ -58,16 +58,163 @@
 ers');%0A%0A
+// General function to add 'is-mobile' and 'is-desktop' class to body.%0A// Used to adjust styling for mobile/desktop and called on multiple events.%0A
 function

Add comment to adjustClasses function