From 027e6e5a240b8c622af0c6a7b2916197d3fb6501 Mon Sep 17 00:00:00 2001 From: Eloy Martinez Date: Mon, 13 Feb 2023 18:39:03 +0100 Subject: ViewPort cambiado + CSS Mayus --- js/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/index.js') diff --git a/js/index.js b/js/index.js index faad5f5..011d4ff 100644 --- a/js/index.js +++ b/js/index.js @@ -105,8 +105,8 @@ function Day(date, t_max, t_min, weather){ } function weather2description(weather){ - let str = weather.replaceAll("_"," ").toLowerCase(); - return str.charAt(0).toUpperCase() + str.slice(1); + let str = weather.replaceAll("_"," "); + return str; } function processDaily( response_obj ) { @@ -200,7 +200,7 @@ function processHourly(data){ hourly_element.setAttribute("class", "hourly-forecast"); hourly_element.innerHTML = ` - + ${polyline} ${dots} ${labels} -- cgit v1.2.3