Skip to content

Commit

Permalink
tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
laurabreiman committed Aug 9, 2013
1 parent 4f161cc commit 6403632
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions perfectSteak.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,10 @@ var perfectSteak = function (div) {
model.browserInfo(M);
})();

var inputTable = $("<table class='inputTable table table-striped'></table>");
var clicked=false;
var displayDiv = $("<div class='displayDiv'></div>");
var tableTabs = $('<ul class="nav nav-tabs"><li><a href="#table" data-toggle="tab">Table</a></li><li><a href="#text" data-toggle="tab">Text</a></li></ul>');
var inpTabHeader = $("<tr><th class='inpTabHeader'>Duration (m:s)</th><th class='inpTabHeader'>Side 1 (&#176;C)</th><th class='inpTabHeader'>Side 2 (&#176;C)</th></tr>");
inputTable.append(inpTabHeader);
var tabContent = $("<div class='tab-content'><div class='tab-pane' id='table'></div><div class='tab-pane' id='text'></div></div>");
displayDiv.append(inputTable);
var tabContent = $("<div class='tab-content'><div class='tab-pane active' id='table'><table class='inputTable table table-striped'><tr><th class='inpTabHeader'>Duration (m:s)</th><th class='inpTabHeader'>Side 1 (&#176;C)</th><th class='inpTabHeader'>Side 2 (&#176;C)</th></tr></table></div><div class='tab-pane' id='text'></div></div>");
displayDiv.append(tableTabs,tabContent);

var addButton;
Expand Down Expand Up @@ -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=$('<a href="#saveBut" role="button" class="btn sBut" data-toggle="modal">Save</a>');
var saveModal=$('<div id="saveBut" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"><div class="modal-body">Please select a name for your recipe</div></div>');
Expand Down Expand Up @@ -430,7 +426,7 @@ saveBut.on("click", function(){

})

inputTable.append(addButton);//, saveBut,saveModal);
$(".inputTable").append(addButton);//, saveBut,saveModal);
$(".span3").append(cookButt);
addDropdown();
}
Expand Down
1 change: 0 additions & 1 deletion sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<sampledata.length;i++)
{
Expand Down

0 comments on commit 6403632

Please sign in to comment.