$(document).ready(function() {

  var navTop = $('#nav_bar').offset().top;
  
  if ($('html').height() < $(window).height()) {
    alert("Hello! I am an alert box!!");
    $(footer).css({position: 'absolute'});
  }

  $(window).scroll(function () {
      if ($(window).scrollTop() > navTop) {
          $('#nav_bar').css({
              position: 'fixed',
              top: '0px',
              width: '100%'
          });
      } else {
          $('#nav_bar').removeAttr('style');
      }
  });

  // var imageHeight, wrapperHeight, overlap, container = $('.mask');
  // var image = container.find('img')  
   
  // function centerImage() {
  //     wrapperHeight = container.height();
  //     overlap = (wrapperHeight - image.height()) / 2;
  //     image.css('margin-top', overlap);
  // }
       
  // $(window).on("load resize", centerImage);
   
  // var el = document.getElementById('mask');
  // if (el.addEventListener) {  
  //     el.addEventListener("webkitTransitionEnd", centerImage, false); // Webkit event
  //     el.addEventListener("transitionend", centerImage, false); // FF event
  //     el.addEventListener("oTransitionEnd", centerImage, false); // Opera event
  // }


  // write function to open resumé in pdf
});



@@ -68,18 +68,16 @@
 ().top;%0A
-  
 %0A  if ($
@@ -122,61 +122,22 @@
 ) %7B%0A
-    alert(%22Hello! I am an alert box!!%22);%0A
     $(
+'
 footer
+'
 ).cs

remove test alert