diff --git a/includes/print-functions.php b/includes/print-functions.php new file mode 100644 index 000000000..e293f8d9e --- /dev/null +++ b/includes/print-functions.php @@ -0,0 +1,21 @@ + 25) { $style = "color: LimeGreen;"; } + if(($temp_lim - $temp_cur) <= 25) { $style = "color: Green;"; } + if(($temp_lim - $temp_cur) < 20) { $style = "color: Blue;"; } + if(($temp_lim - $temp_cur) < 15) { $style = "color: MediumPurple;"; } + if(($temp_lim - $temp_cur) < 10) { $style = "font-weight: bold; color: Tomato;"; } + if(($temp_lim - $temp_cur) < 5) { $style = "font-weight: bold; color: OrangeRed;"; } + if(($temp_lim - $temp_cur) <= 0) { $style = "font-weight: bold; color: Crimson;"; } + + + return("$temp_current"); + +} + +?>