/*
If the size of the browser window is less than 480px, invoke mobile.css
*/

function adjustStyle(width) {
  var width = $(window).width();
  if (width < 480) {
    $("#mobile-stylesheet").attr("href", "styles/mobile.css");
  } else {
    $("#mobile-stylesheet").attr("href", "");
  }
}

$(function() {
  adjustStyle($(this).width());
  $(window).resize(function() {
      adjustStyle($(this).width());
  });
});
