Fixed styling on weather data

This commit is contained in:
2016-09-21 15:01:55 +02:00
parent 8146840742
commit 994f7d04aa
2 changed files with 2 additions and 2 deletions

View File

@@ -11,5 +11,5 @@ $.get('weatherData.txt', function(data) {
document.getElementById("weatherTempValue").innerHTML = "<p class='weatherTitle' style='font-size: 30px;'>Temperatur</p><p class='weatherData' style='font-size: 35px;'>" + weatherData[2] + '°</p>';
document.getElementById("weatherRainfall").innerHTML = "<p class='weatherTitle'>Nedbør</p><p class='weatherData'>" + weatherData[3] + '</p>';
document.getElementById("weatherWind").innerHTML = "<p class='weatherTitle'>Vind</p><p class='weatherData'>" + weatherData[5] + '</p>';
document.getElementById("weatherWindDirection").innerHTML = "<p class='weatherTitle'>Vind rettning</p><p class='weatherData'>" + weatherData[6] + '</p>';
// document.getElementById("weatherWindDirection").innerHTML = "<p class='weatherTitle'>Vind rettning</p><p class='weatherData'>" + weatherData[6] + '</p>';
});

View File

@@ -48,7 +48,7 @@ html, body {
}
.weatherData {
width: 50%;
width: 80%;
float:right;
text-align: left;
padding-left: 15px;