Skip to content

Commit

Permalink
little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laurabreiman committed Aug 8, 2013
1 parent 4f73aeb commit d7af86f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
2 changes: 1 addition & 1 deletion heat-diffusion.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function HeatSolver(startingTemps,timestep,spacestep){
var count=0;
var maxTemps=[];
var firstMaxTemp=[];
for(var i=0;i<tempArray[0].length;i++)
for(var i=tempArray[0].length-1;i>0;i--)
{
firstMaxTemp.push(tempArray[0][i])
}
Expand Down
33 changes: 0 additions & 33 deletions perfectSteak.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,28 +219,6 @@ var clicked=false;
var displayDiv = $("<div class='displayDiv'></div>");

displayDiv.append(inputTable);

// displayDiv.change(function(){
// model.checkDiv()
// model.buildData();
// updateTime();
// for (var j=0; j<model.currentInfo["numRows"]; j++){
// var timeInSecs=$("#row"+j+"time").val().replace(':','.').split('.');
// if(timeInSecs.length>1)
// {var time=60*parseFloat(timeInSecs[0])+parseFloat(timeInSecs[1]);}
// else{var time=parseFloat(timeInSecs[0]);}
// $("#row"+j+"time").val(model.convertTime(time))
//}
// }


// model.buildData();
// updateTime();

// if(clicked&&model.currentInfo["OKToGraph"]){graph(false)}

// else{ d3.selectAll(".containters").remove();
// d3.selectAll(".mysteak").remove();

var addButton;
var flipButton;
Expand All @@ -252,21 +230,10 @@ var clicked=false;
var addTextButton = $("<button class='btn' id='addTextButton'>Edit Recipe Text</button>");
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 <p> <input type="text" id="recipeName"></input><p><button class="btn" data-dismiss="modal" aria-hidden="true">OK</button></div></div>');
var cookDropdown=$("<div class='dropdown'><select class='cookDropdown'></select></div>");

var quickAddModal=$('<div id="quickAdd" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h3 id="myModalLabel">Quick Add</h3></div><div class="modal-body"> <p class="cookp">Cook at: </p></div><div class="modal-footer"><button class="btn" data-dismiss="modal" aria-hidden="true">OK</button></div></div>');
$(".cookp").append(cookDropdown);
displayDiv.append(saveModal, quickAddModal)

saveBut.on("click", function(){

///var selectName=$("<div class='selectName'></div>")
//var name=$("#recipeName").val();

//model.saveRecipe(name);

});


var updateTime=function(){
var time=0;
for(var i=0;i<model.currentInfo["numRows"];i++){
Expand Down
1 change: 0 additions & 1 deletion sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var calculate=function(data,steak,meatType,first,totalTime){
var flame=Thedata.points;
var timestep=1/Thedata.step;
var maxTemps=Thedata.maxTemps;

if(first){
drawFinished(meatType,maxTemps,data,steak[0],0);
drawFinished(meatType,maxTemps,data,steak[0],1);
Expand Down

0 comments on commit d7af86f

Please sign in to comment.