$(document).on('ready', function() {

  $.ajax({
    cache: false,
    url: "/partial-index.html"
  }).done(function(response) {
    $('.main-container').html(response);
  });

  // Use navigator to detect Safari and render old resume partial instead
  $('nav a').on('click', function(event) {
    event.preventDefault();
    var targetURI = event.currentTarget.dataset.pagePartial;
    $.ajax({
      cache: false,
      url: targetURI
    }).done(function(response) {
      $('.main-container').html(response);
    });
  });

  $('.main-container').on('click', 'a.blog-link, a.home-link', function(event) {
    event.preventDefault();
    var targetURI = event.target.dataset.pagePartial;
    $.ajax({
      cache: false,
      url: targetURI
    }).done(function(response) {
      $('.main-container').html(response);
    });
  });

});
$(document).on('ready', function() {

  $.ajax({
    cache: false,
    url: "/partial-index.html"
  }).done(function(response) {
    $('.main-container').html(response);
  });

  // Use navigator to detect Safari and render old resume partial instead
  $('nav a').on('click', function(event) {
    event.preventDefault();
    var targetURI = event.currentTarget.dataset.pagePartial;
    $.ajax({
      cache: false,
      url: targetURI
    }).done(function(response) {
      $('.main-container').html(response);
      if(targetURI == "./resume/embedded-resume.html") {
        $('.main-container').css("overflow-y", "visible");
      }
      else {
        $('.main-container').css("overflow-y", "scroll");
      }
    });
  });

  $('.main-container').on('click', 'a.blog-link, a.home-link', function(event) {
    event.preventDefault();
    var targetURI = event.target.dataset.pagePartial;
    $.ajax({
      cache: false,
      url: targetURI
    }).done(function(response) {
      $('.main-container').html(response);
    });
  });

});
Update ajax to remove overflow scrolling for embedded resume
Update ajax to remove overflow scrolling for embedded resume
