Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -54,13 +54,12 @@ function boxinfo(results){ | ... | @@ -54,13 +54,12 @@ function boxinfo(results){ |
54 | <div class="flex-container"> | 54 | <div class="flex-container"> |
55 | <h1 class="title">${result.recipe.label}</h1> | 55 | <h1 class="title">${result.recipe.label}</h1> |
56 | <a href="${result.recipe.url}" target="_blank">View Recipe</a> | 56 | <a href="${result.recipe.url}" target="_blank">View Recipe</a> |
57 | - </div> | ||
58 | ${(cal => { | 57 | ${(cal => { |
59 | if (cal >= 2000) { | 58 | if (cal >= 2000) { |
60 | return `<p style="color:red">${cal}</p>`; | 59 | return `<p style="color:red">${cal}</p>`; |
61 | } | 60 | } |
62 | else if(cal >= 1000 && cal < 2000){ | 61 | else if(cal >= 1000 && cal < 2000){ |
63 | - return `<p style="color:yellow">${cal}</p>`; | 62 | + return `<p style="color:rgb(245,176,65)">${cal}</p>`; |
64 | } | 63 | } |
65 | else { | 64 | else { |
66 | return `<p style="color:green">${cal}</p>`; | 65 | return `<p style="color:green">${cal}</p>`; |
... | @@ -68,6 +67,7 @@ function boxinfo(results){ | ... | @@ -68,6 +67,7 @@ function boxinfo(results){ |
68 | })(object.cal) | 67 | })(object.cal) |
69 | } | 68 | } |
70 | </div> | 69 | </div> |
70 | + </div> | ||
71 | ` | 71 | ` |
72 | }) | 72 | }) |
73 | searchResultDiv.innerHTML = boxsinfo; | 73 | searchResultDiv.innerHTML = boxsinfo; | ... | ... |
-
Please register or login to post a comment