More changes to prev style

This commit is contained in:
2016-09-21 15:03:37 +02:00
parent 994f7d04aa
commit 05f6d24d2e
2 changed files with 4 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ $.get('weatherData.txt', function(data) {
elem.setAttribute("alt", weatherData[1]); elem.setAttribute("alt", weatherData[1]);
document.getElementById("weatherImg").appendChild(elem); document.getElementById("weatherImg").appendChild(elem);
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("weatherTempValue").innerHTML = "<p class='weatherTitle' style='font-size: 30px;'>Temperatur" + weatherData[2] + '°</p>';
document.getElementById("weatherRainfall").innerHTML = "<p class='weatherTitle'>Nedbør</p><p class='weatherData'>" + weatherData[3] + '</p>'; document.getElementById("weatherRainfall").innerHTML = "<p class='weatherTitle'>Nedbør" + weatherData[3] + '</p>';
document.getElementById("weatherWind").innerHTML = "<p class='weatherTitle'>Vind</p><p class='weatherData'>" + weatherData[5] + '</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

@@ -41,14 +41,14 @@ html, body {
} }
.weatherTitle { .weatherTitle {
width: 50%; /*width: 50%;*/
float: left; float: left;
text-align: right; text-align: right;
padding-right: 15px; padding-right: 15px;
} }
.weatherData { .weatherData {
width: 80%; width: 60%;
float:right; float:right;
text-align: left; text-align: left;
padding-left: 15px; padding-left: 15px;