anchor.diff:          </a>
       </div>
   
  -    <!-- Portfolio Modals -->
  +    <!-- Events By User -->
       <div class="portfolio-modal modal fade" id="portfolioModal1" tabindex="-1" role="dialog" aria-hidden="true">
           <div class="modal-content">
               <div class="close-modal" data-dismiss="modal">
  
positive.code:                                     <input type="text" class="form-control" id="e_hour" placeholder="Ending hour...">
                                      <input type="text" class="form-control" id="e_min" placeholder="Ending hour...">
                                    </div>
  
  
                                        <!-- <label> s_hour:</label><input type="text" name ="s_hour">
                                        <label> s_min:</label><input type="text" name="s_min">
                                        <label> e_hour:</label><input type="text" name="e_hour">
                                        <label> e_min:</label><input type="text" name="e_min">
                                        <label> day:</label><input type="text" name="day">
                                        <label> activity:</label><input type="text" name="activity">
   -->
  
  
  
                                   <!--  <input type="submit" class="btn btn-success" value="Create"> -->
                                    <button onclick="submitData()" class="btn btn-success">Create</button>
  
  
  
negative.code:     
      }
  
  $(document).ready(function() {
    
  
     
          $.ajax({
  
              url: "https://"+window.location.host+"/rest/event/",
              type:'GET',
              dataType: "json",
              success: function (data) {
  
              var i;
              for(i=0;i<data.length;i++)
                {
  
                  var myEvent = data[i];
                  var activity = myEvent["activity"];
                  var day = myEvent["day"];
                  var owner = myEvent["owner"];
                  var s_hour = myEvent["s_hour"];
                  var s_min = myEvent["s_min"];
                  var e_hour = myEvent["e_hour"];
                  var e_min = myEvent["e_min"];
  
                  $('#event_table').append('<tr><td>' + activity + '</td>' + '<td>' + day + '</td>' + '<td>' + owner + '</td>'+ '<td>' + s_hour + '</td>' + '<td>' + e_hour + '</td></tr>');
  
                  
                }
      
              }
              
          });
  
          $.ajax({
  
              url: "https://"+window.location.host+"/rest/event/byOwner",
              type:'GET',
              dataType: "json",
              success: function (data) {
  
              var i;
              for(i=0;i<data.length;i++)
                {
  
                  var myEvent = data[i];
                  var activity = myEvent["activity"];
                  var day = myEvent["day"];
                  var owner = myEvent["owner"];
                  var s_hour = myEvent["s_hour"];
                  var s_min = myEvent["s_min"];
                  var e_hour = myEvent["e_hour"];
                  var e_min = myEvent["e_min"];
  
                  $('#eventByUser_table').append('<tr><td>' + activity + '</td>' + '<td>' + day + '</td>'+ '<td>' + s_hour + '</td>' + '<td>' + e_hour + '</td></tr>');
  
                  
                }
      
              }
              
          });
      });
  
      </script>
  
  