summaryrefslogtreecommitdiff
path: root/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/index.js')
-rw-r--r--js/index.js6
1 files changed, 3 insertions, 3 deletions
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}