diff --git a/perfectSteak.js b/perfectSteak.js index daa9803..a2a11ff 100644 --- a/perfectSteak.js +++ b/perfectSteak.js @@ -231,14 +231,10 @@ var perfectSteak = function (div) { model.browserInfo(M); })(); - var inputTable = $("
"); var clicked=false; var displayDiv = $("
"); var tableTabs = $(''); - var inpTabHeader = $("Duration (m:s)Side 1 (°C)Side 2 (°C)"); - inputTable.append(inpTabHeader); - var tabContent = $("
"); - displayDiv.append(inputTable); + var tabContent = $("
Duration (m:s)Side 1 (°C)Side 2 (°C)
"); displayDiv.append(tableTabs,tabContent); var addButton; @@ -375,7 +371,7 @@ saveBut.on("click", function(){ step1Col.append(flipButton); row.append(duration, step1Col, step2Col); - inputTable.append(row); + $(".inputTable").append(row); if (i == model.currentInfo["numRows"] - 1) { saveBut=$('Save'); var saveModal=$(''); @@ -430,7 +426,7 @@ saveBut.on("click", function(){ }) - inputTable.append(addButton);//, saveBut,saveModal); + $(".inputTable").append(addButton);//, saveBut,saveModal); $(".span3").append(cookButt); addDropdown(); } diff --git a/sample.js b/sample.js index 09d3621..b8e8244 100644 --- a/sample.js +++ b/sample.js @@ -24,7 +24,6 @@ var calculate=function(data,steak,meatType,first,totalTime){ } else{ var sampledata=Thedata.allMaxTemps.slice(1,Thedata.allMaxTemps.length); - console.log(sampledata); for(var i=0;i