diff --git a/scripts/addWeatherInfo.js b/scripts/addWeatherInfo.js index 7312de8..0c651d1 100644 --- a/scripts/addWeatherInfo.js +++ b/scripts/addWeatherInfo.js @@ -8,8 +8,8 @@ $.get('weatherData.txt', function(data) { elem.setAttribute("alt", weatherData[1]); document.getElementById("weatherImg").appendChild(elem); - document.getElementById("weatherTempValue").innerHTML = "
Temperatur
" + weatherData[2] + '°
'; - document.getElementById("weatherRainfall").innerHTML = "Nedbør
" + weatherData[3] + '
'; + document.getElementById("weatherTempValue").innerHTML = "Temperatur" + weatherData[2] + '°
'; + document.getElementById("weatherRainfall").innerHTML = "Nedbør" + weatherData[3] + '
'; document.getElementById("weatherWind").innerHTML = "Vind
" + weatherData[5] + '
'; // document.getElementById("weatherWindDirection").innerHTML = "Vind rettning
" + weatherData[6] + '
'; }); \ No newline at end of file diff --git a/style.css b/style.css index 4a2b1c1..01b23ce 100644 --- a/style.css +++ b/style.css @@ -41,14 +41,14 @@ html, body { } .weatherTitle { - width: 50%; + /*width: 50%;*/ float: left; text-align: right; padding-right: 15px; } .weatherData { - width: 80%; + width: 60%; float:right; text-align: left; padding-left: 15px;