Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Weather</title>
<link href="styling.css" rel="stylesheet" type="text/css">
<script src="http://code.jquery.com/jquery-1.5.js"></script>
<script src="main.js" type="text/javascript"></script>
</head>
<body class="background">
<div class="header">
<h1>
Weather
</h1>
</div>
<div class="content">
</div>
</body>
</html>
<?php
/*
* Datum: 22.09.2014
*/
function getJson () {
$json = file_get_contents("weather.json");
echo $json;
}
getJson();
?>
{
"message": "accurate",
"cod": "200",
"count": 1,
"list": [
{
"id": 2658377,
"name": "Thun",
"coord": {
"lon": 7.62166,
"lat": 46.751179
},
"main": {
"temp": 17.4,
"pressure": 1013,
"humidity": 77,
"temp_min": 13.89,
"temp_max": 21.67
},
"dt": 1410942629,
"wind": {
"speed": 2.1,
"deg": 120,
"var_beg": 90,
"var_end": 150
},
"sys": {
"country": "CH"
},
"rain": {
"1h": 9.14
},
"clouds": {
"all": 40
},
"weather": [
{
"id": 502,
"main": "Rain",
"description": "heavy intensity rain",
"icon": "10d"
},
{
"id": 701,
"main": "Mist",
"description": "mist",
"icon": "50d"
}
]
}
]
}