summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorekaitz-zarraga <ekaitz-zarraga@noreply.codeberg.org>2023-02-14 09:21:38 +0000
committerekaitz-zarraga <ekaitz-zarraga@noreply.codeberg.org>2023-02-14 09:21:38 +0000
commit0ed3e6a25a6944ad0c16d15ecd4e028a242c2d23 (patch)
treea64a1c17b38e832edea006065e56d59485b45af0
parent05f66eb8526c7cb3bde1b1bce8762fb93767ba36 (diff)
parent027e6e5a240b8c622af0c6a7b2916197d3fb6501 (diff)
Merge pull request 'ViewPort cambiado + CSS Mayus' (#2) from eloy123/weather-app:master into master
Reviewed-on: https://codeberg.org/ekaitz-zarraga/weather-app/pulls/2
-rw-r--r--css/style.css6
-rw-r--r--js/index.js6
2 files changed, 9 insertions, 3 deletions
diff --git a/css/style.css b/css/style.css
index 50d1abb..459fdec 100644
--- a/css/style.css
+++ b/css/style.css
@@ -61,3 +61,9 @@ footer{
.graph-line{
stroke: lightgrey;
}
+.day-forecast-text p{
+ text-transform: lowercase;
+}
+.day-forecast-text p:first-letter {
+text-transform: uppercase;
+}
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 = `
- <svg viewBox="0 0 ${xsize} ${ysize}" xmlns="http://www.w3.org/2000/svg">
+ <svg viewBox="0 0 ${xsize} ${ysize}" xmlns="http://www.w3.org/2000/svg width="" height="200px">
${polyline}
${dots}
${labels}