text: $(document).ready(function() {
    var getMax = function() {
      return $(document).height() - $(window).height();
    };
  
    var getValue = function() {
      return $(window).scrollTop();
    };
  
    var progressBar = $(".progress-Bar"),
      max = getMax(),
      value,
      width;
  
    var getWidth = function() {
      // Calculate width in percentage
      value = getValue();
      width = (value / max) * 100;
      width = width + "%";
      return width;
    };
  
    var setWidth = function() {
      progressBar.css({
        width: getWidth()
      });
    };
  
    $(document).on("scroll", setWidth);
    $(window).on("resize", function() {
      // Need to reset max
      max = getMax();
      setWidth();
    });
  });