commit 1d03ede7793674dcf485a47429e73b8a8a509824 parent 349b57a1e8a57b681dbfbebd495443faa365b427 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 5 Dec 2019 13:32:13 +0100 Fix syntax errors Diffstat:
M | output/weather.php | | | 25 | +++++++++++++++---------- |
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/output/weather.php b/output/weather.php @@ -52,18 +52,23 @@ <br> <img src="https://servlet.dmi.dk/byvejr/servlet/byvejr?by=<?php echo $zip; ?>&tabel=dag3_9&eps=true" alt="3-9 days"> <?php - lon = ""; lat = ""; + $lon = ""; + $lat = ""; if ($zip == 1000) { - lon = "55.68"; lat = "12.57"; - elseif ($zip == 7700) { - lon = "56.96"; lat = "8.70"; - elseif ($zip == 8000) { - lon = "56.16"; lat = "10.20"; - elseif ($zip == 9520) { - lon = "56.84"; lat = "9.89"; + $lon = "55.68"; + $lat = "12.57"; + } elseif ($zip == 7700) { + $lon = "56.96"; + $lat = "8.70"; + } elseif ($zip == 8000) { + $lon = "56.16"; + $lat = "10.20"; + } elseif ($zip == 9520) { + $lon = "56.84"; + $lat = "9.89"; } if ($lon != "") { - echo "<br><img src=\"https://clearoutside.com/forecast_image_large/{$lon}/{$lat}/forecast.png\" alt=\"Clear Outside forecast\">"; - > + echo "<br><p><img src=\"https://clearoutside.com/forecast_image_large/{$lon}/{$lat}/forecast.png\" alt=\"Clear Outside forecast\"></p>"; + } ?> </article>