From b00e335aec2e8cc2e507255582cbabbc777a97d0 Mon Sep 17 00:00:00 2001 From: laurabreiman Date: Sun, 11 Aug 2013 21:22:52 -0400 Subject: [PATCH] closer --- perfectSteak.html | 20 -------------------- perfectSteak.js | 31 ++----------------------------- 2 files changed, 2 insertions(+), 49 deletions(-) delete mode 100644 perfectSteak.html diff --git a/perfectSteak.html b/perfectSteak.html deleted file mode 100644 index 46abf74..0000000 --- a/perfectSteak.html +++ /dev/null @@ -1,20 +0,0 @@ - - - The Perfect Steak - - - - - - - - - - - - - - -
- - \ No newline at end of file diff --git a/perfectSteak.js b/perfectSteak.js index 2ce7047..b6e1b4e 100644 --- a/perfectSteak.js +++ b/perfectSteak.js @@ -258,7 +258,7 @@ var perfectSteak = function (div) { var clicked = false; var displayDiv = $("
"); var tableTabs = $(''); - var tabContent = $("
Duration (m:s)Side 1 (°C)Side 2 (°C)
"); + var tabContent = $("
Meat Thickness: cm Initial Meat Temperature: °C
Meat Type SteakTuna Turkey
Duration (m:s)Side 1 (°C)Side 2 (°C)
"); displayDiv.append(tableTabs, tabContent); var addButton; @@ -327,17 +327,12 @@ var perfectSteak = function (div) { if (model.currentInfo["OKToGraph"]) { div.append("
"); var switches = $('
'); - var CF = $(''); - var mThick = $('Meat Thickness: cm '); - var mTemp = $('Initial Meat Temperature: °C'); - var mType = $('
Meat Type Steak ' + 'Tuna Turkey
'); - displayDiv.prepend(CF, mThick, mTemp, mType); div.append(switches); switches.change(function () { console.log($('.mytog:checked').attr('id')) graph(false, $('.mytog:checked').attr('id')); }); - CF.change(function () { + $(".switcheroo").change(function () { $('#si1').html("Side 1 (°" + $('.mytog2:checked').attr('id') + ")"); $('#si2').html("Side 2 (°" + $('.mytog2:checked').attr('id') + ")"); $('#work').html("°" + $('.mytog2:checked').attr('id')); @@ -357,28 +352,6 @@ var perfectSteak = function (div) { addDropdown(); } -// var buildDisplay = function () { -// if (model.currentInfo["OKToGraph"]) { -// div.append("
"); -// $(".span3").append(displayDiv); -// var switches = $('
'); -// div.append(switches); -// -// switches.change(function () { -// graph(false, $('.mytog:checked').attr('id')); -// }); -// -// $("#startModal").modal("show"); -// -// cookButton = $(".cookButton"); -// buildTable(); -// } else { -// (".") -// } -// -// -// addDropdown(); -// } var buildTable = function () {