$(window).ready(function() {

  /***
  * initialize the datetimepicker, then create a listener 
  ***/

  $('#datetimepicker1').datetimepicker({
    format: "MM/DD/YYYY"
  });

  /***
  * add listener to launch modal if user clicks button to delete record
  ***/

  $("#delete-record-button").on("click", function() {
    $('#delete-record-modal').modal();
  });

  /***
  * add listener to update styles in record#show if viewport is too
  * narrow to display record title and buttons in one line
  ***/

  // store element widths, as these wont' change
  var recordTitleWidth = $("h3").width();
  var modifyRecordButtonWidth = $(".edit-delete-button-container").width();

  var restyleRecordShow = function() {
    var overImageRowWidth = $(".over-image-row").width();

    console.log(recordTitleWidth, modifyRecordButtonWidth, overImageRowWidth);

    if (recordTitleWidth + modifyRecordButtonWidth + 40 >= overImageRowWidth) {
      
      // center both the record title and the edit/delete/report record buttons
      $(".record-title").css({
        "width": "100%", 
        "text-align": "center"
      });

      $(".edit-delete-button-container").css({
        "position": "relative",
        "float": "none",
        "display": "block",
        "margin-top": "0px",
        "left": "50%",
        "margin-left": 0 - (modifyRecordButtonWidth / 2),
        "margin-bottom": "12px",
      });

    } else {
      // restore original styles
      $(".record-title").css({
        "padding-left": "",
        "display": "inline-block",
        "width": "",
        "text-align": "left"
      });

      $(".edit-delete-button-container").css({
        "display": "inline-block",
        "float": "right",
        "margin-top": "30px",
        "left": "0px",
        "margin-left": "0px"
      });

    }
  };

  restyleRecordShow();

  $(window).on("resize", function() {
    restyleRecordShow();
  })

});
@@ -768,89 +768,8 @@
 ();%0A
-%0A    console.log(recordTitleWidth, modifyRecordButtonWidth, overImageRowWidth);%0A%0A
     

remove logging from records js