text: // display today's day and date
  var todayDate = moment().format('dddd, MMM Do YYYY');
  $("#currentDay").html(todayDate);
  
  $(document).ready(function () { 
      $(".saveBtn").on("click", function () {
          // Get values of the description in jQuery
          var text = $(this).siblings(".description").val();
          var time = $(this).parent().attr("id");
  
          // Saving text in local storage
          localStorage.setItem(time, text);
      })
     
      function timeTracker() {
          //get current number of hours.
          var timeNow = moment().hour();
  
          // creating the loop over time blocks 
          $(".time-block").each(function () {
              var blockTime = parseInt($(this).attr("id").split("hour")[1]);
  
              // checking the time and adding classes
              if (blockTime < timeNow) {
                  $(this).removeClass("future");
                  $(this).removeClass("present");
                  $(this).addClass("past");
              }
              else if (blockTime === timeNow) {
                  $(this).removeClass("past");
                  $(this).removeClass("future");
                  $(this).addClass("present");
              }
              else {
                  $(this).removeClass("present");
                  $(this).removeClass("past");
                  $(this).addClass("future");
  
              }
          })
      }
  
      // Get item from local storage if any
      $("#hour8 .description").val(localStorage.getItem("hour8"));
      $("#hour9 .description").val(localStorage.getItem("hour9"));
      $("#hour10 .description").val(localStorage.getItem("hour10"));
      $("#hour11 .description").val(localStorage.getItem("hour11"));
      $("#hour12 .description").val(localStorage.getItem("hour12"));
      $("#hour13 .description").val(localStorage.getItem("hour13"));
      $("#hour14 .description").val(localStorage.getItem("hour14"));
      $("#hour15 .description").val(localStorage.getItem("hour15"));
      $("#hour16 .description").val(localStorage.getItem("hour16"));
      $("#hour17 .description").val(localStorage.getItem("hour17"));
  
      timeTracker();
  })